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

Fixed position on zoomed waveform #350

Open Christilut opened 3 years ago

Christilut commented 3 years ago

My goal is to create a waveform display similar to what DJ apps have and Peaks.js is almost ideal for this. The overview synced with the zoomed waveform is great. It would be really great if I can somehow get the zoomed waveform to be in a fixed position at the center and let the waveform itself move. The zoomed waveform indicator would always point to the current position in time.

Picture for reference: image

The zoomed waveform indicator would not move at all. The waveform would move below it. The overview waveform behaves as normal.

I'm ready to do my best for a PR but I'd love some pointers!

chrisn commented 3 years ago

I can see that some refactoring would be needed to add this feature... The main things that would need to change are:

jtag05 commented 1 year ago

Is there still the possibility of implementing this? I'm coming over from wavesurfer and having the fixed playhead feels more natural.

chrisn commented 1 year ago

Welcome! Yes, I'm interested to implement this, but can't give any promises when.

oenu commented 4 months ago

Commenting to indicate interest in this feature with caveat that I do not have enough free time to contribute code rn