nbrosowsky / tonejs-instruments

A small instrument sample library with quick-loader for tone.js
Other
408 stars 105 forks source link

Massive distortion when triggering attack on multiple notes. #7

Closed sustained closed 2 years ago

sustained commented 5 years ago

The issue is in the title.

Reproduction

Basically follow the README then change the triggerAttack to e.g.:

instruments.piano.triggerAttack(["A2", "C3", "E3"]);

Any idea what the problem could be?

UPDATE

It seems that this problem only occurs the first time. So if I do a setInterval (just as a quick example/test, I completely forgot how to work with Tone!) then the first chord will be massively distorted and the rest won't be so bad.

nbrosowsky commented 2 years ago

I can't recreate this issue, but let me know if it persists.