public class Oscillator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BOUNCE |
static int |
COS_WAVE |
static int |
CUSTOM |
static int |
REVERSE_SAW_WAVE |
static int |
SAW_WAVE |
static int |
SIN_WAVE |
static int |
SQUARE_WAVE |
static java.lang.String |
TAG |
static int |
TRIANGLE_WAVE |
| Constructor and Description |
|---|
Oscillator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(double position,
float period) |
double |
getSlope(double time,
double phase,
double dphase) |
double |
getValue(double time,
double phase) |
void |
normalize()
After adding point every thing must be normalized
|
void |
setType(int type,
java.lang.String customType) |
java.lang.String |
toString() |
public static java.lang.String TAG
public static final int SIN_WAVE
public static final int SQUARE_WAVE
public static final int TRIANGLE_WAVE
public static final int SAW_WAVE
public static final int REVERSE_SAW_WAVE
public static final int COS_WAVE
public static final int BOUNCE
public static final int CUSTOM
public java.lang.String toString()
toString in class java.lang.Objectpublic void setType(int type,
java.lang.String customType)
public void addPoint(double position,
float period)
public void normalize()
public double getValue(double time,
double phase)
public double getSlope(double time,
double phase,
double dphase)