mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-26 11:33:09 +00:00
correcting example
This commit is contained in:
parent
fa725aa6f5
commit
5ff4922646
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue