Skip to content

Commit

Permalink
not sure why tempo resetting doesn't work in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
debashisbiswas committed Jan 30, 2024
1 parent e90a4d8 commit 92868a1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@
}
async function updateTempo(updateFn: (currentTempo: number) => number) {
if (scheduleId) {
Tone.Transport.clear(scheduleId);
scheduleId = 0;
}
Tone.Transport.stop();
Tone.Transport.bpm.value = Math.round(updateFn(Tone.Transport.bpm.value));
Tone.Transport.start();
}
</script>

Expand Down

0 comments on commit 92868a1

Please sign in to comment.