naomiaro / waveform-playlist

Multitrack Web Audio editor and player with canvas waveform preview. Set cues, fades and shift multiple tracks in time. Record audio tracks or provide audio annotations. Export your mix to AudioBuffer or WAV! Add effects from Tone.js. Project inspired by Audacity.
https://naomiaro.github.io/waveform-playlist/
MIT License
1.47k stars 287 forks source link

Move Back/forward tracks #238

Closed simoneP93 closed 1 year ago

simoneP93 commented 1 year ago

Hi, thanks for the awesome lib, it's very helpful.

I'd like to ask if it is possible to programmatically shift a single track. f.e. : i have 3 tracks with different durations and i want to move one at the end (after the track with the maximum endTime), i can calculate it but if i change the tracks array inside the playlist object it does not update the UI. How can i achieve this?

Thanks

simoneP93 commented 1 year ago

I solved it emitting the event 'shift', i didn't find it in the list of the events to invoke.