com.softsynth.jmsl.score.util
Class RawJScoreFileParser
java.lang.Object
java.io.Reader
java.io.BufferedReader
com.softsynth.jmsl.score.util.RawJScoreFileParser
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
public class RawJScoreFileParser
- extends java.io.BufferedReader
A raw JScore file is a text file that looks something like this:
TICKSPERQUARTER 240
MAXVEL 127
STAFFS 6
NOTE 0 6 30 44 120 0 1 0
NOTE 0 6 30 41 120 0 1 0
NOTE 0 6 30 41 120 0 1 0
NOTE 0 6 30 41 120 0 1 0
NOTE 0 6 30 41 120 0 1 0
Comments:
NOTE measure# track# dur pitch vel tiedoutflag beamedoutflag playstyle
Make measure = -1 if you don't care to set the measure of the note explicitely, rather letting it flow into the score.
Track# map onto staff# in pairs:
track 0,1 => staff 0
track 2,3 => staff 1
Methods inherited from class java.io.BufferedReader |
close, mark, markSupported, read, read, readLine, ready, reset, skip |
Methods inherited from class java.io.Reader |
read, read |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RawJScoreFileParser
public RawJScoreFileParser(java.io.FileReader reader)
RawJScoreFileParser
public RawJScoreFileParser(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
addRawJScoreFileListener
public void addRawJScoreFileListener(RawJScoreFileListener listener)
removeRawJScoreFileListener
public void removeRawJScoreFileListener(RawJScoreFileListener listener)
parse
public void parse()
throws java.io.IOException
- Throws:
java.io.IOException