|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.util.Tuning com.softsynth.jmsl.util.TuningTable
public class TuningTable
Constructor Summary | |
---|---|
TuningTable()
|
|
TuningTable(double[] freqs)
Constructor initializes pitches with double[], sets reference frequency to pitches[0], reference pitch defaults to 50 |
|
TuningTable(double[] pitches,
double referencePitch)
supply an octave of freuencies and a reference pitch to associate with lowest frequency |
Method Summary | |
---|---|
double[] |
getFrequencies()
|
double |
getFrequency(double pitch)
|
double |
getFrequency(double pitchIndex,
int octaveNumber)
|
double |
getStepsPerOctave()
|
static void |
main(java.lang.String[] args)
|
void |
setFrequencies(double[] pitches)
Set array of pitch frequencies, sets referenceFrequency to pitches[0] |
void |
setPitch(int index,
double frequency)
Set frequency of index'th entry in tuning table. |
double |
stretch(double pitch,
double frequency)
Overridden Tuning method. |
java.lang.String |
toString()
|
Methods inherited from class com.softsynth.jmsl.util.Tuning |
---|
freqPlusCents, getOctaveRatio, getOctaveStretchCents, getReferenceFrequency, getReferencePitch, setOctaveRatio, setOctaveStretchCents, setReferenceFrequency, setReferencePitch |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TuningTable()
public TuningTable(double[] freqs)
public TuningTable(double[] pitches, double referencePitch)
Method Detail |
---|
public double getStepsPerOctave()
getStepsPerOctave
in class Tuning
public double[] getFrequencies()
public void setFrequencies(double[] pitches)
public void setPitch(int index, double frequency)
public double getFrequency(double pitchIndex, int octaveNumber)
getFrequency
in class Tuning
public double stretch(double pitch, double frequency)
stretch
in class Tuning
public double getFrequency(double pitch)
getFrequency
in class Tuning
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |