예제 #1
0
        int _position; // The position to move the ear(s) to

        #endregion Fields

        #region Constructors

        public ChorAction(byte duration, cbenums.LEDs led, System.Drawing.Color col)
        {
            _duration = duration;
            switch (led)
            {
                case cbenums.LEDs.All:
                    ActionType = cbenums.Actions.AllLEDs;
                    break;
                default:
                    ActionType = cbenums.Actions.LED;
                    break;
            }
            _led = led;
            _col = col;
        }
예제 #2
0
 public ChorAction(byte duration, cbenums.Actions requestedAction, cbenums.Ears ear, int earPositionOrSteps, cbenums.Direction earDirection)
 {
     // Moves the ear(s) in the specified direction the specified number of steps or to the absolute position
     // (depending on the requested action)
     _ear = ear;
     _duration = duration;
     _position = earPositionOrSteps;
     _direction = earDirection;
     ActionType = requestedAction;
 }
예제 #3
0
 public ChorAction(byte duration)
 {
     _duration = duration;
     ActionType = cbenums.Actions.RandomMIDI;
 }