|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.crestmuse.cmx.filewrappers.NodeInterface
jp.crestmuse.cmx.filewrappers.MusicXMLWrapper.MusicData
jp.crestmuse.cmx.filewrappers.MusicXMLWrapper.Note
public class MusicXMLWrapper.Note
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 |
toString()
|
java.lang.String |
type()
|
int |
velocity()
|
int |
voice()
|
クラス jp.crestmuse.cmx.filewrappers.MusicXMLWrapper.MusicData から継承されたメソッド |
---|
actualDuration, actualDuration, duration, measure, onset, onsetWithinMeasure, ordinal, subordinal |
クラス jp.crestmuse.cmx.filewrappers.NodeInterface から継承されたメソッド |
---|
getAttribute, getAttribute, getAttributeDouble, getAttributeDouble, getAttributeInt, getAttributeInt, getChildByTagName, getChildByTagName, getChildNodes, getChildText, getChildTextDouble, getChildTextInt, getFirstChild, getLastChild, getNodeName, getText, getText, getTextDouble, getTextInt, hasAttribute, hasAttribute, hasChild, hasChild, node |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
インタフェース jp.crestmuse.cmx.misc.NoteCompatible から継承されたメソッド |
---|
duration, onset |
メソッドの詳細 |
---|
protected final java.lang.String getSupportedNodeName()
Returns "note".
MusicXMLWrapper.MusicData
内の getSupportedNodeName
public final java.lang.String pitchStep()
CやDなどの音名を返します.
public final int pitchOctave()
オクターブ番号を返します. C4=ノートナンバー60を前提としています.
public final int pitchAlter()
音符にシャープが付いていれば1, フラットが付いていれば-1を返します.
public final int duration()
音符の長さを整数で返します. Attributes要素の中のdivisions要素の値が 分母となり, duration/divisions=1.0のときに4分音符1個分の長さとみなされます.
MusicXMLWrapper.MusicData
内の duration
public double tiedDuration()
public int tiedDuration(int ticksPerBeat)
public int offset(int ticksPerBeat)
NoteCompatible
内の offset
MusicXMLWrapper.MusicData
内の offset
public final boolean chord()
直前の音符と和音をなすときにtrueを返します.
public final boolean rest()
休符のときにtrueを返します.
public final boolean grace()
装飾音符のときにtrueを返します.
public final java.lang.String stem()
public final java.lang.String type()
public final boolean hasTimeModification()
time-modification要素が存在するときにtrueを返します.
public int timeModificationActualNotes()
public int timeModificationNormalNotes()
public final int voice()
public final int staff()
public final boolean containsTieType(java.lang.String type)
public final MusicXMLWrapper.Note tiedTo()
public final java.lang.String notehead()
public final java.lang.String noteName()
public int notenum()
音高をノートナンバー形式で返します.
NoteCompatible
内の notenum
public int velocity()
NoteCompatible
内の velocity
public java.lang.String toString()
java.lang.Object
内の toString
public final MusicXMLWrapper.Note topNoteOfChord()
この音符が和音をなすときに, その和音のトップノートを返します.
public java.util.List<MusicXMLWrapper.Note> chordNotes()
この音符が和音をなすときに, その和音の構成音を表すNoteオブジェクトの リストを返します.
public java.lang.String getXPathExpression()
このnote要素に対応するXPath表現を返します.
public double beat()
public MusicXMLWrapper.Notations getFirstNotations()
このnote要素内で最初に出現したnotations要素をラップするNotationsオブジェクト を返します.
public boolean hasArticulation(java.lang.String name)
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |