bbc / peaks.js

JavaScript UI component for interacting with audio waveforms
https://waveform.prototyping.bbc.co.uk
GNU Lesser General Public License v3.0
3.2k stars 279 forks source link

Center line on waveform display? #374

Closed shealan closed 2 years ago

shealan commented 3 years ago

image

Is it possible to add a center line on the waveform display? On waves with some silent parts the waveforms look a little odd floating in space on their own. A feint central line would provide a more DAW type display.

I can't seem to find a setting that allows for this.

Amazing library, thank you so much for making it open source ♥️

bsnman commented 2 years ago

It would also be great if there's an option to draw center line if silence.

Right now I have audio that last <1 second, and I could see the individual waves. I don't want it to have a center line all the way, just the silence portion of the waves.

chrisn commented 2 years ago

I just made a simple change to fix this, it'll be available in the next release.