public class Oscillator

This generates variable frequency oscillation curves

Summary

Public fields

static String

Public constructors

Constants

BOUNCE

Added in 1.1.2
public static final int BOUNCE = 6

COS_WAVE

Added in 1.1.2
public static final int COS_WAVE = 5

CUSTOM

Added in 1.1.2
public static final int CUSTOM = 7

REVERSE_SAW_WAVE

Added in 1.1.2
public static final int REVERSE_SAW_WAVE = 4

SAW_WAVE

Added in 1.1.2
public static final int SAW_WAVE = 3

SIN_WAVE

Added in 1.1.2
public static final int SIN_WAVE = 0

SQUARE_WAVE

Added in 1.1.2
public static final int SQUARE_WAVE = 1

TRIANGLE_WAVE

Added in 1.1.2
public static final int TRIANGLE_WAVE = 2

Public fields

TAG

Added in 1.1.2
public static String TAG

Public constructors

Oscillator

Added in 1.1.2
public Oscillator()

Public methods

addPoint

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

getSlope

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

getValue

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

normalize

Added in 1.1.2
public void normalize()

After adding point every thing must be normalized

setType

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

toString

public String toString()