Comnination of three filters in one; note that the figure in the book does not show the variety of connection combinations and filter bypassing possible, nor the multiple output points.
More...
#include <synthbase.h>
Comnination of three filters in one; note that the figure in the book does not show the variety of connection combinations and filter bypassing possible, nor the multiple output points.
- filters all come from the FX book below
- Pluck Position: a comb filter
- Bridge Filter: a lossy integrator with very low fc
- Pickup Filter: a 2nd order LPF whose parameters are adjusted differently for guitar vs. bass guitar pickups
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2018 / 09 / 7
◆ clear()
void SynthLab::PluckPosFilter::clear |
( |
| ) |
|
|
inline |
◆ processAudioSample()
double SynthLab::PluckPosFilter::processAudioSample |
( |
double |
xn, |
|
|
PluckFilterType |
type |
|
) |
| |
|
inline |
run the string of filters
- the type argument specifies the ordering and output location
- Parameters
-
xn | the input value |
type | the type of combination of filters to run |
◆ reset()
void SynthLab::PluckPosFilter::reset |
( |
double |
_sampleRate, |
|
|
double |
minimumPitch = MIDI_NOTE_0_FREQ |
|
) |
| |
|
inline |
reset the delay, calculate a new length based on sample rate and minimum pitch
- note how pickup and bridge filters are hard-coded for init
- Parameters
-
_sampleRate | fs |
minimumPitch | pitch in Hz of the lowest note that could fit into this delay line |
◆ setDelayInSamples()
void SynthLab::PluckPosFilter::setDelayInSamples |
( |
double |
_delaySamples | ) |
|
|
inline |
set comb delay time - this will be based on virtual plucking position on string
- Parameters
-
_delaySamples | delay time in samples |
The documentation for this class was generated from the following file: