In another branch, where the source is evaluated from scratch and the result replaces the current sequence in a debounced keyup handler, notes are being dropped in the handover.
The delay most certainly comes from evaluating the complete source, and building all kits, samples, patterns and sequences, as well as expanding ghost notes - and trying to fit this in between two lookahead step events. It works fine on small projects, but for the sequence demo, it stalls and pretty consistently drops one chunk of steps.
Perhaps an alternative approach to "hot codeswap" should be used?
In another branch, where the source is evaluated from scratch and the result replaces the current sequence in a debounced keyup handler, notes are being dropped in the handover.
The delay most certainly comes from evaluating the complete source, and building all kits, samples, patterns and sequences, as well as expanding ghost notes - and trying to fit this in between two lookahead step events. It works fine on small projects, but for the sequence demo, it stalls and pretty consistently drops one chunk of steps.