public class Oscillator


This generates variable frequency oscillation curves

Summary

Constants

static final int
BOUNCE = 6
static final int
static final int
CUSTOM = 7
static final int
static final int
static final int
static final int
static final int

Public fields

static String

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
setType(int type, String customType)
String

Constants

BOUNCE

Added in 1.1.0
public static final int BOUNCE = 6

COS_WAVE

Added in 1.1.0
public static final int COS_WAVE = 5

CUSTOM

Added in 1.1.0
public static final int CUSTOM = 7

REVERSE_SAW_WAVE

Added in 1.1.0
public static final int REVERSE_SAW_WAVE = 4

SAW_WAVE

Added in 1.1.0
public static final int SAW_WAVE = 3

SIN_WAVE

Added in 1.1.0
public static final int SIN_WAVE = 0

SQUARE_WAVE

Added in 1.1.0
public static final int SQUARE_WAVE = 1

TRIANGLE_WAVE

Added in 1.1.0
public static final int TRIANGLE_WAVE = 2

Public fields

TAG

Added in 1.1.0
public static String TAG

Public constructors

Oscillator

Added in 1.1.0
public Oscillator()

Public methods

addPoint

Added in 1.1.0
public void addPoint(double position, float period)

getSlope

Added in 1.1.0
public double getSlope(double time, double phase, double dphase)

getValue

Added in 1.1.0
public double getValue(double time, double phase)

normalize

Added in 1.1.0
public void normalize()

After adding point every thing must be normalized

setType

Added in 1.1.0
public void setType(int type, String customType)

toString

public String toString()