LMMS
Loading...
Searching...
No Matches
Eq.h
Go to the documentation of this file.
1/*
2 Eq.h
3
4 Copyright 2004-5 Tim Goetze <tim@quitte.de>
5
6 http://quitte.de/dsp/
7
8 equalizer circuit using recursive filtering.
9
10*/
11/*
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 as published by the Free Software Foundation; either version 2
15 of the License, or (at your option) any later version.
16
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25 02111-1307, USA or point your web browser to http://www.gnu.org.
26*/
27
28#ifndef _EQ_H_
29#define _EQ_H_
30
31#include "dsp/util.h"
32#include "dsp/Eq.h"
33#include "dsp/BiQuad.h"
34#include "dsp/RBJ.h"
35
36class Eq
37: public Plugin
38{
39 public:
42
43 int block;
44 enum { BlockSize = 64 };
45
46 template <sample_func_t F>
47 void one_cycle (int frames);
48
49 public:
51
52 void init();
53 void activate();
54
55 void run (int n)
56 {
58 }
59
60 void run_adding (int n)
61 {
63 }
64};
65
66class Eq2x2
67: public Plugin
68{
69 public:
72
73 template <sample_func_t F>
74 void one_cycle (int frames);
75
76 public:
78
79 void init();
80 void activate();
81
82 void run (int n)
83 {
85 }
86
87 void run_adding (int n)
88 {
90 }
91};
92
93#endif /* _EQ_H_ */
LADSPA_Data sample_t
Definition basics.h:100
Definition Eq.h:62
Definition Eq.h:68
DSP::Eq< 10 > eq[2]
Definition Eq.h:71
void run_adding(int n)
Definition Eq.h:87
sample_t gain[10]
Definition Eq.h:70
void run(int n)
Definition Eq.h:82
static PortInfo port_info[]
Definition Eq.h:77
void activate()
void one_cycle(int frames)
void init()
Definition Eq.h:38
void one_cycle(int frames)
void init()
void activate()
int block
Definition Eq.h:43
sample_t gain[10]
Definition Eq.h:40
@ BlockSize
Definition Eq.h:44
DSP::Eq< 10 > eq
Definition Eq.h:41
static PortInfo port_info[]
Definition Eq.h:50
void run(int n)
Definition Eq.h:55
void run_adding(int n)
Definition Eq.h:60
Definition basics.h:174
Definition basics.h:94
int n
Definition crypt.c:458