I'm building my own custom midi mapping app, and so far so good. I've been using nAudio to recieve midi messages, and it's working like a charm.
But when wanting to send something back, I run into some trouble. To enable a light on my controller I gotta send a Note On message: 90 kk 01 for example, where kk equals the corresponding key. (see picture below)

However, it is not working. I'm not getting any error messages at all, but nothing is lighting up neither.
Example of what I'm sending:
midiOut = new MidiOut(MIDIInDevice);
midiOut.Send(MidiMessage.StartNote(56, 1, 0).RawData);
56 is the Note, 1 the volume, and 0 the channel.
Any idea what i'm doing wrong?
Choose right channel and try to send NoteOn event.
var noteOnEvent = new NoteOnEvent(0L, channel, note, 127, 200);
midi.Send(noteOnEvent.GetAsShortMessage());
midi.Send(noteOnEvent.OffEvent.GetAsShortMessage());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With