|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.common.Disposable
net.charlesames.music.musicxml.MusicXmlEntity
net.charlesames.music.musicxml.TimedEvent
net.charlesames.music.musicxml.NoteInMeasure
public class NoteInMeasure
The NoteInMeasure class implements the MusicXML <note> element.
| Method Summary | |
|---|---|
void |
addNotation(Notation notation)
Add a Notation instance. |
void |
addOtherNotation(java.lang.String content)
Add a new OtherNotation instance. |
void |
addSlurStart()
Add a new type "start" Slur instance. |
void |
addSlurStop()
Add a new type "stop" Slur instance. |
Tuplet |
addTuplet(int number,
StartStop tupletType)
Create and add a Tuplet instance with the indicated parameters. |
void |
dispose()
Release resources engaged by this object, thus rendering it amenable to garbage collection. |
boolean |
equals(MusicXmlEntity other)
Test if this MusicXML entity has the same content as another object. |
static NoteInMeasure |
fromXmlNode(org.w3c.dom.Element element,
MeasureInPart container)
Create a new NoteInMeasure instance and fill it with loaded data. |
Beam |
getBeam()
Getter for Beam property. |
MeasureInPart |
getContainer()
Get the parent object. |
int |
getDots()
Getter for Dots property. |
static NoteInMeasure |
getInstance(MeasureInPart container)
Create a new NoteInMeasure instance. |
java.lang.String |
getInstrumentID()
Getter for InstrumentID property. |
java.lang.String |
getNeume()
Getter for Neume property. |
java.util.List<Notation> |
getNotations()
Get all notations. |
NoteheadShape |
getNotehead()
Getter for Notehead property. |
int |
getStaff()
Getter for Staff property. |
Stem |
getStem()
Getter for Stem property. |
net.charlesames.music.musicxml.StepAndOctave |
getStepAndOctave()
Getter for the StepAndOctave property. |
long |
getTupletActual()
Getter for TupletRatio property. |
long |
getTupletNormal()
Getter for TupletNormal property. |
int |
getVoice()
Getter for the Voice property. |
boolean |
isTieStart()
Getter for the TieStart property. |
boolean |
isTieStop()
Getter for the TieStop property. |
void |
putXmlData(org.w3c.dom.Element element)
|
void |
setBeam(Beam value)
Setter for Beam property. |
void |
setDots(int dots)
Setter for Dots property. |
void |
setDuration(int duration)
|
void |
setInChord(boolean inChord)
|
void |
setInstrumentID(java.lang.String instrumentID)
Setter for InstrumentID property. |
void |
setNeume(java.lang.String neume)
Setter for Neume property. |
void |
setNotehead(NoteheadShape value)
Setter for Notehead property. |
void |
setPitch(java.lang.String step,
int octave,
double alter)
Set the StepAndOctave property to a new Pitch instance with the indicated parameters. |
void |
setStaff(int staff)
Setter for Staff property. |
void |
setStem(Stem value)
Setter for Stem property. |
void |
setTieStart(boolean tieStart)
Setter for the TieStart property. |
void |
setTieStop(boolean tieStop)
Setter for the TieStop property. |
void |
setTupletRatio(Ratio tupletRatio)
Setter for TupletRatio property. |
void |
setUnpitched(java.lang.String step,
int octave)
Set the StepAndOctave property to a new Unpitched instance with the indicated parameters. |
void |
setVoice(int voice)
Setter for the Voice property. |
org.w3c.dom.Node |
toXmlNode(org.w3c.dom.Node parent)
Serialize the content of a MusicXML entity into an XML element. |
| Methods inherited from class net.charlesames.music.musicxml.TimedEvent |
|---|
getComment, getDefaultX, getDuration, getTime, isInChord, setComment, setDefaultX, setTime |
| Methods inherited from class net.charlesames.music.musicxml.MusicXmlEntity |
|---|
makeDirty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void dispose()
Disposable
dispose in class TimedEventpublic static NoteInMeasure getInstance(MeasureInPart container)
container - The MeasureInPart which will contain the new NoteInMeasure instance.
public MeasureInPart getContainer()
MusicXmlEntity
getContainer in class MusicXmlEntitypublic void setInChord(boolean inChord)
public net.charlesames.music.musicxml.StepAndOctave getStepAndOctave()
StepAndOctave property.
StepAndOctave value.
public void setPitch(java.lang.String step,
int octave,
double alter)
StepAndOctave property to a new Pitch instance with the indicated parameters.
step - The indicated step.octave - The indicated octave.alter - The indicated alter.
java.lang.IllegalArgumentException - when the note already has a pitch.
public void setUnpitched(java.lang.String step,
int octave)
StepAndOctave property to a new Unpitched instance with the indicated parameters.
step - The indicated step.octave - The indicated octave.
java.lang.IllegalArgumentException - when the note already has a pitch.public boolean isTieStop()
public void setTieStop(boolean tieStop)
tieStop - The intended TieStop value.public boolean isTieStart()
public void setTieStart(boolean tieStart)
tieStart - The intended TieStart value.public void addSlurStop()
Slur instance.
public void addSlurStart()
Slur instance.
public void addOtherNotation(java.lang.String content)
OtherNotation instance.
content - The notation text content.public void setDuration(int duration)
public int getVoice()
public void setVoice(int voice)
voice - The intended Voice value.public int getStaff()
public void setStaff(int staff)
staff - The intended Staff value.public java.lang.String getNeume()
public void setNeume(java.lang.String neume)
neume - The intended Neume value.public java.lang.String getInstrumentID()
public void setInstrumentID(java.lang.String instrumentID)
instrumentID - The intended InstrumentID value.public int getDots()
public void setDots(int dots)
dots - The intended Dots value.public long getTupletActual()
public long getTupletNormal()
public void setTupletRatio(Ratio tupletRatio)
tupletRatio - The intended tuplet ratio.public Stem getStem()
Stem property.
Stem value.public void setStem(Stem value)
Stem property.
value - The intended Stem value.public Beam getBeam()
Beam property.
Beam value.public void setBeam(Beam value)
Beam property.
value - The intended Beam value.public NoteheadShape getNotehead()
Notehead property.
Notehead value.public void setNotehead(NoteheadShape value)
Notehead property.
value - The intended Notehead value.public java.util.List<Notation> getNotations()
Notation instances.public void addNotation(Notation notation)
Notation instance.
notation - A Notation instance.
public Tuplet addTuplet(int number,
StartStop tupletType)
Tuplet instance with the indicated parameters.
number - The number.tupletType - The tuplet type.
Tuplet instance with the indicated parameters.public org.w3c.dom.Node toXmlNode(org.w3c.dom.Node parent)
MusicXmlEntity
toXmlNode in class MusicXmlEntityparent - The XML element which is to receive the data.
public void putXmlData(org.w3c.dom.Element element)
putXmlData in class TimedEvent
public static NoteInMeasure fromXmlNode(org.w3c.dom.Element element,
MeasureInPart container)
element - The XML element that provides the NoteInMeasure datacontainer - The Measure which will contain the new NoteInMeasure instance.
public boolean equals(MusicXmlEntity other)
MusicXmlEntity
equals in class TimedEventother - The other object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||