jp.crestmuse.cmx.filewrappers
クラス SCCXMLWrapper

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

public class SCCXMLWrapper
extends CMXFileWrapper
implements PianoRollCompatible


入れ子のクラスの概要
 class SCCXMLWrapper.Annotation
           
 class SCCXMLWrapper.ControlChange
           
 class SCCXMLWrapper.EasyChord
           
 class SCCXMLWrapper.HeaderElement
           
 class SCCXMLWrapper.Note
           
 class SCCXMLWrapper.Part
           
 class SCCXMLWrapper.PitchBend
           
 
フィールドの概要
static java.lang.String TOP_TAG
          newOutputData()に指定するトップタグ名.スペルミス防止.
 
クラス jp.crestmuse.cmx.filewrappers.CMXFileWrapper から継承されたフィールド
catalogFileName, linkmanager
 
コンストラクタの概要
SCCXMLWrapper()
           
 
メソッドの概要
 void addAnnotation(java.lang.String type, int onset, int offset, java.lang.String content)
           
 void addBarline(int time, java.lang.String details)
           
 void addChord(int onset, int offset, java.lang.String content)
           
 void addControlChange(int onset, int offset, int ctrlnum, int value)
           
 void addHeaderElement(int time, java.lang.String name, double value)
           
 void addHeaderElement(int time, java.lang.String name, int value)
           
 void addHeaderElement(int time, java.lang.String name, java.lang.String content)
           
 void addNoteElement(int onset, int offset, int notenum, int velocity)
           
 void addNoteElement(int onset, int offset, int notenum, int velocity, int offVelocity)
           
 void addNoteElement(int onset, int offset, int notenum, int velocity, int offVelocity, MusicXMLWrapper.Note note)
           
 void addNoteElement(int onset, int offset, int notenum, int velocity, MusicXMLWrapper.Note note)
           
 void addNoteElementWithWord(java.lang.String word, int onset, int offset, int notenum, int velocity, int offVelocity)
           
 void addPitchBend(int onset, int offset, int value)
           
protected  void analyze()
          This method defines the initial processing required for extracting information from the XML document.
 void beginAnnotations()
           
 void beginHeader()
           
 SCCXMLWrapper changeVelocity(java.util.List<java.util.List<java.lang.Byte>> diff, boolean sorted)
           
 void eachnote(groovy.lang.Closure closure)
           
 void endAnnotations()
           
 void endHeader()
           
 void endPart()
           
 SCCXMLWrapper.Annotation[] getBarlineList()
           
 SCCXMLWrapper.Annotation[] getChordList()
           
 int getDivision()
           
 SCCXMLWrapper.HeaderElement[] getHeaderElementList()
           
 java.io.InputStream getMIDIInputStream()
           
 SCCXMLWrapper.Part[] getPartList()
           
 java.util.List<SimpleNoteList> getPartwiseNoteList(int ticksPerBeat)
           
static void main(java.lang.String[] args)
           
 void newPart(int serial, int ch, int pn, int vol)
           
 void newPart(int serial, int ch, int pn, int vol, java.lang.String name)
           
 void processNotes(CommonNoteHandler h)
           
 void processNotes(SCCHandler h)
           
 void processSortedNotes(SCCHandler h)
           
 SCCXMLWrapper replaceVelocity(java.util.List<java.util.List<java.lang.Byte>> vellist, boolean sorted)
           
 void setDivision(int div)
           
 MIDIXMLWrapper toMIDIXML()
           
 void toMIDIXML(MIDIXMLWrapper dest)
           
 
クラス 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.18
関連項目:
定数フィールド値
コンストラクタの詳細

SCCXMLWrapper

public SCCXMLWrapper()
メソッドの詳細

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

getDivision

public int getDivision()

setDivision

public void setDivision(int div)

beginHeader

public void beginHeader()

addHeaderElement

public void addHeaderElement(int time,
                             java.lang.String name,
                             java.lang.String content)

addHeaderElement

public void addHeaderElement(int time,
                             java.lang.String name,
                             double value)

addHeaderElement

public void addHeaderElement(int time,
                             java.lang.String name,
                             int value)

endHeader

public void endHeader()

newPart

public void newPart(int serial,
                    int ch,
                    int pn,
                    int vol)

newPart

public void newPart(int serial,
                    int ch,
                    int pn,
                    int vol,
                    java.lang.String name)

endPart

public void endPart()

eachnote

public void eachnote(groovy.lang.Closure closure)
              throws javax.xml.transform.TransformerException
例外:
javax.xml.transform.TransformerException

