OscConstant
description
Special kind of oscillator that returns just a fixed value.
Basically OscConstant class is used for parameters of other oscillators as a static value.(ie. Amplitude)
example
Oscillator osc;
void setup(){
loop();
osc = new OscConstant(100);
}
void draw(){
osc.update();
println( osc.getValue());
}
constractor
OscConstant()
Syntax
OscConstant( int or float );
basic method
update()
just a dummy method for compatibility.
getValue()
Returns fixed number.
setValue()
Sets fixed number.