Special purpose EG just for the Karplus Strong exciter.
More...
#include <exciter.h>
|
void | calcAttackCoeff (double attackTime, double attackTimeScalar=1.0) |
| Calculate analg EG time constants. More...
|
|
void | calcReleaseCoeff (double releaseTime, double releaseTimeScalar=1.0) |
| Calculate analg EG time constants. More...
|
|
Special purpose EG just for the Karplus Strong exciter.
- does not use a base class or interface
- custom designed for use with KS algorithm
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2021 / 04 / 26
◆ calcAttackCoeff()
void SynthLab::ExciterEG::calcAttackCoeff |
( |
double |
attackTime, |
|
|
double |
attackTimeScalar = 1.0 |
|
) |
| |
|
protected |
Calculate analg EG time constants.
- Parameters
-
attackTime | attack time in mSec |
attackTimeScalar | optional scalar to speed up or slow down attack |
◆ calcReleaseCoeff()
void SynthLab::ExciterEG::calcReleaseCoeff |
( |
double |
releaseTime, |
|
|
double |
releaseTimeScalar = 1.0 |
|
) |
| |
|
protected |
Calculate analg EG time constants.
- Parameters
-
releaseTime | release time in mSec |
releaseTimeScalar | optional scalar to speed up or slow down release |
◆ render()
double SynthLab::ExciterEG::render |
( |
| ) |
|
start the FSM
Run the FSM and calculate the new envelope out.
- Returns
- new envelope value
◆ reset()
bool SynthLab::ExciterEG::reset |
( |
double |
_sampleRate | ) |
|
< reset/render (simialar to SynthModule)
Reset Exciter for another run.
- Parameters
-
_sampleRate | new sample rate |
- Returns
- true if successful
◆ setParameters()
void SynthLab::ExciterEG::setParameters |
( |
double |
_attackTime_mSec, |
|
|
double |
_holdTime_mSec, |
|
|
double |
_releaseTime_mSec |
|
) |
| |
Set attack, hold and relesase times.
- calculates coefficients only if parameters have changed
- Parameters
-
_attackTime_mSec | attack time in mSec |
_holdTime_mSec | hold time in mSec |
_releaseTime_mSec | release time in mSec |
◆ startEG()
bool SynthLab::ExciterEG::startEG |
( |
| ) |
|
param setter
Start the FSM.
- Returns
- true if successfule
The documentation for this class was generated from the following files:
- C:/RackAFX Projects/SynthLab_SDK/source/exciter.h
- C:/RackAFX Projects/SynthLab_SDK/source/exciter.cpp