diff options
author | David Robillard <d@drobilla.net> | 2012-08-21 23:51:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-21 23:51:21 +0000 |
commit | bd2f4150a8e78a4e09fb962782a07821ee7ae7f1 (patch) | |
tree | f59243ed2f9d247b311b03a3834bf55961af3626 /src/autowah.h | |
parent | 734a9f490f2f8cb4552c71bfac8fc779f836c436 (diff) | |
download | fomp.lv2-bd2f4150a8e78a4e09fb962782a07821ee7ae7f1.tar.gz fomp.lv2-bd2f4150a8e78a4e09fb962782a07821ee7ae7f1.tar.bz2 fomp.lv2-bd2f4150a8e78a4e09fb962782a07821ee7ae7f1.zip |
Add parametric EQ and auto-wah.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/fomp.lv2@4735 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/autowah.h')
-rw-r--r-- | src/autowah.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/autowah.h b/src/autowah.h new file mode 100644 index 0000000..79a3d9c --- /dev/null +++ b/src/autowah.h @@ -0,0 +1,52 @@ +/* + Copyright (C) 2009 Fons Adriaensen <fons@kokkinizita.net> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + + +#ifndef __AUTOWAH_H +#define __AUTOWAH_H + + +#include "ladspaplugin.h" + + +class Ladspa_Autowah : public LadspaPlugin +{ +public: + + enum { A_INP, A_OUT, C_DRIVE, C_DECAY, C_RANGE, C_FREQ, C_OPMIX, NPORT }; + + Ladspa_Autowah (SampleRate fsam) : LadspaPlugin (fsam) {} + virtual void setport (PortIndex port, PortData *data); + virtual void active (bool act); + virtual void runproc (SampleCount len, bool add); + virtual ~Ladspa_Autowah (void) {} + +private: + + float *_port [NPORT]; + float _wbase; + float _bbase; + float _rfact; + float _z1, _z2; + float _s1, _s2; + float _gx, _gy; + float _dr; +}; + + +#endif |