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, 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 |
TIMESTAMP_ABSOLUTE
public static final byte TIMESTAMP_ABSOLUTE
- 関連項目:
- 定数フィールド値
TIMESTAMP_DELTA
public static final byte TIMESTAMP_DELTA
- 関連項目:
- 定数フィールド値
TOP_TAG
public static final java.lang.String TOP_TAG
- newOutputData() トップタグの追加
- 導入されたバージョン:
- 2007.7.18
- 関連項目:
- 定数フィールド値
MIDIXMLWrapper
public MIDIXMLWrapper()
addElementsFirstForFormat0
public void addElementsFirstForFormat0(int ticksPerBeat)
addElementsFirstForFormat1
public void addElementsFirstForFormat1(int nTracks,
int ticksPerBeat)
addMetaEvent
public void addMetaEvent(java.lang.String type,
int timestamp,
int... content)
addMIDIChannelMessage
public void addMIDIChannelMessage(java.lang.String type,
int timestamp,
byte channel,
int... attrs)
addMIDIChannelMessages
public void addMIDIChannelMessages(MIDIEventList el)
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
endTrack
public void endTrack()
endTrack
public void endTrack(boolean needsMetaEvent)
format
public int format()
getMIDIInputStream
public java.io.InputStream getMIDIInputStream()
throws java.io.IOException
- 定義:
- インタフェース
PianoRollCompatible
内の getMIDIInputStream
- 例外:
java.io.IOException
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
getSMFFileName
public java.lang.String getSMFFileName()
getTrackList
public MIDIXMLWrapper.Track[] getTrackList()
newTrack
public void newTrack(int number)
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
readSMF
public static MIDIXMLWrapper readSMF(java.io.InputStream input)
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
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
ticksPerBeat
public int ticksPerBeat()
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,
jp.crestmuse.cmx.filewrappers.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,
jp.crestmuse.cmx.filewrappers.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
trackCount
public int trackCount()
writeAsSMF
public void writeAsSMF(java.io.OutputStream out)
throws java.io.IOException
- 例外:
java.io.IOException
writefileAsSMF
public void writefileAsSMF(java.io.File file)
throws java.io.IOException
- 例外:
java.io.IOException
writefileAsSMF
public void writefileAsSMF(java.lang.String filename)
throws java.io.IOException
- 例外:
java.io.IOException