com.jsyn.engine
Class MultiTable
java.lang.Object
com.jsyn.engine.MultiTable
public class MultiTable
- extends java.lang.Object
Constructor Summary |
MultiTable(int numTables,
int cycleSize)
Initialise sawtooth wavetables. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUM_TABLES
public static final int NUM_TABLES
- See Also:
- Constant Field Values
CYCLE_SIZE
public static final int CYCLE_SIZE
- See Also:
- Constant Field Values
MultiTable
public MultiTable(int numTables,
int cycleSize)
- Initialise sawtooth wavetables. Table[0] should contain a pure sine wave.
Succeeding tables should have increasing numbers of partials.
normalizeArray
public static float normalizeArray(float[] fdata)
calculateSawtooth
public double calculateSawtooth(double currentPhase,
double positivePhaseIncrement,
double flevel)
convertPhaseIncrementToLevel
public double convertPhaseIncrementToLevel(double positivePhaseIncrement)
getInstance
public static MultiTable getInstance()