Tone.js
Tone.js copied to clipboard
Transport events triggering outside of loop markers
Hi there. This one seems to happen in very specific circumstances.
I have a project running at 110bpm, and have my loop markers set at the 11th and 12th bars. Transport events scheduled on the 12th bar get triggered, when of course they shouldn't because they are >= loopEnd.
Doesn't happen at all tempos, or with different loopStarts and loopEnds, so sounds like a rounding error.
Reproduce here: https://codepen.io/pathime/pen/MWEEWZq
If you are lucky, this got fixed already: https://github.com/Tonejs/Tone.js/issues/999#issuecomment-997419983
Ahhh, fingers crossed. Though that fix is on the Source class, which I'm not sure is related to the firing of timeline events. I don't know the repo very well though!