|
LMMS
|
#include <Effect.h>
Public Member Functions | |
| Effect (bool insertion_, float *efxoutl_, float *efxoutr_, FilterParams *filterpars_, unsigned char Ppreset_, unsigned int srate, int bufsize) | |
| virtual | ~Effect () |
| virtual void | setpreset (unsigned char npreset)=0 |
| virtual void | changepar (int npar, unsigned char value)=0 |
| virtual unsigned char | getpar (int npar) const =0 |
| void | out (float *const smpsl, float *const smpsr) |
| virtual void | out (const Stereo< float * > &smp)=0 |
| virtual void | cleanup (void) |
| virtual float | getfreqresponse (float freq) |
Static Public Member Functions | |
| static void | crossover (float &a, float &b, float crossover) |
Public Attributes | |
| unsigned char | Ppreset |
| float *const | efxoutl |
| float *const | efxoutr |
| float | outvolume |
| float | volume |
| FilterParams * | filterpars |
Protected Member Functions | |
| void | setpanning (char Ppanning_) |
| void | setlrcross (char Plrcross_) |
| void | alias () |
Protected Attributes | |
| const bool | insertion |
| char | Ppanning |
| float | pangainL |
| float | pangainR |
| char | Plrcross |
| float | lrcross |
| unsigned int | samplerate |
| int | buffersize |
| float | samplerate_f |
| float | halfsamplerate_f |
| float | buffersize_f |
| int | bufferbytes |
| Effect::Effect | ( | bool | insertion_, |
| float * | efxoutl_, | ||
| float * | efxoutr_, | ||
| FilterParams * | filterpars_, | ||
| unsigned char | Ppreset_, | ||
| unsigned int | srate, | ||
| int | bufsize ) |
|
inlinevirtual |
|
inlineprotected |
Change parameter npar to value
| npar | chosen parameter |
| value | chosen new value |
Implemented in Alienwah, Chorus, Distorsion, DynamicFilter, Echo, EQ, Phaser, and Reverb.
Reset the state of the effect
Reimplemented in Alienwah, Chorus, Distorsion, DynamicFilter, Echo, EQ, Phaser, and Reverb.
|
static |
|
inlinevirtual |
Reimplemented in EQ.
|
pure virtual |
Get the value of parameter npar
| npar | chosen parameter |
Implemented in Alienwah, Chorus, Distorsion, DynamicFilter, Echo, EQ, Phaser, and Reverb.
Implemented in Alienwah, Chorus, Distorsion, DynamicFilter, Echo, EQ, Phaser, and Reverb.
Output result of effect based on the given buffers
This method should result in the effect generating its results and placing them into the efxoutl and efxoutr buffers. Every Effect should overide this method.
| smpsl | Input buffer for the Left channel |
| smpsr | Input buffer for the Right channel |
|
protected |
|
protected |
|
pure virtual |
Choose a preset
| npreset | number of chosen preset |
Implemented in Alienwah, Chorus, Distorsion, DynamicFilter, Echo, EQ, Phaser, and Reverb.
|
protected |
|
protected |
|
protected |
| FilterParams* Effect::filterpars |
Parameters for filters used by Effect
|
protected |
|
protected |
|
protected |
| float Effect::outvolume |
This is the volume of effect and is public because it is needed in system effects. The out volume of such effects are always 1.0f, so this setting tells me how is the volume to the Master Output only.
|
protected |
|
protected |
|
protected |
|
protected |
| unsigned char Effect::Ppreset |
Currently used preset
|
protected |
|
protected |
| float Effect::volume |