jp.crestmuse.cmx.filewrappers
クラス MIDIXMLWrapper
java.lang.Object
jp.crestmuse.cmx.filewrappers.CMXFileWrapper
jp.crestmuse.cmx.filewrappers.MIDIXMLWrapper
- すべての実装されたインタフェース:
- FileWrapperCompatible, PianoRollCompatible
public class MIDIXMLWrapper
- extends CMXFileWrapper
- implements PianoRollCompatible
クラス 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.18
- 関連項目:
- 定数フィールド値
TIMESTAMP_DELTA
public static final byte TIMESTAMP_DELTA
- 関連項目:
- 定数フィールド値
TIMESTAMP_ABSOLUTE
public static final byte TIMESTAMP_ABSOLUTE
- 関連項目:
- 定数フィールド値
MIDIXMLWrapper
public MIDIXMLWrapper()
addElementsFirstForFormat0
public void addElementsFirstForFormat0(int ticksPerBeat)
addElementsFirstForFormat1
public void addElementsFirstForFormat1(int nTracks,
int ticksPerBeat)
newTrack
public void newTrack(int number)
endTrack
public void endTrack(boolean needsMetaEvent)
endTrack
public void endTrack()
addMIDIChannelMessages
public void addMIDIChannelMessages(MIDIEventList el)
addMIDIChannelMessage
public void addMIDIChannelMessage(java.lang.String type,
int timestamp,
byte channel,
int... attrs)
addMetaEvent
public void addMetaEvent(java.lang.String type,
int timestamp,
int... content)
writefileAsSMF
public void writefileAsSMF(java.lang.String filename)
throws java.io.IOException
- 例外:
java.io.IOException
writefileAsSMF
public void writefileAsSMF(java.io.File file)
throws java.io.IOException
- 例外:
java.io.IOException
readSMF
public static MIDIXMLWrapper readSMF(java.lang.String filename)
throws 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
javax.xml.transform.TransformerException
processMIDIEvent
public void processMIDIEvent(MIDIHandler h)
- toSCCXML内で呼び出されます
- パラメータ:
h
- - 導入されたバージョン:
- 2007.08.08
processNotes
public void processNotes(CommonNoteHandler h)
throws javax.xml.transform.TransformerException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- 定義:
- インタフェース
PianoRollCompatible
内の processNotes
- 例外:
javax.xml.transform.TransformerException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
getPartwiseNoteList
public java.util.List<SimpleNoteList> getPartwiseNoteList(int tickePerBeat)
throws java.io.IOException,
javax.xml.transform.TransformerException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- 定義:
- インタフェース
PianoRollCompatible
内の getPartwiseNoteList
- 例外:
java.io.IOException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
getMIDIInputStream
public java.io.InputStream getMIDIInputStream()
throws java.io.IOException
- 定義:
- インタフェース
PianoRollCompatible
内の getMIDIInputStream
- 例外:
java.io.IOException
toSCCXML
public SCCXMLWrapper toSCCXML()
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
toSCCXML
public void toSCCXML(SCCXMLWrapper dest)
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
toSCCXML
public void toSCCXML(SCCXMLWrapper dest,
SCCXMLWrapper.EasyChord[] chords)
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
toSCCXML
public void toSCCXML(SCCXMLWrapper dest,
SCCXMLWrapper.EasyChord[] chords,
java.lang.String key)
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
format
public int format()
trackCount
public int trackCount()
ticksPerBeat
public int ticksPerBeat()
analyze
protected void analyze()
- クラス
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
getTrackList
public MIDIXMLWrapper.Track[] getTrackList()