public class TriangularLFO extends java.lang.Object implements LFO
LFO
,
SinusoidalLFO
,
VariableDelay
,
VariableDelayEffect
Modifier and Type | Method and Description |
---|---|
void |
advance()
Advances the waveform.
|
double |
getDouble()
Returns the value of theta * amplitude as a double
|
int |
getInt()
This method takes the value returned by the getDouble method and uses the Math.rint(double) to return the double
value that is closest in value to getDouble() and is equal to a mathematical integer.
|
void |
setAmplitude(double amplitude)
Method simply sets the size of the amplitude and thus decides the amplitude (ie sets the maximum 'peak' value and
minimum 'trough' value) of the triangular waveform
|
void |
setPeriod(int period)
Method simply sets the size of the oscillation period.
|
public void setAmplitude(double amplitude)
setAmplitude
in interface LFO
amplitude
- value to set the size of the amplitude of the waveformpublic void setPeriod(int period)
public void advance()
public double getDouble()
public int getInt()