Tone.js icon indicating copy to clipboard operation
Tone.js copied to clipboard

Transport events triggering outside of loop markers

Open pathime opened this issue 3 years ago • 2 comments
trafficstars

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

pathime avatar Dec 22 '21 12:12 pathime

If you are lucky, this got fixed already: https://github.com/Tonejs/Tone.js/issues/999#issuecomment-997419983

dirkk0 avatar Dec 22 '21 13:12 dirkk0

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!

pathime avatar Dec 22 '21 13:12 pathime