|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Definition at line 26 of file analog_drift.hpp.
#include <analog_drift.hpp>
Public Member Functions | |
| AnalogDrift (uint32_t seed=1) | |
| Construct with PRNG seed. Use a different seed for each instance. | |
| void | set_rate (float control_rate_hz) |
| float | process (float amount) |
| float | value () const |
| Current drift value (before amount scaling), for diagnostics. | |
| void | reset () |
| Reset drift state to zero. | |
| void | seed (uint32_t s) |
| Re-seed the PRNG (for test reproducibility). | |
|
inlineexplicit |
Construct with PRNG seed. Use a different seed for each instance.
Definition at line 31 of file analog_drift.hpp.
|
inline |
Set the control rate in Hz. Adjusts walk step and smoothing to maintain consistent drift character regardless of call rate. Call once at init, not per-sample.
Definition at line 36 of file analog_drift.hpp.
Referenced by sbl::dsp::modules::MorphOsc< MaxFrames >::set_drift_rate().
|
inline |
Process one control tick.
| amount | Peak deviation in semitones (0.05 = ±5 cents) |
Definition at line 53 of file analog_drift.hpp.
References sbl::dsp::primitives::Rng::bipolar().
Referenced by sbl::dsp::modules::TapeDelay::tick(), and sbl::dsp::modules::MorphOsc< MaxFrames >::tick_drift().
|
inline |
Current drift value (before amount scaling), for diagnostics.
Definition at line 67 of file analog_drift.hpp.
Referenced by sbl::dsp::modules::TapeDelay::process().
|
inline |
Reset drift state to zero.
Definition at line 70 of file analog_drift.hpp.
Referenced by sbl::dsp::modules::MorphOsc< MaxFrames >::reset(), and sbl::dsp::modules::TapeDelay::reset().
|
inline |
Re-seed the PRNG (for test reproducibility).
Definition at line 76 of file analog_drift.hpp.
References sbl::dsp::primitives::Rng::seed().