|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfugue.ParserListenerAdapter
org.jfugue.MidiRenderer
public final class MidiRenderer
This class takes a Pattern, and turns it into wonderful music.
Playing music is only one thing that can be done by rendering a pattern. You could also create your own renderer that draws sheet music based on a pattern. Or, you could create a graphical light show based on the musical notes in the pattern.
This was named Renderer in previous versions of JFugue. The name has been changed to differentiate it from other types of renderers.
| Constructor Summary | |
|---|---|
MidiRenderer(float sequenceTiming,
int resolution)
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. |
javax.sound.midi.Sequence |
getSequence()
Returns the last sequence generated by this renderer |
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. |
void |
reset()
Creates a new MidiEventManager using the sequenceTiming and resolution already used to create this MidiRenderer. |
void |
reset(float sequenceTiming,
int resolution)
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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MidiRenderer(float sequenceTiming,
int resolution)
| Method Detail |
|---|
public void reset(float sequenceTiming,
int resolution)
public void reset()
public javax.sound.midi.Sequence getSequence()
public void voiceEvent(Voice voice)
ParserListenerAdapter
voiceEvent in interface ParserListenervoiceEvent in class ParserListenerAdaptervoice - the event that has been parsedVoicepublic void tempoEvent(Tempo tempo)
ParserListenerAdapter
tempoEvent in interface ParserListenertempoEvent in class ParserListenerAdaptertempo - the event that has been parsedTempopublic void instrumentEvent(Instrument instrument)
ParserListenerAdapter
instrumentEvent in interface ParserListenerinstrumentEvent in class ParserListenerAdapterinstrument - the event that has been parsedInstrumentpublic void layerEvent(Layer layer)
ParserListenerAdapter
layerEvent in interface ParserListenerlayerEvent in class ParserListenerAdapterlayer - the event that has been parsedLayerpublic void timeEvent(Time time)
ParserListenerAdapter
timeEvent in interface ParserListenertimeEvent in class ParserListenerAdaptertime - the event that has been parsedTimepublic void measureEvent(Measure measure)
ParserListenerAdapter
measureEvent in interface ParserListenermeasureEvent in class ParserListenerAdaptermeasure - the event that has been parsedMeasurepublic void keySignatureEvent(KeySignature keySig)
ParserListenerAdapter
keySignatureEvent in interface ParserListenerkeySignatureEvent in class ParserListenerAdapterKeySignaturepublic void controllerEvent(Controller controller)
ParserListenerAdapter
controllerEvent in interface ParserListenercontrollerEvent in class ParserListenerAdaptercontroller - the event that has been parsedpublic void channelPressureEvent(ChannelPressure channelPressure)
ParserListenerAdapter
channelPressureEvent in interface ParserListenerchannelPressureEvent in class ParserListenerAdapterchannelPressure - the event that has been parsedChannelPressurepublic void polyphonicPressureEvent(PolyphonicPressure polyphonicPressure)
ParserListenerAdapter
polyphonicPressureEvent in interface ParserListenerpolyphonicPressureEvent in class ParserListenerAdapterpolyphonicPressure - the event that has been parsedPolyphonicPressurepublic void pitchBendEvent(PitchBend pitchBend)
ParserListenerAdapter
pitchBendEvent in interface ParserListenerpitchBendEvent in class ParserListenerAdapterpitchBend - the event that has been parsedPitchBendpublic void noteEvent(Note note)
ParserListenerAdapter
noteEvent in interface ParserListenernoteEvent in class ParserListenerAdapternote - the event that has been parsedNotepublic void sequentialNoteEvent(Note note)
ParserListenerAdapter
sequentialNoteEvent in interface ParserListenersequentialNoteEvent in class ParserListenerAdapternote - the event that has been parsedNotepublic void parallelNoteEvent(Note note)
ParserListenerAdapter
parallelNoteEvent in interface ParserListenerparallelNoteEvent in class ParserListenerAdapternote - the event that has been parsedNote
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||