Menu

1 / 5

Python int() Versus round() Made a Sound Cue Measure Silent, and My Mixer Boosted It 12 dB

DEV Community: python·John·about 10 hours ago
#4sokoUxU
#devtopython#devto#dev#sound#sample
Reading 0:00
15s threshold

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·sr) , while the code that placed the cue in the mix computed it with round(t·sr) .

When I traced it, there were three defects in the pipeline, and a later Codex review found more of the same kind. They share one shape. The place where the pipeline put a sound and the place where it measured that sound were not the same place, sometimes by one sample, sometimes by a different file entirely.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.