waveform-data.js icon indicating copy to clipboard operation
waveform-data.js copied to clipboard

Use concat to add additional silent time to waveform

Open EZWrighter opened this issue 1 year ago • 4 comments

I have a binary dat file I would like to add silence to on the front and back in the browser. Is there an easy way to use concat and create x seconds of "silence" in front of the waveform and after it? My goal is to use the data in peaks.js to show the waveform under a longer video and want the user to see the audio waveform where it's blank and allow the peaks library to show progress across the entire waveform. I figured adding the blank/silence to fill the gap where there wasn't actual audio would be the easiest solution to this problem.

Thanks for any advice.

EZWrighter avatar Nov 30 '23 17:11 EZWrighter