djipco / webmidi

Tame the Web MIDI API. Send and receive MIDI messages with ease. Control instruments with user-friendly functions (playNote, sendPitchBend, etc.). React to MIDI input with simple event listeners (noteon, pitchbend, controlchange, etc.).
Apache License 2.0
1.53k stars 115 forks source link

is there a way to "catch" event when i physically press a note? #286

Closed VergilDMC00 closed 2 years ago

VergilDMC00 commented 2 years ago

i have a problem with the libraries, i have a physic piano and i would like to know when someone is physically pressing one of the note, is there a way to "catch" that event? I have tried with listening to all channel on the device, but when i phisically press the note it doesnt catch anything while when i "press" the note wit the support of js the event is emitted i am able to catch it