Package net.mtrop.doom.sound
Class MUS.PitchEvent
java.lang.Object
net.mtrop.doom.sound.MUS.Event
net.mtrop.doom.sound.MUS.PitchEvent
- Enclosing class:
- MUS
Pitch wheel event.
-
Field Summary
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
Methods inherited from class net.mtrop.doom.sound.MUS.Event
getChannel, getRestTics, getType, isLast, setChannel, setRestTics
-
Field Details
-
pitch
protected int pitchThe pitch wheel adjustment.
-
-
Method Details
-
getPitch
public int getPitch()- Returns:
- this event's pitch value.
-
setPitch
public void setPitch(int pitch) Sets this event's pitch.- Parameters:
pitch
- the pitch value.- Throws:
IllegalArgumentException
- ifpitch
is not between 0 and 255.
-
toBytes
public byte[] toBytes() -
toString
-