Ejemplo n.º 1
0
 public void AllNotesOff()
 {
     MidiMon.Reset();
     for (int ch = 0; ch <= 15; ch++)
     {
         SendShortMsg(0xb0 | ch, 123, 0); //allnotesoff
         SendShortMsg(0xb0 | ch, 64, 0);  //sustain off
     }
 }
Ejemplo n.º 2
0
 public void AllNotesOff()
 {
     MidiMon.Reset();
     for (int ch = 0; ch < 16; ch++)
     {
         //for (int n = 0; n < 128; n++) {
         //  BassMidi.BASS_MIDI_StreamEvent(MidiStream, ch, BASSMIDIEvent.MIDI_EVENT_NOTE, n);
         //}
         BassMidi.StreamEvent(MidiStream, ch, MidiEventType.NotesOff, 0);
         BassMidi.StreamEvent(MidiStream, ch, MidiEventType.Sustain, 0);
     }
 }