Package net.mtrop.doom.sound
Interface MUS.SequencerListener
- Enclosing class:
- MUS
public static interface MUS.SequencerListener
A listener for the player.
-
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
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onControllerChangeEvent
(int channel, int controllerNumber, int controllerValue) Called on a controller change event.void
onNotePlayEvent
(int channel, int note) Called on note play.void
onNotePlayEvent
(int channel, int note, int volume) Called on note play (with volume change).void
onNoteReleaseEvent
(int channel, int note) Called on note release.void
onPitchEvent
(int channel, int pitch) Called on a pitch wheel change.void
onScoreEnd
(int channel) Called on score end.void
onSystemEvent
(int channel, int type) Called on a system event.
-
Field Details
-
SYSTEM_SOUND_OFF
static final int SYSTEM_SOUND_OFF- See Also:
-
SYSTEM_NOTES_OFF
static final int SYSTEM_NOTES_OFF- See Also:
-
SYSTEM_MONO
static final int SYSTEM_MONO- See Also:
-
SYSTEM_POLY
static final int SYSTEM_POLY- See Also:
-
SYSTEM_RESET_ALL_CONTROLLERS
static final int SYSTEM_RESET_ALL_CONTROLLERS- See Also:
-
CONTROLLER_INSTRUMENT
static final int CONTROLLER_INSTRUMENT- See Also:
-
CONTROLLER_BANK_SELECT
static final int CONTROLLER_BANK_SELECT- See Also:
-
CONTROLLER_MODULATION_POT
static final int CONTROLLER_MODULATION_POT- See Also:
-
CONTROLLER_VOLUME
static final int CONTROLLER_VOLUME- See Also:
-
CONTROLLER_PANNING
static final int CONTROLLER_PANNING- See Also:
-
CONTROLLER_EXPRESSION_POT
static final int CONTROLLER_EXPRESSION_POT- See Also:
-
CONTROLLER_REVERB
static final int CONTROLLER_REVERB- See Also:
-
CONTROLLER_CHORUS
static final int CONTROLLER_CHORUS- See Also:
-
CONTROLLER_SUSTAIN_PEDAL
static final int CONTROLLER_SUSTAIN_PEDAL- See Also:
-
CONTROLLER_SOFT_PEDAL
static final int CONTROLLER_SOFT_PEDAL- See Also:
-
-
Method Details
-
onNoteReleaseEvent
void onNoteReleaseEvent(int channel, int note) Called on note release.- Parameters:
channel
- the channel it happened on.note
- the note to play.
-
onNotePlayEvent
void onNotePlayEvent(int channel, int note) Called on note play.- Parameters:
channel
- the channel it happened on.note
- the note to play.
-
onNotePlayEvent
void onNotePlayEvent(int channel, int note, int volume) Called on note play (with volume change).- Parameters:
channel
- the channel it happened on.note
- the note to play.volume
- the new volume level.
-
onPitchEvent
void onPitchEvent(int channel, int pitch) Called on a pitch wheel change.- Parameters:
channel
- the channel it happened on.pitch
- The pitch, from 0 to 255. 128 is no adjustment. 0 is one full semitone down. 255 is one full semitone up.
-
onSystemEvent
void onSystemEvent(int channel, int type) Called on a system event.- Parameters:
channel
- the channel it happened on.type
- the type if system event (see SYSTEM constants).
-
onControllerChangeEvent
void onControllerChangeEvent(int channel, int controllerNumber, int controllerValue) Called on a controller change event.- Parameters:
channel
- the channel it happened on.controllerNumber
- the controller changed (see CONTROLLER constants).controllerValue
- the new controller value.
-
onScoreEnd
void onScoreEnd(int channel) Called on score end.- Parameters:
channel
- the channel it happened on.
-