jp.crestmuse.cmx.filewrappers
クラス DeviationInstanceWrapper

java.lang.Object
  上位を拡張 jp.crestmuse.cmx.filewrappers.CMXFileWrapper
      上位を拡張 jp.crestmuse.cmx.filewrappers.DeviationInstanceWrapper
すべての実装されたインタフェース:
FileWrapperCompatible

public class DeviationInstanceWrapper
extends CMXFileWrapper

The DeviationInstanceWrapper class wraps a DeviationInstance document.
DeviationInstanceWrapperクラスは, 表情付けインスタンスを記述するXMLドキュメントをラップします.

バージョン:
0.10.000
作成者:
Tetsuro Kitahara

入れ子のクラスの概要
 class DeviationInstanceWrapper.ChordDeviation
           
 class DeviationInstanceWrapper.Control
           
 class DeviationInstanceWrapper.ExtraNote
           
 class DeviationInstanceWrapper.MissNote
           
 class DeviationInstanceWrapper.NoteDeviation
           
 
フィールドの概要
static java.lang.String TOP_TAG
          newOutputData()に指定するトップタグ名.スペルミス防止.
 
コンストラクタの概要
DeviationInstanceWrapper()
           
 
メソッドの概要
protected  void analyze()
          This method defines the initial processing required for extracting information from the XML document.
 int getBaseVelocity()
           
 DeviationInstanceWrapper.ChordDeviation getChordDeviation(MusicXMLWrapper.Note note)
           
 java.util.LinkedList<DeviationInstanceWrapper.ExtraNote> getExtraNotesList(DeviationInstanceWrapper dev, java.lang.String partID)
          DeviationInstanceのExtraNotesをリストで取得します
 TreeView<DeviationInstanceWrapper.ExtraNote> getExtraNoteView(java.lang.String partid)
           
 double getInitialSilence()
          Returns the tick unit.
 DeviationInstanceWrapper.MissNote getMissNote(MusicXMLWrapper.Note note)
           
 TreeView<DeviationInstanceWrapper.Control> getNonPartwiseControlView()
           
 java.util.LinkedList<DeviationInstanceWrapper.Control> getNonPartwiseList(DeviationInstanceWrapper dev)
          DeviationInstanceのnon-partwise(tempo, tempo-deviation) を時系列順にリストで返します
 DeviationInstanceWrapper.NoteDeviation getNoteDeviation(MusicXMLWrapper.Note note)
           
 TreeView<DeviationInstanceWrapper.Control> getPartwiseControlView(java.lang.String partid)
           
 MusicXMLWrapper getTargetMusicXML()
          Reads and returns the target MusicXML document.
 java.lang.String getTargetMusicXMLFileName()
          Reads the file name of the target MusicXML document.
 DeviationInstanceWrapper.Control searchNonPartwiseControl(int measure, double beat)
           
 DeviationInstanceWrapper.Control searchNonPartwiseControl(int measure, double beat, java.lang.String type)
           
 void setBaseVelocity(int velocity)
           
 CSVWrapper toCSV(int divisionPerMeasure, int windowPerMeasure)
           
 DeviationDataSet toDeviationDataSet()
          Note: Attributes have not been supported.
 SCCXMLWrapper toSCCXML(int ticksPerBeat)
           
 void toSCCXML(SCCXMLWrapper dest, int ticksPerBeat)
           
 
クラス jp.crestmuse.cmx.filewrappers.CMXFileWrapper から継承されたメソッド
addChild, addChild, addChildAndText, addChildAndText, addChildAndText, addChildOf, addClassTable, addDocumentTypeTable, addLinks, addLinks, addPathFirst, addPathLast, addSibling, addSibling, addText, addText, addText, changeCurrentNode, checkFinalized, createDocument, finalizeDocument, getAbsolutePath, getDocument, getFileName, getParentPath, getPath, getTopTagAttribute, getTopTagAttributeNS, getURI, init, isFinalized, println, read, readfile, readfile, readfile, resetXPath, returnToParent, returnToPrevCurrentNode, selectNodeList, selectNodeList, selectSingleNode, selectSingleNode, setAttribute, setAttribute, setAttribute, setAttributeNS, setAttributeNS, setAttributeNS, setNamespaceContext, setTopTagAttribute, setTopTagAttributeNS, wrap, write, write, writefile, writefile, writeGZippedFile, writeGZippedFile
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

