|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfugue.StreamingMidiRenderer
public class StreamingMidiRenderer
Assists the StreamingPlayer in converting Patterns to MIDI.
StreamingPlayer
Constructor Summary | |
---|---|
StreamingMidiRenderer(javax.sound.midi.Sequence sequence)
Instantiates a Renderer |
Method Summary | |
---|---|
void |
channelPressureEvent(ChannelPressure channelPressure)
Called when the parser encounters a channel pressure event. |
void |
controllerEvent(Controller controller)
Called when the parser encounters a controller event. |
void |
instrumentEvent(Instrument instrument)
Called when the parser encounters an instrument event. |
void |
keySignatureEvent(KeySignature keySig)
Called when the parser encounters a key signature event. |
void |
layerEvent(Layer layer)
Called when the parser encounters a layer event. |
void |
measureEvent(Measure measure)
Called when the parser encounters a measure event. |
void |
noteEvent(Note note)
Called when the parser encounters an initial note event. |
void |
parallelNoteEvent(Note note)
Called when the parser encounters a parallel note event. |
void |
pitchBendEvent(PitchBend pitchBend)
Called when the parser encounters a pitch bend event. |
void |
polyphonicPressureEvent(PolyphonicPressure polyphonicPressure)
Called when the parser encounters a polyphonic pressure event. |
javax.sound.midi.Sequence |
render(Pattern pattern)
Starts rendering a pattern by sending it to the parser and listening for parser events to be fired when tokens from the pattern are interpreted. |
void |
reset(javax.sound.midi.Sequence sequence)
Creates a new MidiEventManager. |
void |
sequentialNoteEvent(Note note)
Called when the parser encounters a sequential note event. |
void |
tempoEvent(Tempo tempo)
Called when the parser encounters a tempo event. |
void |
timeEvent(Time time)
Called when the parser encounters a time event. |
void |
voiceEvent(Voice voice)
Called when the parser encounters a voice event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamingMidiRenderer(javax.sound.midi.Sequence sequence)
Method Detail |
---|
public void reset(javax.sound.midi.Sequence sequence)
public javax.sound.midi.Sequence render(Pattern pattern)
pattern
- the pattern to renderpublic void voiceEvent(Voice voice)
ParserListener
voiceEvent
in interface ParserListener
voice
- the event that has been parsedVoice
public void tempoEvent(Tempo tempo)
ParserListener
tempoEvent
in interface ParserListener
tempo
- the event that has been parsedTempo
public void instrumentEvent(Instrument instrument)
ParserListener
instrumentEvent
in interface ParserListener
instrument
- the event that has been parsedInstrument
public void layerEvent(Layer layer)
ParserListener
layerEvent
in interface ParserListener
layer
- the event that has been parsedLayer
public void timeEvent(Time time)
ParserListener
timeEvent
in interface ParserListener
time
- the event that has been parsedTime
public void measureEvent(Measure measure)
ParserListener
measureEvent
in interface ParserListener
measure
- the event that has been parsedMeasure
public void keySignatureEvent(KeySignature keySig)
ParserListener
keySignatureEvent
in interface ParserListener
KeySignature
public void controllerEvent(Controller controller)
ParserListener
controllerEvent
in interface ParserListener
controller
- the event that has been parsedpublic void channelPressureEvent(ChannelPressure channelPressure)
ParserListener
channelPressureEvent
in interface ParserListener
channelPressure
- the event that has been parsedChannelPressure
public void polyphonicPressureEvent(PolyphonicPressure polyphonicPressure)
ParserListener
polyphonicPressureEvent
in interface ParserListener
polyphonicPressure
- the event that has been parsedPolyphonicPressure
public void pitchBendEvent(PitchBend pitchBend)
ParserListener
pitchBendEvent
in interface ParserListener
pitchBend
- the event that has been parsedPitchBend
public void noteEvent(Note note)
ParserListener
noteEvent
in interface ParserListener
note
- the event that has been parsedNote
public void sequentialNoteEvent(Note note)
ParserListener
sequentialNoteEvent
in interface ParserListener
note
- the event that has been parsedNote
public void parallelNoteEvent(Note note)
ParserListener
parallelNoteEvent
in interface ParserListener
note
- the event that has been parsedNote
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |