adamrenklint / bap

A toolkit for making beats and composing sequences with Javascript and Web Audio
MIT License
115 stars 6 forks source link

Dropping notes when switching sequence #17

Closed adamrenklint closed 9 years ago

adamrenklint commented 9 years ago

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.

adamrenklint commented 9 years ago

Not an issue in Bap, per se. Solving this in trn.gl instead.