public class MIDIXMLWrapper extends CMXFileWrapper
修飾子とタイプ | クラスと説明 |
---|---|
class |
MIDIXMLWrapper.MIDIEvent |
class |
MIDIXMLWrapper.Track |
修飾子とタイプ | フィールドと説明 |
---|---|
static byte |
TIMESTAMP_ABSOLUTE |
static byte |
TIMESTAMP_DELTA |
static java.lang.String |
TOP_TAG
newOutputData() トップタグの追加
|
コンストラクタと説明 |
---|
MIDIXMLWrapper() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addElementsFirstForFormat0(int ticksPerBeat) |
void |
addElementsFirstForFormat1(int nTracks,
int ticksPerBeat) |
void |
addMetaEvent(java.lang.String type,
int timestamp,
int... content) |
void |
addMIDIChannelMessage(java.lang.String type,
int timestamp,
byte channel,
int... attrs) |
void |
addMIDIChannelMessages(MIDIEventList el) |
protected void |
analyze()
This method defines the initial processing required for extracting
information from the XML document.
|
void |
endTrack() |
void |
endTrack(boolean needsMetaEvent) |
int |
format() |
java.io.InputStream |
getMIDIInputStream()
推奨されていません。
|
java.lang.String |
getSMFFileName() |
MIDIXMLWrapper.Track[] |
getTrackList() |
void |
newTrack(int number) |
static MIDIXMLWrapper |
readSMF(java.io.InputStream input) |
static MIDIXMLWrapper |
readSMF(java.lang.String filename) |
int |
ticksPerBeat() |
SCCXMLWrapper |
toSCCXML() |
void |
toSCCXML(SCCXMLWrapper dest)
推奨されていません。
|
void |
toSCCXML(SCCXMLWrapper dest,
jp.crestmuse.cmx.filewrappers.SCCXMLWrapper.EasyChord[] chords)
推奨されていません。
|
void |
toSCCXML(SCCXMLWrapper dest,
jp.crestmuse.cmx.filewrappers.SCCXMLWrapper.EasyChord[] chords,
java.lang.String key) |
int |
trackCount() |
void |
writeAsSMF(java.io.OutputStream out) |
void |
writefileAsSMF(java.io.File file) |
void |
writefileAsSMF(java.lang.String filename) |
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
public static final byte TIMESTAMP_ABSOLUTE
public static final byte TIMESTAMP_DELTA
public static final java.lang.String TOP_TAG
public void addElementsFirstForFormat0(int ticksPerBeat)
public void addElementsFirstForFormat1(int nTracks, int ticksPerBeat)
public void addMetaEvent(java.lang.String type, int timestamp, int... content)
public void addMIDIChannelMessage(java.lang.String type, int timestamp, byte channel, int... attrs)
public void addMIDIChannelMessages(MIDIEventList el)
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()メソッドの前に呼び出されます. デフォルトの実装では何もしません.
analyze
クラス内 CMXFileWrapper
public void endTrack()
public void endTrack(boolean needsMetaEvent)
public int format()
@Deprecated public java.io.InputStream getMIDIInputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getSMFFileName()
public MIDIXMLWrapper.Track[] getTrackList()
public void newTrack(int number)
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
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
public int ticksPerBeat()
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
@Deprecated 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
@Deprecated 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
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
public int trackCount()
public void writeAsSMF(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void writefileAsSMF(java.io.File file) throws java.io.IOException
java.io.IOException
public void writefileAsSMF(java.lang.String filename) throws java.io.IOException
java.io.IOException