Python int() против round() привели к проблемам с измерением звука
DEV · 16.11.2026 · 00:00
В процессе финальной сборки короткого объяснительного видео возникли проблемы во время проверки звука. Два звуковых эффекта были неправильно усилены, что не соответствовало их уровню.
Оригинал
Python int() Versus round() Made a Sound Cue Measure Silent, and My Mixer Boosted It 12 dB
Originally published on hexisteme notes. The final assembly of a short explainer video failed once on a sound check. The check was sfx_hierarchy, which asks whether every sound effect sits at the level its layer is supposed to have. Two reaction cues, a camera shutter and a stamp slam, had been pushed up by +12 dB, which is the maximum boost my mixer allows. Nothing about those two sounds needed that. The cause was one line in the audibility measurement: it computed the start sample with int(t·