| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprovided.util.ABCUtil
public class ABCUtil
| Field Summary | |
|---|---|
static ABCUtil | 
Singleton
Singleton instance of the class  | 
| Constructor Summary | |
|---|---|
private  | 
ABCUtil()
private constructor  | 
| Method Summary | |
|---|---|
 java.lang.String | 
getFileContents(java.lang.String filename)
Returns the contents of a text file, e.g.  | 
 ABCInstrument[] | 
getInstruments()
Get an array of all the available instruments as ABCInstruments where the instrument's value is the MIDI instrument number  | 
 double | 
parseFraction(java.lang.String frac)
Return the evaluation of a string "a/b".  | 
 double | 
parseTempo(java.lang.String tempo,
           double defaultNotesPerQuarterNote)
Return the tempo given by the input string.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final ABCUtil Singleton
| Constructor Detail | 
|---|
private ABCUtil()
| Method Detail | 
|---|
public double parseFraction(java.lang.String frac)
frac - - a string containing a fraction
public double parseTempo(java.lang.String tempo,
                         double defaultNotesPerQuarterNote)
tempo - - tempo represented as a stringdefaultNotesPerQuarterNote - - default notes per quarter note
public java.lang.String getFileContents(java.lang.String filename)
filename - the name of the file with respect to the default package, where "/" refers to the default package, e.g. a file in the "data" package would "/data/myfile.abc"
public ABCInstrument[] getInstruments()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||