Trim sound file

SJB's icon

Hello,

is it possible to trim automatically a sound file (loaded in a buffer) just before that the first audio sample starts ? In other words to trim automatically an eventual silence at the beginning of sound file before audio starts properly speaking?

Thanks you for help!

Roman Thilenius's icon


not during import, but you can easily do it later. i would use 2 different buffer objects for that kind of thing.

SJB's icon

Thanks, I can vaguely guess what you suggest but it's not really sense for me to duplicate a buffer for pass audio informations from one to the other just for that :(

Already Max is not really elegant...

Different ideas?

JS maybe?

pdelges's icon

[buffer~] (and [waveform~]) has the crop message to trim its buffer's contents. You just need to find the start and end indexes, maybe using peek~ to find where 0 stops and starts.