public class MusicXMLWrapper.Note extends MusicXMLWrapper.MusicData
note要素からの情報を取り出すためのメソッドを提供します. ただし, 現バージョンでは, note要素内で記述されるすべての要素に対応しているわけでは なく, pitch, rest, duration, chord, grace, voice, type, modification, stem, staff, notationsのみ対応しています. 対応していない要素から情報を取り出すには, nodeメソッドでnote要素の Nodeオブジェクトを取得してから, 自分でDOMメソッドを用いる必要があります. なお, notationsについては, 現状では最初に出現したものだけしか扱えません.
修飾子とタイプ | メソッドと説明 |
---|---|
double |
beat()
obsolete
|
boolean |
chord()
直前の音符と和音をなすときにtrueを返します.
|
java.util.List<MusicXMLWrapper.Note> |
chordNotes()
この音符が和音をなすときに, その和音の構成音を表すNoteオブジェクトの リストを返します.
|
boolean |
containsTieType(java.lang.String type) |
int |
duration()
音符の長さを整数で返します.
|
MusicXMLWrapper.Notations |
getFirstNotations()
このnote要素内で最初に出現したnotations要素をラップするNotationsオブジェクト を返します.
|
protected java.lang.String |
getSupportedNodeName()
Returns "note".
|
java.lang.String |
getXPathExpression()
このnote要素に対応するXPath表現を返します.
|
boolean |
grace()
装飾音符のときにtrueを返します.
|
boolean |
hasArticulation(java.lang.String name) |
boolean |
hasTimeModification()
time-modification要素が存在するときにtrueを返します.
|
java.lang.String |
notehead() |
java.lang.String |
noteName()
音名
|
int |
notenum()
音高をノートナンバー形式で返します.
|
int |
offset(int ticksPerBeat) |
int |
pitchAlter()
音符にシャープが付いていれば1, フラットが付いていれば-1を返します.
|
int |
pitchOctave()
オクターブ番号を返します.
|
java.lang.String |
pitchStep()
CやDなどの音名を返します.
|
boolean |
rest()
休符のときにtrueを返します.
|
int |
staff() |
java.lang.String |
stem() |
double |
tiedDuration() |
int |
tiedDuration(int ticksPerBeat) |
MusicXMLWrapper.Note |
tiedTo() |
int |
timeModificationActualNotes() |
int |
timeModificationNormalNotes() |
MusicXMLWrapper.Note |
topNoteOfChord()
この音符が和音をなすときに, その和音のトップノートを返します.
|
java.lang.String |
type() |
int |
voice() |
actualDuration, actualDuration, duration, measure, offet, onset, onsetWithinMeasure, ordinal, subordinal
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 double beat()
public final boolean chord()
直前の音符と和音をなすときにtrueを返します.
public java.util.List<MusicXMLWrapper.Note> chordNotes()
この音符が和音をなすときに, その和音の構成音を表すNoteオブジェクトの リストを返します.
public final boolean containsTieType(java.lang.String type)
public final int duration()
音符の長さを整数で返します. Attributes要素の中のdivisions要素の値が 分母となり, duration/divisions=1.0のときに4分音符1個分の長さとみなされます.
duration
クラス内 MusicXMLWrapper.MusicData
public MusicXMLWrapper.Notations getFirstNotations()
このnote要素内で最初に出現したnotations要素をラップするNotationsオブジェクト を返します.
protected final java.lang.String getSupportedNodeName()
Returns "note".
getSupportedNodeName
クラス内 MusicXMLWrapper.MusicData
public java.lang.String getXPathExpression()
このnote要素に対応するXPath表現を返します.
public final boolean grace()
装飾音符のときにtrueを返します.
public boolean hasArticulation(java.lang.String name)
public final boolean hasTimeModification()
time-modification要素が存在するときにtrueを返します.
public final java.lang.String notehead()
public final java.lang.String noteName()
public int notenum()
音高をノートナンバー形式で返します.
public int offset(int ticksPerBeat)
public final int pitchAlter()
音符にシャープが付いていれば1, フラットが付いていれば-1を返します.
public final int pitchOctave()
オクターブ番号を返します. C4=ノートナンバー60を前提としています.
public final java.lang.String pitchStep()
CやDなどの音名を返します.
public final boolean rest()
休符のときにtrueを返します.
public final int staff()
public final java.lang.String stem()
public double tiedDuration()
public int tiedDuration(int ticksPerBeat)
public final MusicXMLWrapper.Note tiedTo()
public int timeModificationActualNotes()
public int timeModificationNormalNotes()
public final MusicXMLWrapper.Note topNoteOfChord()
この音符が和音をなすときに, その和音のトップノートを返します.
public final java.lang.String type()
public final int voice()