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; }
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; }
public ChorAction(byte duration) { _duration = duration; ActionType = cbenums.Actions.RandomMIDI; }