How do I turn a note off or set the duration of the note?
for notes on:
piano.play(event.noteName, ac.currentTime, {gain:event.velocity/5});
I have a midi off event, I would like to turn the note off
I tried piano.stop(event.noteName, ac.currentTime, {}); but this obviously doesn't work.
Any suggestions would be appreciated.
Thanks for your help.
How do I turn a note off or set the duration of the note? for notes on: piano.play(event.noteName, ac.currentTime, {gain:event.velocity/5}); I have a midi off event, I would like to turn the note off I tried piano.stop(event.noteName, ac.currentTime, {}); but this obviously doesn't work. Any suggestions would be appreciated. Thanks for your help.