jp.crestmuse.cmx.filewrappers
クラス MusicXMLWrapper.Measure

java.lang.Object
  上位を拡張 jp.crestmuse.cmx.filewrappers.NodeInterface
      上位を拡張 jp.crestmuse.cmx.filewrappers.MusicXMLWrapper.Measure
含まれているクラス:
MusicXMLWrapper

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()
           
 
クラス jp.crestmuse.cmx.filewrappers.NodeInterface から継承されたメソッド
getAttribute, getAttribute, getAttributeDouble, getAttributeDouble, getAttributeInt, getAttributeInt, getAttributeNS, getChildByTagName, getChildByTagNameNS, getChildNodes, getChildText, getChildTextDouble, getChildTextInt, getFirstChild, getLastChild, getNodeName, getText, getText, getTextDouble, getTextInt, hasAttribute, hasAttribute, hasChild, node
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

cumulativeTicks

public final int cumulativeTicks(int ticksPerBeat)

duration

public int duration(int ticksPerBeat)

eachdata

public void eachdata(groovy.lang.Closure closure)
              throws javax.xml.transform.TransformerException
例外:
javax.xml.transform.TransformerException

eachnote

public void eachnote(groovy.lang.Closure closure)
              throws javax.xml.transform.TransformerException
例外:
javax.xml.transform.TransformerException

getAttributesNodeInterface

public MusicXMLWrapper.Attributes getAttributesNodeInterface()

Returns the Attributes object.

このmeasure要素内のattributes要素に対応するAttributesオブジェクトを 返します.


getMusicDataList

public MusicXMLWrapper.MusicData[] getMusicDataList()

Returns the array of music data included in this measure element.

このmeasure要素に含まれる音楽データの配列を返します. ここで, 音楽データとはmeasure要素のすべての子を表し, attributes, note, forward, backupなどが該当します.


getSupportedNodeName

protected final java.lang.String getSupportedNodeName()

Returns "measure".

定義:
クラス NodeInterface 内の getSupportedNodeName

getXPathExpression

public java.lang.String getXPathExpression()

Returns an XPath expression for this node.

このノードのXPath表現を返します.


initialBeat

public final double initialBeat()

number

public final int number()

Returns the measure number.

小節番号を返します.


numberInString

public final java.lang.String numberInString()

numberX

public final int numberX()

part

public final MusicXMLWrapper.Part part()

Returns the Part object.

この要素の親にあたるpart要素のオブジェクトを返します.


startsWithX

public final boolean startsWithX()

tempo

public int tempo()