Beispiel #1
0
 public static MidiMessage ChangePatch(int patch, int channel)
 {
     MidiMessage.ValidateChannel(channel);
     return(new MidiMessage(192 + channel - 1, patch, 0));
 }
Beispiel #2
0
 public static MidiMessage ChangeControl(int controller, int value, int channel)
 {
     MidiMessage.ValidateChannel(channel);
     return(new MidiMessage(176 + channel - 1, controller, value));
 }
Beispiel #3
0
 public static MidiMessage StopNote(int note, int volume, int channel)
 {
     MidiMessage.ValidateNoteParameters(note, volume, channel);
     return(new MidiMessage(128 + channel - 1, note, volume));
 }