correcting example

This commit is contained in:
Yotam Mann 2020-07-19 13:11:58 -07:00
parent fa725aa6f5
commit 5ff4922646

View file

@ -246,9 +246,9 @@
}); });
// @ts-ignore // @ts-ignore
document.querySelector("tone-slider-pad").addEventListener("move", e => move(parseFloat(e.target.value))); document.querySelector("tone-slider-pad").addEventListener("move", e => move(e.detail));
// @ts-ignore // @ts-ignore
document.querySelector("tone-slider-pad").addEventListener("down", e => triggerAttack(parseFloat(e.target.value))); document.querySelector("tone-slider-pad").addEventListener("down", e => triggerAttack(e.detail));
document.querySelector("tone-slider-pad").addEventListener("up", () => synth.triggerRelease()); document.querySelector("tone-slider-pad").addEventListener("up", () => synth.triggerRelease());
document.querySelector("tone-play-toggle").addEventListener("start", () => Tone.Transport.start()); document.querySelector("tone-play-toggle").addEventListener("start", () => Tone.Transport.start());