Special purpose object for use as Karplus Strong resonator.
More...
#include <resonator.h>
|
| Resonator () |
| empty constructor
|
|
virtual | ~Resonator () |
| empty constructor
|
|
bool | reset (double _sampleRate) |
| Reset resonator for another run. More...
|
|
double | process (double xn) |
| Process an exciter signal (or 0.0) through the resonator. More...
|
|
double | setParameters (double frequency, double _decay) |
| set the resonator frequency and decay time More...
|
|
void | flushDelays () |
| flush delay lines, and clear filter state registers.
|
|
Special purpose object for use as Karplus Strong resonator.
- implements single delay-line version of KS algorithm
- initial state of delay is EMPTY and the exciter feeds the delay free path directly
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2021 / 04 / 26
◆ process()
double SynthLab::Resonator::process |
( |
double |
xn | ) |
|
Process an exciter signal (or 0.0) through the resonator.
- Parameters
-
- Returns
- output sample for resonator
◆ reset()
bool SynthLab::Resonator::reset |
( |
double |
_sampleRate | ) |
|
Reset resonator for another run.
Similar functions as SynthModule
- Parameters
-
_sampleRate | new sample rate |
- Returns
- true if successful
◆ setParameters()
double SynthLab::Resonator::setParameters |
( |
double |
frequency, |
|
|
double |
_decay |
|
) |
| |
set the resonator frequency and decay time
- Parameters
-
frequency | current frequency of the resonator |
_decay | current decay value (from GUI most likely) |
- Returns
- the delay time in samples (fractional)
The documentation for this class was generated from the following files: