|
LMMS
|
#include <osc.h>
Public Member Functions | |
| triangle_lfo () | |
| void | reset () |
| float | get () |
| Public Member Functions inherited from dsp::simple_oscillator | |
| void | reset () |
| Reset oscillator phase to zero. | |
| void | set_freq (float freq, float sr) |
| Set phase delta based on oscillator frequency and sample rate. | |
| void | set_freq_odsr (float freq, double odsr) |
| Set phase delta based on oscillator frequency and inverse of sample rate. | |
| void | step () |
| Make one phase increment. | |
| float | get () |
| Make one phase increment and return a value from -0.5 to 0.5. | |
Public Attributes | |
| float | last |
| Previous value (not stored here, but may be used by calling code). | |
| Public Attributes inherited from dsp::simple_oscillator | |
| uint32_t | phase |
| Phase (from 0 to 0xFFFFFFFF). | |
| uint32_t | phasedelta |
| Per-sample phase delta (phase increment), equal to 2^32*freq/sr. | |
Simple triangle LFO without any smoothing or anything of this sort.
|
inline |
|
inline |
|
inline |
| float dsp::triangle_lfo::last |
Previous value (not stored here, but may be used by calling code).