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.AutoCloseable, 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
  • Constructor Summary

    Constructors
    Constructor Description
    RawJScoreFileParser​(java.io.FileReader reader)  
    RawJScoreFileParser​(java.net.URL url)  
  • Method Summary

    Modifier and Type Method Description
    void addRawJScoreFileListener​(RawJScoreFileListener listener)  
    void parse()  
    void removeRawJScoreFileListener​(RawJScoreFileListener listener)  

    Methods inherited from class java.io.BufferedReader

    close, lines, mark, markSupported, read, read, readLine, ready, reset, skip

    Methods inherited from class java.io.Reader

    nullReader, read, read, transferTo

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RawJScoreFileParser

      public RawJScoreFileParser​(java.io.FileReader reader)
    • RawJScoreFileParser

      public RawJScoreFileParser​(java.net.URL url) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • addRawJScoreFileListener

      public void addRawJScoreFileListener​(RawJScoreFileListener listener)
    • removeRawJScoreFileListener

      public void removeRawJScoreFileListener​(RawJScoreFileListener listener)
    • parse

      public void parse() throws java.io.IOException
      Throws:
      java.io.IOException