LMMS
Loading...
Searching...
No Matches
Alienwah.h
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 Alienwah.h - "AlienWah" effect
5 Copyright (C) 2002-2005 Nasca Octavian Paul
6 Author: Nasca Octavian Paul
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of version 2 of the GNU General Public License
10 as published by the Free Software Foundation.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License (version 2 or later) for more details.
16
17 You should have received a copy of the GNU General Public License (version 2)
18 along with this program; if not, write to the Free Software Foundation,
19 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21*/
22
23#ifndef ALIENWAH_H
24#define ALIENWAH_H
25
26#include <complex>
27#include "Effect.h"
28#include "EffectLFO.h"
29
30#define MAX_ALIENWAH_DELAY 100
31
33class Alienwah:public Effect
34{
35 public:
43 Alienwah(bool insertion_,
44 float *const efxoutl_,
45 float *const efxoutr_,
46 unsigned int srate, int bufsize);
47 ~Alienwah();
48 void out(const Stereo<float *> &smp);
49
50 void setpreset(unsigned char npreset);
51 void changepar(int npar, unsigned char value);
52 unsigned char getpar(int npar) const;
53 void cleanup(void);
54
55 private:
56 //Alienwah Parameters
57 EffectLFO lfo; //lfo-ul Alienwah
58 unsigned char Pvolume;
59 unsigned char Pdepth; //the depth of the Alienwah
60 unsigned char Pfb; //feedback
61 unsigned char Pdelay;
62 unsigned char Pphase;
63
64
65 //Control Parameters
66 void setvolume(unsigned char _Pvolume);
67 void setdepth(unsigned char _Pdepth);
68 void setfb(unsigned char _Pfb);
69 void setdelay(unsigned char _Pdelay);
70 void setphase(unsigned char _Pphase);
71
72 //Internal Values
73 float fb, depth, phase;
76 int oldk;
77};
78
79#endif
int oldk
Definition Alienwah.h:76
void setfb(unsigned char _Pfb)
Definition Alienwah.cpp:113
std::complex< float > * oldl
Definition Alienwah.h:74
unsigned char Pfb
Definition Alienwah.h:60
void setphase(unsigned char _Pphase)
Definition Alienwah.cpp:134
void setpreset(unsigned char npreset)
Definition Alienwah.cpp:152
unsigned char Pdepth
Definition Alienwah.h:59
void setvolume(unsigned char _Pvolume)
Definition Alienwah.cpp:124
std::complex< float > oldclfor
Definition Alienwah.h:75
std::complex< float > * oldr
Definition Alienwah.h:74
float fb
Definition Alienwah.h:73
float depth
Definition Alienwah.h:73
EffectLFO lfo
Definition Alienwah.h:57
float phase
Definition Alienwah.h:73
unsigned char Pdelay
Definition Alienwah.h:61
unsigned char Pphase
Definition Alienwah.h:62
void cleanup(void)
Definition Alienwah.cpp:96
~Alienwah()
Definition Alienwah.cpp:38
void setdelay(unsigned char _Pdelay)
Definition Alienwah.cpp:140
unsigned char getpar(int npar) const
Definition Alienwah.cpp:220
std::complex< float > oldclfol
Definition Alienwah.h:75
Alienwah(bool insertion_, float *const efxoutl_, float *const efxoutr_, unsigned int srate, int bufsize)
Definition Alienwah.cpp:26
void setdepth(unsigned char _Pdepth)
Definition Alienwah.cpp:107
void changepar(int npar, unsigned char value)
Definition Alienwah.cpp:177
unsigned char Pvolume
Definition Alienwah.h:58
Effect(bool insertion_, float *efxoutl_, float *efxoutr_, FilterParams *filterpars_, unsigned char Ppreset_, unsigned int srate, int bufsize)
Definition Effect.cpp:28
Definition EffectLFO.h:29
static PuglViewHint int value
Definition pugl.h:1708
float out
Definition lilv_test.c:1461
Definition Stereo.h:25
Definition globals.h:33