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()に指定するトップタグ名.スペルミス防止.
 
クラス jp.crestmuse.cmx.filewrappers.CMXFileWrapper から継承されたフィールド
catalogFileName, linkmanager
 
コンストラクタの概要
DeviationInstanceWrapper()
           
 
メソッドの概要
protected  void analyze()
          This method defines the initial processing required for extracting information from the XML document.
static void changeDefaultMusicXMLDirName(java.lang.String dirname)
           
 DeviationDataSet createDeviationDataSet()
           
static DeviationInstanceWrapper createDeviationInstanceFor(MusicXMLWrapper musicxml)
           
 int getBaseDynamics()
           
 DeviationInstanceWrapper.ChordDeviation getChordDeviation(MusicXMLWrapper.Note note)
           
 TreeView<DeviationInstanceWrapper.ExtraNote> getExtraNoteView(java.lang.String partid)
           
 double getInitialSilence()
          Returns the tick unit.
 DeviationInstanceWrapper.MissNote getMissNote(MusicXMLWrapper.Note note)
           
 TreeView<DeviationInstanceWrapper.Control> getNonPartwiseControlView()
           
 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 setBaseDynamics(int baseDynamics)
           
 void setTargetMusicXMLFileName(java.lang.String filename)
           
 CSVWrapper toCSV(int divisionPerMeasure, int windowPerMeasure)
           
 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, addSibling, addSibling, addText, addText, addText, changeCurrentNode, checkFinalized, createDocument, finalizeDocument, getDocument, getFileName, getTopTagAttribute, getTopTagAttributeNS, getURI, init, isFinalized, 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()
メソッドの詳細

setBaseDynamics

public void setBaseDynamics(int baseDynamics)

getBaseDynamics

public int getBaseDynamics()

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ドキュメントの ファイル名を返します.


setTargetMusicXMLFileName

public void setTargetMusicXMLFileName(java.lang.String filename)

changeDefaultMusicXMLDirName

public static void changeDefaultMusicXMLDirName(java.lang.String dirname)

getInitialSilence

public double getInitialSilence()
Returns the tick unit.


createDeviationInstanceFor

public static DeviationInstanceWrapper createDeviationInstanceFor(MusicXMLWrapper musicxml)

createDeviationDataSet

public DeviationDataSet createDeviationDataSet()

getNoteDeviation

public DeviationInstanceWrapper.NoteDeviation getNoteDeviation(MusicXMLWrapper.Note note)

getChordDeviation

public DeviationInstanceWrapper.ChordDeviation getChordDeviation(MusicXMLWrapper.Note note)

getMissNote

public DeviationInstanceWrapper.MissNote getMissNote(MusicXMLWrapper.Note note)

searchNonPartwiseControl

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

searchNonPartwiseControl

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

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

toSCCXML

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

toSCCXML

public SCCXMLWrapper toSCCXML(int ticksPerBeat)
                       throws javax.xml.transform.TransformerException,
                              java.io.IOException,
                              javax.xml.parsers.ParserConfigurationException,
                              org.xml.sax.SAXException
例外:
javax.xml.transform.TransformerException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

toCSV

public CSVWrapper toCSV(int divisionPerMeasure,
                        int windowPerMeasure)

getNonPartwiseControlView

public TreeView<DeviationInstanceWrapper.Control> getNonPartwiseControlView()

getPartwiseControlView

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

getExtraNoteView

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