Claude/fix audio calculator 019subr yr lri5w ce a3 x4g qm d#27
Merged
secretlight76 merged 2 commits intoclaude/audio-level-converter-013tbG1J7CqMpkQbbkXrNYjtfrom Nov 18, 2025
Conversation
BUGS CRITIQUES CORRIGÉS:
1. ✅ ALERTES DISPARUES - Classe .hidden manquante
- Ajout de la classe CSS `.hidden { display: none !important; }`
- Les alertes SNR, SPL >85 dB, et CLIP sont maintenant visibles
- Correction des classes alert-warning, alert-danger, alert-success
2. ✅ SNR NUMÉRIQUE ne suit pas profondeur de bits
- SNR limité par formule théorique : 6.02 × bits + 1.76 dB
- 16 bits : ~98 dB max, 24 bits : ~146 dB max, 32 float : 1500 dB
- Empêche les valeurs de SNR impossibles physiquement
3. ✅ CALIBRATION et dBFS fonctionnent correctement
- updateAllDomains() calcule bien dBFS à partir de dBu
- Gain du préampli modifie SPL → dBu → dBFS (chaîne complète)
- Vérification : la logique était correcte, pas de bug
AMÉLIORATIONS PÉDAGOGIQUES:
4. ✅ Bloc explicatif sous section ACOUSTIQUE
- Formules de calcul de la pression (Pa)
- Explication de la pondération fréquentielle
- Calcul du bruit de fond et du SNR
- <details> repliable pour ne pas encombrer
5. ✅ Bloc explicatif sous section ÉLECTRIQUE
- Formules tension (V), dBu, dBV
- Calcul de la puissance (dBm, dBW) avec impédance
- SNR électrique = Signal - (EIN + Gain)
- Headroom analogique
RÉSULTAT:
- Alertes maintenant fonctionnelles et visibles
- SNR numérique conforme à la théorie
- Interface plus pédagogique pour les étudiants
- +59 lignes (blocs éducatifs), -1 ligne (correction)
TODO PHASE 2:
- Créer colonne centralisée d'alertes (5e colonne)
- Audit complet des tooltips existants
- Plus d'explications détaillées sur calibration
NOUVELLE FONCTIONNALITÉ - COLONNE D'ALERTES: 1. ✅ 5ème colonne dédiée aux alertes - Panneau "🚨 Alertes & Status" toujours visible - Grid responsive : 1→2→4→5 colonnes selon écran - Position sticky pour rester visible pendant scroll - Animation pulse sur alertes critiques 2. ✅ Système d'alertes intelligent (10+ types): 🔴 DANGER (action immédiate): - SPL ≥120 dB : dommages auditifs immédiats - CLIP numérique : dBFS > -0.1 - Saturation analogique : dBu > +24⚠️ ATTENTION (risque potentiel): - SPL 85-120 dB : exposition prolongée dangereuse - Proche clip : dBFS > -3 - Headroom faible (<6 dB numérique, <3 dB analogique) - SNR <30 dB : bruit audible - Gain excessif >70 dB : amplification du bruit ℹ️ INFO (utile): - Distance >4m : perte significative - Standards professionnels détectés ✅ SUCCESS (optimal): - SNR ≥80 dB : signal très propre - Headroom 12-20 dB : marge sécurisée - Niveau acoustique 60-85 dB : idéal enregistrement 3. ✅ CSS Animations: - Animation pulse sur alertes critiques - Transitions fluides - Modes clair/sombre supportés ARCHITECTURE: - Fonction updateCentralAlerts() centralisée - Intégration automatique avec validateAndAlert() - Alertes triées par gravité (danger → warning → info → success) - Légende explicative incluse RÉSULTAT: - +271 lignes (colonne + système complet), -1 ligne - Expérience utilisateur améliorée : vision globale instantanée - Pédagogique : comprendre immédiatement les problèmes - Prêt pour étudiants : explications claires et contextuelles IMPACTS: - Les alertes locales (dans chaque panneau) sont conservées - Les alertes centrales offrent une vue d'ensemble - Double notification pour les problèmes critiques
fdbbf96
into
claude/audio-level-converter-013tbG1J7CqMpkQbbkXrNYjt
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.