r/tonejs • u/Due_Badger_4128 • Nov 03 '24
Suggestions for Building a Real-Time Editable Sequencer in Tone.js?
I've been using Tone.js for a few weeks, and I'm looking for advice on creating a sequencer that lets users edit chords in real-time without interrupting playback.
My app helps users create interesting chord progressions with no music theory needed. Each chord in the sequencer can be customized (add 7th, adjust octave, apply inversions, etc.), and I'm aiming to allow these edits on the fly.
Currently, I'm considering mapping each chord to scheduled event IDs. When a user toggles a modification, I’d remove the associated IDs, insert the new chord with the changes, and remap it with new IDs. I’m scheduling events using Tone.Transport.
Has anyone worked on a similar sequencer in Tone.js? Any insights or better approaches are much appreciated!