You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make a piano that lights up individual (or multiple at the same time) notes as they are pressed on a MIDI keyboard. This is me trying to make a simple proof of concept but I cannot seem to figure out how to make it work. What I want is for each <div> to light up with a different background color when a specific midi note is pressed, but also have multiple <div>'s light up at the same time when multiple notes are pressed. Don't know how to do that, however. This is what I have so far, but it does not work. Have any idea how one might go about doing that? As a bonus I would also like the saturation of the note to be lighter or darker depending on the velocity of the note(s) as well. Burt on and off is the first goal. The approach below worked with the useMIDINote hook, but would only light up one note at a time, hence why I'm trying to do this with the useMIDINotes hook:
The text was updated successfully, but these errors were encountered:
rchrdnsh
changed the title
How do I access individual midi notes inside of the useMIDINotes hook...
How do I access individual midi notes inside of the useMIDINotes hook...
Jun 23, 2020
Hi Nick,
I'm trying to make a piano that lights up individual (or multiple at the same time) notes as they are pressed on a MIDI keyboard. This is me trying to make a simple proof of concept but I cannot seem to figure out how to make it work. What I want is for each
<div>
to light up with a different background color when a specific midi note is pressed, but also have multiple<div>
's light up at the same time when multiple notes are pressed. Don't know how to do that, however. This is what I have so far, but it does not work. Have any idea how one might go about doing that? As a bonus I would also like the saturation of the note to be lighter or darker depending on the velocity of the note(s) as well. Burt on and off is the first goal. The approach below worked with theuseMIDINote
hook, but would only light up one note at a time, hence why I'm trying to do this with theuseMIDINotes
hook:The text was updated successfully, but these errors were encountered: