Closed y-71 closed 3 years ago
Make sure you pass in the time variable provided by the scheduling callback, otherwise the timing will be wonky
const loopA = new Tone.Loop((time) => {
// use the 'time' variable to schedule the event precisely.
synth.triggerAttackRelease("D4", "8n", time /* here */ );
}, "1n").start(0);
Describe the bug
I wanted to create a metronome but there is a problem with the clock, it's
not quite my tempo
it's buffering for a reason I ignore.To Reproduce
a simulation on the sandbox
Expected behavior Play the metronome at the right tempo
What I've tried I've looked on a JQuery implementation on codepen and it worked fine
Additional context Add any other context about the problem here.