Expose voice detune parameter of the lv2 plugin
[zyn.git] / filter.h
blob8799f29cd00e842763acf8e6cbcfba4ffbf25327
1 /*
2 ZynAddSubFX - a software synthesizer
4 Filter.h - Filters, uses analog,formant,etc. filters
5 Copyright (C) 2002-2005 Nasca Octavian Paul
6 Author: Nasca Octavian Paul
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.
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) for more details.
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
23 #ifndef FILTER_H
24 #define FILTER_H
26 class Filter
28 public:
29 Filter() {};
30 ~Filter() {};
32 void init(float sample_rate, FilterParams *pars);
34 void filterout(float *smp);
35 void setfreq(float frequency);
36 void setfreq_and_q(float frequency, float q_);
37 void setq(float q_);
39 float getrealfreq(float freqpitch);
41 private:
42 Filter_ *m_filter;
43 unsigned char m_category;
45 AnalogFilter m_analog_filter;
46 SVFilter m_sv_filter;
47 FormantFilter m_formant_filter;
50 #endif