Package toxi.math.waves
Class FMSawtoothWave
java.lang.Object
toxi.math.waves.AbstractWave
toxi.math.waves.FMSawtoothWave
Frequency modulated bandwidth unlimited pure sawtooth wave. Uses a secondary wave to modulate the frequency of the main wave.
Note: You must NEVER call the update() method on the modulating wave.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionFMSawtoothWave(float phase, float freq, float amp, float offset) Convenience constructor to create a non frequency modulated sawtooth.FMSawtoothWave(float phase, float freq, float amp, float offset, AbstractWave fmod) FMSawtoothWave(float phase, float freq, AbstractWave fmod) 
- 
Method SummaryMethods inherited from class toxi.math.waves.AbstractWavecyclePhase, cyclePhase, hertzToRadians, radiansToHertz, setPhase, toString
- 
Field Details- 
fmod
 
- 
- 
Constructor Details- 
FMSawtoothWave
- 
FMSawtoothWavepublic FMSawtoothWave(float phase, float freq, float amp, float offset) Convenience constructor to create a non frequency modulated sawtooth.- Parameters:
- phase-
- freq- base frequency (in radians)
- amp-
- offset-
 
- 
FMSawtoothWave
 
- 
- 
Method Details- 
poppublic void pop()- Overrides:
- popin class- AbstractWave
 
- 
pushpublic void push()- Overrides:
- pushin class- AbstractWave
 
- 
resetpublic void reset()Resets this wave and its modulating wave as well.- Overrides:
- resetin class- AbstractWave
- See Also:
 
- 
updatepublic float update()Progresses the wave and updates the result value. You must NEVER call the update() method on the modulating wave since this is handled automatically by this method.- Specified by:
- updatein class- AbstractWave
- Returns:
- current (newly calculated) wave value
- See Also:
 
 
-