Пример #1
0
 public MidiState(IMIDI midi)
 {
     this.midi     = midi;
     this.channels = new ChannelState[16];
     for (int i = 0; i < 16; i++)
     {
         this.channels[i] = new ChannelState();
     }
     this.Enabled = true;
 }
Пример #2
0
        public Controller(IMIDI midi, int channel)
        {
            // Wrap the MIDI output device in a state-tracker:
            this.midi    = (midi is MidiState) ? (MidiState)midi : new MidiState(midi);
            this.channel = channel;

            this.currentSongIdx    = 0;
            this.currentSetlistIdx = 0;
            this.currentSetlist    = null;
            this.currentSong       = null;
            this.currentScene      = 0;
        }