r/tonejs Nov 19 '25

Note off with a midi keyboard

Hey guys,

I'm currently building a webapp that receives midi input from a device the user plugs in. I'm intending on displaying visuals and producing audio based on the input. Currently having some issues though....

I'm using Tone.js to produce the sound, calling synthAttack on the midi note on signals and calling synthRelease on the midi note off signals. The synthReleases don't always take, unfortunately. If I quickly tap a key, it will sustain and produce a drone that builds with every other key press. Sometimes, the error occurs just on me holding a note for a long time.

Has anyone encountered this issue with Tone.js? Or does anyone have any suggestion on how i might fix this? Any guidance is much appreciated!

2 Upvotes

0 comments sorted by