|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfugue.MusicXmlRenderer
public class MusicXmlRenderer
This class is used to build a MusicXML file) given a MIDI Sequence, Music String, etc.
| Constructor Summary | |
|---|---|
MusicXmlRenderer()
|
|
| 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 |
doFirstMeasure(boolean bAddDefaults)
|
nu.xom.Document |
getMusicXMLDoc()
creates the internal Document with the top-level
Element. |
java.lang.String |
getMusicXMLString()
creates the internal Document with the top-level
Element and then creates the MusicXML file (as a
string) from the internal Document |
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. |
static void |
main(java.lang.String[] args)
Used for diagnostic purposes. |
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. |
static float |
PPMtoBPM(int ppm)
converts pulses per minute (PPM) to beats per minute (BPM) assuming 240 pulses per second In MusicXML, BPM can be fractional, so PPMtoBPM returns a float |
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 MusicXmlRenderer()
| Method Detail |
|---|
public java.lang.String getMusicXMLString()
Document with the top-level
Element and then creates the MusicXML file (as a
string) from the internal Document
public nu.xom.Document getMusicXMLDoc()
Document with the top-level
Element.
Documentpublic void doFirstMeasure(boolean bAddDefaults)
public void voiceEvent(Voice voice)
ParserListener
voiceEvent in interface ParserListenervoice - the event that has been parsedVoicepublic void instrumentEvent(Instrument instrument)
ParserListener
instrumentEvent in interface ParserListenerinstrument - the event that has been parsedInstrumentpublic void tempoEvent(Tempo tempo)
ParserListener
tempoEvent in interface ParserListenertempo - the event that has been parsedTempopublic void layerEvent(Layer layer)
ParserListener
layerEvent in interface ParserListenerlayer - the event that has been parsedLayerpublic void timeEvent(Time time)
ParserListener
timeEvent in interface ParserListenertime - the event that has been parsedTimepublic void keySignatureEvent(KeySignature keySig)
ParserListener
keySignatureEvent in interface ParserListenerKeySignaturepublic void measureEvent(Measure measure)
ParserListener
measureEvent in interface ParserListenermeasure - the event that has been parsedMeasurepublic void controllerEvent(Controller controller)
ParserListener
controllerEvent in interface ParserListenercontroller - the event that has been parsedpublic void channelPressureEvent(ChannelPressure channelPressure)
ParserListener
channelPressureEvent in interface ParserListenerchannelPressure - the event that has been parsedChannelPressurepublic void polyphonicPressureEvent(PolyphonicPressure polyphonicPressure)
ParserListener
polyphonicPressureEvent in interface ParserListenerpolyphonicPressure - the event that has been parsedPolyphonicPressurepublic void pitchBendEvent(PitchBend pitchBend)
ParserListener
pitchBendEvent in interface ParserListenerpitchBend - the event that has been parsedPitchBendpublic void noteEvent(Note note)
ParserListener
noteEvent in interface ParserListenernote - the event that has been parsedNotepublic void sequentialNoteEvent(Note note)
ParserListener
sequentialNoteEvent in interface ParserListenernote - the event that has been parsedNotepublic void parallelNoteEvent(Note note)
ParserListener
parallelNoteEvent in interface ParserListenernote - the event that has been parsedNotepublic static float PPMtoBPM(int ppm)
PPMtoBPM returns a float
ppm -
public static void main(java.lang.String[] args)
args - not used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||