|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.hogent.tarsos.util.ScalaFile
public final class ScalaFile
A representation of a scala file. See the Scala scale file format.
Constructor Summary | |
---|---|
ScalaFile(java.lang.String scalaFile)
Reads a Scala file from disk and returns a new instance. |
|
ScalaFile(java.lang.String desc,
double[] notes)
Create a new Scala file object. |
|
ScalaFile(java.lang.String desc,
double[] notes,
java.lang.String[] names)
Create a new Scala file object. |
Method Summary | |
---|---|
ScalaFile |
findClosest(java.util.List<ScalaFile> haystack)
In a list of scala files it finds the closest one. |
java.lang.String |
getDescription()
|
double[] |
getPitches()
|
java.lang.String[] |
getPitchNames()
|
boolean |
hasNames()
|
void |
setDescription(java.lang.String newDescription)
|
static ScalaFile |
westernTuning()
|
void |
write(java.lang.String scalaFile)
Writes a Scala file to disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScalaFile(java.lang.String desc, double[] notes, java.lang.String[] names)
desc
- The description of the tone scale.notes
- The pitches (notes) used in the scale.names
- The names of the notes used (or null).public ScalaFile(java.lang.String desc, double[] notes)
desc
- The description of the tone scale.notes
- The pitches (notes) used in the scale.public ScalaFile(java.lang.String scalaFile)
The Scala
scale file format:
Usually it has .scl
as extension.
scalaFile
- The Scala file to read.Method Detail |
---|
public void write(java.lang.String scalaFile)
The Scala
scale file format:
Usually it has .scl
as extension.
scalaFile
- The location to write to.public double[] getPitches()
public java.lang.String getDescription()
public void setDescription(java.lang.String newDescription)
public java.lang.String[] getPitchNames()
public boolean hasNames()
public static ScalaFile westernTuning()
public ScalaFile findClosest(java.util.List<ScalaFile> haystack)
haystack
- a list of Scala files.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |