public class MusicXMLWrapper.Measure extends NodeInterface
This class provides methods for getting information from a measure element.
measure要素から情報を取り出すためのメソッドを提供します.
修飾子とタイプ | メソッドと説明 |
---|---|
int |
cumulativeTicks(int ticksPerBeat) |
int |
duration(int ticksPerBeat) |
void |
eachdata(groovy.lang.Closure closure) |
void |
eachnote(groovy.lang.Closure closure) |
MusicXMLWrapper.Attributes |
getAttributesNodeInterface()
Returns the Attributes object.
|
MusicXMLWrapper.MusicData[] |
getMusicDataList()
Returns the array of music data included in this measure element.
|
protected java.lang.String |
getSupportedNodeName()
Returns "measure".
|
java.lang.String |
getXPathExpression()
Returns an XPath expression for this node.
|
double |
initialBeat() |
int |
number()
Returns the measure number.
|
java.lang.String |
numberInString() |
int |
numberX() |
MusicXMLWrapper.Part |
part()
Returns the Part object.
|
boolean |
startsWithX() |
int |
tempo() |
getAttribute, getAttribute, getAttributeDouble, getAttributeDouble, getAttributeInt, getAttributeInt, getAttributeKeys, getAttributeNS, getAttributes, getChildByTagName, getChildByTagNameNS, getChildNodes, getChildText, getChildTextDouble, getChildTextInt, getFirstChild, getLastChild, getNodeName, getText, getText, getTextDouble, getTextInt, hasAttribute, hasAttribute, hasChild, node
public final int cumulativeTicks(int ticksPerBeat)
public int duration(int ticksPerBeat)
public void eachdata(groovy.lang.Closure closure) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public void eachnote(groovy.lang.Closure closure) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
public MusicXMLWrapper.Attributes getAttributesNodeInterface()
Returns the Attributes object.
このmeasure要素内のattributes要素に対応するAttributesオブジェクトを 返します.
public MusicXMLWrapper.MusicData[] getMusicDataList()
Returns the array of music data included in this measure element.
このmeasure要素に含まれる音楽データの配列を返します. ここで, 音楽データとはmeasure要素のすべての子を表し, attributes, note, forward, backupなどが該当します.
protected final java.lang.String getSupportedNodeName()
Returns "measure".
getSupportedNodeName
クラス内 NodeInterface
public java.lang.String getXPathExpression()
Returns an XPath expression for this node.
このノードのXPath表現を返します.
public final double initialBeat()
public final int number()
Returns the measure number.
小節番号を返します.
public final java.lang.String numberInString()
public final int numberX()
public final MusicXMLWrapper.Part part()
Returns the Part object.
この要素の親にあたるpart要素のオブジェクトを返します.
public final boolean startsWithX()
public int tempo()