LMMS
Loading...
Searching...
No Matches
EQ.h
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 EQ.h - EQ 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 EQ_H
24#define EQ_H
25
26#include "Effect.h"
27
29class EQ:public Effect
30{
31 public:
32 EQ(bool insertion_, float *efxoutl_, float *efxoutr_, unsigned int srate, int bufsize);
33 ~EQ();
34 void out(const Stereo<float *> &smp);
35 void setpreset(unsigned char npreset);
36 void changepar(int npar, unsigned char value);
37 unsigned char getpar(int npar) const;
38 void cleanup(void);
39 float getfreqresponse(float freq);
40
41 private:
42 //Parameters
43 unsigned char Pvolume;
44
45 void setvolume(unsigned char _Pvolume);
46
47 struct {
48 //parameters
49 unsigned char Ptype, Pfreq, Pgain, Pq, Pstages;
50 //internal values
51 class AnalogFilter * l, *r;
53};
54
55#endif
#define MAX_EQ_BANDS
Definition globals.h:159
Definition AnalogFilter.h:35
float getfreqresponse(float freq)
Definition EQ.cpp:197
~EQ()
Definition EQ.cpp:46
void cleanup(void)
Definition EQ.cpp:56
unsigned char Pq
Definition EQ.h:49
void setpreset(unsigned char npreset)
Definition EQ.cpp:90
unsigned char Pvolume
Definition EQ.h:43
void setvolume(unsigned char _Pvolume)
Definition EQ.cpp:82
unsigned char Pgain
Definition EQ.h:49
struct EQ::@155220164110070274101340037006305343353054375147 filter[MAX_EQ_BANDS]
unsigned char Pfreq
Definition EQ.h:49
class AnalogFilter * l
Definition EQ.h:51
unsigned char Pstages
Definition EQ.h:49
unsigned char Ptype
Definition EQ.h:49
EQ(bool insertion_, float *efxoutl_, float *efxoutr_, unsigned int srate, int bufsize)
Definition EQ.cpp:27
class AnalogFilter * r
Definition EQ.h:51
void changepar(int npar, unsigned char value)
Definition EQ.cpp:107
unsigned char getpar(int npar) const
Definition EQ.cpp:161
Effect(bool insertion_, float *efxoutl_, float *efxoutr_, FilterParams *filterpars_, unsigned char Ppreset_, unsigned int srate, int bufsize)
Definition Effect.cpp:28
static PuglViewHint int value
Definition pugl.h:1708
JHUFF_TBL long freq[]
Definition jchuff.h:50
float out
Definition lilv_test.c:1461
Definition Stereo.h:25