Esempio n. 1
0
 public override MidiInputChannel GetInputChannel(IInputLayer parent)
 {
     if (this.c == null)
     {
         this.c = new ButtonInputChannel(this, parent);
     }
     return(this.c);
 }
Esempio n. 2
0
 public override MidiInputChannel GetInputChannel(IInputLayer parent)
 {
     if (this.c == null)
     {
         this.c = new MidiRangeInputChannel(parent, this);
     }
     return(this.c);
 }
Esempio n. 3
0
        private void HandleItemAdd(object s, RuleSet.RuleEventArgs e)
        {
            DeviceRule       item = e.Rule;
            MidiInputChannel ic   = item.GetInputChannel(this);

            if (ic != null)
            {
                this.inputchannels.Add(e.Rule.GUID, ic);
                this.AddInputChannel(ic);
            }
        }