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 286 forks source link

Is there a way to re-order the tracks? #35

Open alexander-daniel opened 7 years ago

alexander-daniel commented 7 years ago

Say we want to prepend or append to the current trackList. Is there a way to insert a new track with an index so we can specify where it gets loaded?

Thanks!

naomiaro commented 7 years ago

Currently not built in, I should create this along with the ability to delete tracks as in another open issue.

alexander-daniel commented 7 years ago

Awesome! I've been mucking about in the code and I'll see if I can fork this and maybe make a PR for some of the more trivial things.

Appreciate your commitment to the lib!

naomiaro commented 3 years ago

I'm looking sometime to get around to this coming up soon.... Can't believe it's already been so many years lol. I'm not sure if you even use waveform-playlist anymore @alexander-daniel

Were you looking more for an event to add tracks? Or some way in the UI for drag and drop reordering and placement?

alexander-daniel commented 3 years ago

Wow! It has been years. We aren't currently using it anymore, but I've always kept his project in mind for our next Audio endeavour. IIRC I was looking for a way to be able to control the order? Or maybe control "where" a track could be loaded (so not by default as the last one)

The only code I can find is where we would keep references to the waveform-playlist internal state, and we'd manually sort and re-assign playlist.tracks.

Not sure if that helps!

KnifeFed commented 2 years ago

Any news on this?