Package net.mtrop.doom.sound
Class MUS.ControllerChangeEvent
java.lang.Object
net.mtrop.doom.sound.MUS.Event
net.mtrop.doom.sound.MUS.ControllerChangeEvent
- Enclosing class:
- MUS
Controller Change event.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected int
The controller number to change.protected int
The controller value.Fields inherited from class net.mtrop.doom.sound.MUS.Event
channel, restTics, type, TYPE_CHANGE_CONTROLLER, TYPE_PITCH, TYPE_PLAY, TYPE_RELEASE, TYPE_SCORE_END, TYPE_SYSTEM
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getValue()
void
setController
(int controllerNumber) Sets this event's target controller.void
setControllerValue
(int controllerValue) Sets this event's controller value.byte[]
toBytes()
toString()
Methods inherited from class net.mtrop.doom.sound.MUS.Event
getChannel, getRestTics, getType, isLast, setChannel, setRestTics
-
Field Details
-
CONTROLLER_INSTRUMENT
public static final int CONTROLLER_INSTRUMENT- See Also:
-
CONTROLLER_BANK_SELECT
public static final int CONTROLLER_BANK_SELECT- See Also:
-
CONTROLLER_MODULATION_POT
public static final int CONTROLLER_MODULATION_POT- See Also:
-
CONTROLLER_VOLUME
public static final int CONTROLLER_VOLUME- See Also:
-
CONTROLLER_PANNING
public static final int CONTROLLER_PANNING- See Also:
-
CONTROLLER_EXPRESSION_POT
public static final int CONTROLLER_EXPRESSION_POT- See Also:
-
CONTROLLER_REVERB
public static final int CONTROLLER_REVERB- See Also:
-
CONTROLLER_CHORUS
public static final int CONTROLLER_CHORUS- See Also:
-
CONTROLLER_SUSTAIN_PEDAL
public static final int CONTROLLER_SUSTAIN_PEDAL- See Also:
-
CONTROLLER_SOFT_PEDAL
public static final int CONTROLLER_SOFT_PEDAL- See Also:
-
controllerNumber
protected int controllerNumberThe controller number to change. -
controllerValue
protected int controllerValueThe controller value.
-
-
Method Details
-
getController
public int getController()- Returns:
- this event's target controller.
-
setController
public void setController(int controllerNumber) Sets this event's target controller.- Parameters:
controllerNumber
- the controller number.- Throws:
IllegalArgumentException
- ifcontrollerNumber
is not between 0 and 9.
-
getValue
public int getValue()- Returns:
- this event's controller value.
-
setControllerValue
public void setControllerValue(int controllerValue) Sets this event's controller value.- Parameters:
controllerValue
- the new controller value.- Throws:
IllegalArgumentException
- ifcontrollerValue
is not between 0 and 127.
-
toBytes
public byte[] toBytes() -
toString
-