c# - How do I send midi Control Change messages -
I am trying to send a control change message to a MIDI sequencer. But I really do not understand how it works. For example, what should I do to use the Legate pedal (N ° 68)? Or if I want to change the sound release time using the controller n ° 72?
I have tried to do this:
MIDImed message message = new mid-message message (); UIT Release Time Message = (UIT) MIDIELEEEEX & lt; & Lt; 16 | (UIT) 72 & lt; & Lt; 8 | 0xB0; Msg.Msg = (int) release time message; Msg. systemtime = sequencer service.Now; Sequencer service Postmedia message (midiOutDevice, msg);
But this does not work, however, the same thing works when attempting to enable the pedal to maintain it:
Uint sustainPedalOn = (uint) 127 & lt; & Lt; 16 | (UIT) 64 & lt; & Lt; 8 | 0xB0;
So I'm thinking that there is a specific way of sending and using controllers such as sound release time? Should I send a note message and then send my CC message? Adverse? I have tried both ... maybe I should use it to use something besides my CC message?
EDIT: OK, I solve the problem. It can not work because the default window syntheses (Microsoft GS Worldwide Synth) does not control the body of CC messages. I have tried with an external MIDI interface and it works well.
Comments
Post a Comment