Exemplo n.º 1
0
        private void AddLEDAction(byte dur, cbenums.LEDs led, Color col)
        {
            // Create LED object
            ChorAction _newaction = new ChorAction(dur, led, col);

            // Add to chor actions queue
            _chor.AddAction(_newaction);

            // Refresh action list
            RefreshChorList();
        }
Exemplo n.º 2
0
        private void AddEarAction(byte dur, cbenums.Actions requestedAction, cbenums.Ears ear, int earPosition, cbenums.Direction earDirection)
        {
            // Create action
            ChorAction _newaction = new ChorAction(dur, requestedAction, ear, earPosition, earDirection);

            // Add to chor actions queue
            _chor.AddAction(_newaction);

            // Refresh action list
            RefreshChorList();
        }
Exemplo n.º 3
0
        private void AddMIDIAction(Byte dur)
        {
            //
            // TODO - merge this with AddLEDAction (rename method and overload for MIDI, etc.)
            //

            ChorAction _newaction = new ChorAction(dur);

            // Add to chor actions queue
            _chor.AddAction(_newaction);

            // Refresh action list
            RefreshChorList();
        }
Exemplo n.º 4
0
 public void AddAction(ChorAction _action)
 {
     ChorActions.Add(_action);
 }