Exemple #1
0
 // All logic for deciding whether the incoming midi is
 // for this controller
 bool IsForMe(byte[] data)
 {
     return
         ((data[0] == MidiEvent.NoteOn ||
           data[0] == MidiEvent.NoteOff) &&
          PushUtils.IsPushControl(data, PushControl));
 }
 public static bool IsPushControl(byte[] data, PushControl pushControl)
 {
     return(PushUtils.GetControl(data) == pushControl);
 }
 // All logic for deciding whether the incoming midi is
 // for this controller
 bool IsForMe(byte[] data)
 {
     return
         (data[0] == MidiEvent.CC &&
          PushUtils.IsPushControl(data, PushControl));
 }