OscWhiteNoise

description

Special kind of oscillator that returns random value.

example

Oscillator osc;

void setup(){
loop();
osc = new OscWhiteNoise(100);
}

void draw(){
osc.update();
println( osc.getValue());
}

constractor

OscWhiteNoise()

Syntax

OscWhiteNoise( amplitude );
OscWhiteNoise( amplitude, amplitudeOffset );

basic method

update()

update current wave status.
basically called every frame.

getAmplitude()

Returns current amplitude of wave.

getValue()

Returns current value of wave.
Value is between -amplitude and amplitude plus offset of amplitude;

SetAmplitude()

Sets amplitude of wave.

intermediate method

getAmpOffset()

Returns offset of amplitude.

setAmpOffset(float or int)

Sets offset of amplitude.

advanced method

setAmplitudeOsc(Oscillator)

Sets Oscillator Object instead of number to controll amplitude.

setAmpOffsetOsc(Oscillator)

Sets Oscillator Object instead of number to controll amplitude offset.

getAmplitudeOsc()

Returns Oscillator Object that controlls amplitude.
If you are using number to controll amplitude. It returns OscConstant Object that contains number.

getAmpOffsetOsc()

Returns Oscillator Object that controlls amplitude offset.
If you are using number to controll amplitude. It returns OscConstant Object that contains number.