Oscillator
public class Oscillator
This generates variable frequency oscillation curves
Summary
Constants |
|
|---|---|
static final int |
BOUNCE = 6 |
static final int |
COS_WAVE = 5 |
static final int |
CUSTOM = 7 |
static final int |
REVERSE_SAW_WAVE = 4 |
static final int |
SAW_WAVE = 3 |
static final int |
SIN_WAVE = 0 |
static final int |
SQUARE_WAVE = 1 |
static final int |
TRIANGLE_WAVE = 2 |
Public constructors |
|---|
Public methods |
|
|---|---|
void |
addPoint(double position, float period) |
double |
getSlope(double time, double phase, double dphase) |
double |
getValue(double time, double phase) |
void |
After adding point every thing must be normalized |
void |
|
String |
toString() |