Lighted Midi Keyboard #300
-
I have a lighted midi keyboard and am writing a piece of software that will help me learn how to play the keyboard. I am using your software, which is fantastic, but am struggling with a particular piece of code. When playing a midi file, when an OnNoteEvent or OffNoteEvent occurs in the OnNotesPlaybackStarted or OnNotesPlaybackFinished, I would like to send the exact OnNoteEvent ore OffNoteEvent to the outMidiDevice, but with a change the channel. Channel 2 lights the key and Channel 3 unlights the key. I attached a simple Windows Form project to show code that works. But when I try to use that same code in OnNotesPlaybackStarted and OnNotesPlaybackFinished, it does not work. Any help would be appreciated!!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi, So what's the problem? Just set desired channel to Note On/Off event and send it to a device. Please be aware channel number in the library is from 0 to 15. So maybe you need to set channel 1 for your channel 2 and channel 2 for you channel 3. |
Beta Was this translation helpful? Give feedback.
Hi,
So what's the problem? Just set desired channel to Note On/Off event and send it to a device. Please be aware channel number in the library is from 0 to 15. So maybe you need to set channel 1 for your channel 2 and channel 2 for you channel 3.