public class MultiTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CYCLE_SIZE |
static int |
NUM_TABLES |
Constructor and Description |
---|
MultiTable(int numTables,
int cycleSize)
Initialize sawtooth wavetables.
|
Modifier and Type | Method and Description |
---|---|
double |
calculateSawtooth(double currentPhase,
double positivePhaseIncrement,
double flevel) |
double |
convertPhaseIncrementToLevel(double positivePhaseIncrement) |
static MultiTable |
getInstance() |
static float |
normalizeArray(float[] fdata) |
public static final int NUM_TABLES
public static final int CYCLE_SIZE
public MultiTable(int numTables, int cycleSize)
public static float normalizeArray(float[] fdata)
public double calculateSawtooth(double currentPhase, double positivePhaseIncrement, double flevel)
public double convertPhaseIncrementToLevel(double positivePhaseIncrement)
public static MultiTable getInstance()