public class RealtimePlayer
extends java.lang.Object
Constructor and Description |
---|
RealtimePlayer() |
Modifier and Type | Method and Description |
---|---|
void |
changeChannelPressure(byte pressure) |
void |
changeController(byte controller,
byte value) |
void |
changeInstrument(int newInstrument) |
void |
changeInstrument(java.lang.String newInstrument) |
void |
changePolyphonicPressure(byte key,
byte pressure) |
void |
changeTrack(int newTrack) |
void |
close() |
protected javax.sound.midi.MidiChannel |
getCurrentChannel() |
long |
getCurrentTime() |
void |
play(PatternProducer pattern) |
void |
play(java.lang.String pattern) |
void |
schedule(long timeInMillis,
ScheduledEvent event) |
void |
setPitchBend(byte lsb,
byte msb) |
void |
setPitchBend(int pitch) |
void |
startChord(Chord chord) |
void |
startInterpolator(RealtimeInterpolator interpolator,
long durationInMillis) |
void |
startNote(Note note) |
void |
stopChord(Chord chord) |
void |
stopInterpolator(RealtimeInterpolator interpolator) |
void |
stopNote(Note note) |
void |
unschedule(long timeInMillis,
ScheduledEvent event) |
public RealtimePlayer() throws javax.sound.midi.MidiUnavailableException
javax.sound.midi.MidiUnavailableException
public void play(PatternProducer pattern)
public void play(java.lang.String pattern)
protected javax.sound.midi.MidiChannel getCurrentChannel()
public long getCurrentTime()
public void schedule(long timeInMillis, ScheduledEvent event)
public void unschedule(long timeInMillis, ScheduledEvent event)
public void startNote(Note note)
public void stopNote(Note note)
public void startChord(Chord chord)
public void stopChord(Chord chord)
public void startInterpolator(RealtimeInterpolator interpolator, long durationInMillis)
public void stopInterpolator(RealtimeInterpolator interpolator)
public void changeInstrument(int newInstrument)
public void changeInstrument(java.lang.String newInstrument)
public void changeTrack(int newTrack)
public void setPitchBend(int pitch)
public void setPitchBend(byte lsb, byte msb)
public void changeChannelPressure(byte pressure)
public void changePolyphonicPressure(byte key, byte pressure)
public void changeController(byte controller, byte value)
public void close()