I'd like to know when a note is pressed
VergilDMC00 opened this issue · 3 comments
is there a way to know when someone is pressing a note on my midi device?
Not sure I understand your question,
but MIDI devices generate a NoteOn event when the key is pressed.
I have a physical piano which i would like to connect and when I lunch a function i want to "register" which note was pressed, the problem is that i dont understand how to know if the connection was succesful or not and if it was succesful which event listener should I use to know what is the pressed note.
Until now i used navigator.requestMIDIAccess() but i dont know if it is the right function to call
I dont know if i explained well what i want to know
Try some test pages as this one: https://jazz-soft.net/download/web-midi/web-midi-test.html