addPitchBend

public void addPitchBend(int onset,
                         int offset,
                         int value)

addControlChange

public void addControlChange(int onset,
                             int offset,
                             int ctrlnum,
                             int value)

addNoteElement

public void addNoteElement(int onset,
                           int offset,
                           int notenum,
                           int velocity)

addNoteElement

public void addNoteElement(int onset,
                           int offset,
                           int notenum,
                           int velocity,
                           MusicXMLWrapper.Note note)

addNoteElement

public void addNoteElement(int onset,
                           int offset,
                           int notenum,
                           int velocity,
                           int offVelocity)

addNoteElement

public void addNoteElement(int onset,
                           int offset,
                           int notenum,
                           int velocity,
                           int offVelocity,
                           MusicXMLWrapper.Note note)

addNoteElementWithWord

public void addNoteElementWithWord(java.lang.String word,
                                   int onset,
                                   int offset,
                                   int notenum,
                                   int velocity,
                                   int offVelocity)

beginAnnotations

public void beginAnnotations()

addAnnotation

public void addAnnotation(java.lang.String type,
                          int onset,
                          int offset,
                          java.lang.String content)

addChord

public void addChord(int onset,
                     int offset,
                     java.lang.String content)

addBarline

public void addBarline(int time,
                       java.lang.String details)

endAnnotations

public void endAnnotations()

getChordList

public SCCXMLWrapper.Annotation[] getChordList()

getBarlineList

public SCCXMLWrapper.Annotation[] getBarlineList()

getHeaderElementList

public SCCXMLWrapper.HeaderElement[] getHeaderElementList()

processNotes

public void processNotes(CommonNoteHandler h)
                  throws javax.xml.transform.TransformerException
定義:
インタフェース PianoRollCompatible 内の processNotes
例外:
javax.xml.transform.TransformerException

processNotes

public void processNotes(SCCHandler h)
                  throws javax.xml.transform.TransformerException
例外:
javax.xml.transform.TransformerException

processSortedNotes

public void processSortedNotes(SCCHandler h)
                        throws javax.xml.transform.TransformerException
例外:
javax.xml.transform.TransformerException

getPartList

public SCCXMLWrapper.Part[] getPartList()
                                 throws javax.xml.transform.TransformerException
例外:
javax.xml.transform.TransformerException

getPartwiseNoteList

public java.util.List<SimpleNoteList> getPartwiseNoteList(int ticksPerBeat)
                                                   throws javax.xml.transform.TransformerException
定義:
インタフェース PianoRollCompatible 内の getPartwiseNoteList
例外:
javax.xml.transform.TransformerException

getMIDIInputStream

public java.io.InputStream getMIDIInputStream()
                                       throws java.io.IOException,
                                              javax.xml.transform.TransformerException,
                                              javax.xml.parsers.ParserConfigurationException,
                                              org.xml.sax.SAXException
定義:
インタフェース PianoRollCompatible 内の getMIDIInputStream
例外:
java.io.IOException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

toMIDIXML

public MIDIXMLWrapper toMIDIXML()
                         throws javax.xml.parsers.ParserConfigurationException,
                                javax.xml.transform.TransformerException,
                                org.xml.sax.SAXException,
                                java.io.IOException
例外:
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
org.xml.sax.SAXException
java.io.IOException

toMIDIXML

public void toMIDIXML(MIDIXMLWrapper dest)
               throws javax.xml.parsers.ParserConfigurationException,
                      javax.xml.transform.TransformerException,
                      org.xml.sax.SAXException,
                      java.io.IOException
例外:
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
org.xml.sax.SAXException
java.io.IOException

replaceVelocity

public SCCXMLWrapper replaceVelocity(java.util.List<java.util.List<java.lang.Byte>> vellist,
                                     boolean sorted)
                              throws javax.xml.transform.TransformerException,
                                     InvalidFileTypeException,
                                     javax.xml.parsers.ParserConfigurationException,
                                     org.xml.sax.SAXException,
                                     java.io.IOException
例外:
javax.xml.transform.TransformerException
InvalidFileTypeException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

changeVelocity

public SCCXMLWrapper changeVelocity(java.util.List<java.util.List<java.lang.Byte>> diff,
                                    boolean sorted)
                             throws javax.xml.transform.TransformerException,
                                    InvalidFileTypeException,
                                    javax.xml.parsers.ParserConfigurationException,
                                    org.xml.sax.SAXException,
                                    java.io.IOException
例外:
javax.xml.transform.TransformerException
InvalidFileTypeException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

main

public static void main(java.lang.String[] args)