TOP_TAG

public static final java.lang.String TOP_TAG
newOutputData()に指定するトップタグ名.スペルミス防止.

導入されたバージョン:
2007.7.30 final 追加, 2007.7.18
関連項目:
定数フィールド値
コンストラクタの詳細

DeviationInstanceWrapper

public DeviationInstanceWrapper()
メソッドの詳細

analyze

protected void analyze()
                throws java.io.IOException
クラス CMXFileWrapper の記述:

This method defines the initial processing required for extracting information from the XML document. This is called by the runAll() method in the CMXCommand class after readfile() method before run() method. The default implementation does not do anything.

このメソッドでは, XMLドキュメントから情報を取り出す上で必要な初期の処理を 記述します. これは, CMXCommandクラスのrunAll()メソッドから, readfile()メソッドの後, run()メソッドの前に呼び出されます. デフォルトの実装では何もしません.

オーバーライド:
クラス CMXFileWrapper 内の analyze
例外:
java.io.IOException

getBaseVelocity

public int getBaseVelocity()

getChordDeviation

public DeviationInstanceWrapper.ChordDeviation getChordDeviation(MusicXMLWrapper.Note note)

getExtraNotesList

public java.util.LinkedList<DeviationInstanceWrapper.ExtraNote> getExtraNotesList(DeviationInstanceWrapper dev,
                                                                                  java.lang.String partID)
DeviationInstanceのExtraNotesをリストで取得します

パラメータ:
dev - 対象とするDeviationInstanceWrapper
partID - パートID
戻り値:

getExtraNoteView

public TreeView<DeviationInstanceWrapper.ExtraNote> getExtraNoteView(java.lang.String partid)

getInitialSilence

public double getInitialSilence()
Returns the tick unit.


getMissNote

public DeviationInstanceWrapper.MissNote getMissNote(MusicXMLWrapper.Note note)

getNonPartwiseControlView

public TreeView<DeviationInstanceWrapper.Control> getNonPartwiseControlView()

getNonPartwiseList

public java.util.LinkedList<DeviationInstanceWrapper.Control> getNonPartwiseList(DeviationInstanceWrapper dev)
DeviationInstanceのnon-partwise(tempo, tempo-deviation) を時系列順にリストで返します

パラメータ:
dev -

getNoteDeviation

public DeviationInstanceWrapper.NoteDeviation getNoteDeviation(MusicXMLWrapper.Note note)

getPartwiseControlView

public TreeView<DeviationInstanceWrapper.Control> getPartwiseControlView(java.lang.String partid)

getTargetMusicXML

public MusicXMLWrapper getTargetMusicXML()
                                  throws java.io.IOException
Reads and returns the target MusicXML document.
この表情付けインスタンスがターゲットとしているMusicXMLドキュメントを 読み込んで返します.

例外:
java.io.IOException

getTargetMusicXMLFileName

public java.lang.String getTargetMusicXMLFileName()
Reads the file name of the target MusicXML document.
この表情付けインスタンスがターゲットとしているMusicXMLドキュメントの ファイル名を返します.


searchNonPartwiseControl

public DeviationInstanceWrapper.Control searchNonPartwiseControl(int measure,
                                                                 double beat)

searchNonPartwiseControl

public DeviationInstanceWrapper.Control searchNonPartwiseControl(int measure,
                                                                 double beat,
                                                                 java.lang.String type)

setBaseVelocity

public void setBaseVelocity(int velocity)

toCSV

public CSVWrapper toCSV(int divisionPerMeasure,
                        int windowPerMeasure)

toDeviationDataSet

public DeviationDataSet toDeviationDataSet()
                                    throws java.io.IOException
Note: Attributes have not been supported.

例外:
java.io.IOException

toSCCXML

public SCCXMLWrapper toSCCXML(int ticksPerBeat)
                       throws java.io.IOException
例外:
java.io.IOException

toSCCXML

public void toSCCXML(SCCXMLWrapper dest,
                     int ticksPerBeat)
              throws java.io.IOException
例外:
java.io.IOException