LMMS
Loading...
Searching...
No Matches
SweepVF.h
Go to the documentation of this file.
1/*
2 SweepVF.h
3
4 Copyright 2004-7 Tim Goetze <tim@quitte.de>
5
6 http://quitte.de/dsp/
7
8 SweepVFI, a lorenz fractal modulating the cutoff frequency of a
9 state-variable (ladder) filter.
10
11 SweepVFII, the same with Q being modulated by a second fractal.
12
13 AutoWah, SVF being modulated by 'instant' amplitude (envelope).
14
15*/
16/*
17 This program is free software; you can redistribute it and/or
18 modify it under the terms of the GNU General Public License
19 as published by the Free Software Foundation; either version 2
20 of the License, or (at your option) any later version.
21
22 This program is distributed in the hope that it will be useful,
23 but WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 GNU General Public License for more details.
26
27 You should have received a copy of the GNU General Public License
28 along with this program; if not, write to the Free Software
29 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
30 02111-1307, USA or point your web browser to http://www.gnu.org.
31*/
32
33#ifndef _SWEEP_VF_H_
34#define _SWEEP_VF_H_
35
36#include "dsp/SVF.h"
37
38#include "dsp/Lorenz.h"
39#include "dsp/Roessler.h"
40
41#include "dsp/RMS.h"
42#include "dsp/BiQuad.h"
43#include "dsp/OnePole.h"
44
46: public Plugin
47{
48 public:
49 double fs;
50
51 /* svf parameters */
53
54 /* needs to be a power of two */
55 enum {
57 };
58
61
62 template <sample_func_t F>
63 void one_cycle (int frames);
64
65 public:
67
68 void init();
69 void activate();
70
71 void run (int n)
72 {
74 }
75
76 void run_adding (int n)
77 {
79 }
80};
81
83: public Plugin
84{
85 public:
86 /* svf parameters */
88
89 /* needs to be a power of two */
90 enum {
92 };
93
97
98 template <sample_func_t F>
99 void one_cycle (int frames);
100
101 public:
103
104 void init();
105 void activate();
106
107 void run (int n)
108 {
110 }
111
112 void run_adding (int n)
113 {
115 }
116};
117
118/* //////////////////////////////////////////////////////////////////////// */
119
121: public Plugin
122{
123 public:
124 double fs;
125
126 /* svf parameters */
128
129 /* needs to be a power of two */
130 enum {
132 };
133
136
139
140 template <sample_func_t F>
141 void one_cycle (int frames);
142
143 public:
145
146 void init();
147 void activate();
148
149 void run (int n)
150 {
152 }
153
154 void run_adding (int n)
155 {
157 }
158};
159
160#endif /* _SWEEP_VF_H_ */
LADSPA_Data sample_t
Definition basics.h:100
Definition SweepVF.h:122
void run(int n)
Definition SweepVF.h:149
DSP::OnePoleHP hp
Definition SweepVF.h:138
void run_adding(int n)
Definition SweepVF.h:154
void init()
DSP::StackedSVF< 1, 2 > svf
Definition SweepVF.h:134
DSP::BiQuad filter
Definition SweepVF.h:137
sample_t f
Definition SweepVF.h:127
static PortInfo port_info[]
Definition SweepVF.h:144
@ BLOCK_SIZE
Definition SweepVF.h:131
sample_t Q
Definition SweepVF.h:127
void activate()
void one_cycle(int frames)
DSP::RMS rms
Definition SweepVF.h:135
double fs
Definition SweepVF.h:124
Definition BiQuad.h:34
Definition Lorenz.h:34
Definition OnePole.h:80
Definition RMS.h:34
Definition SVF.h:157
Definition basics.h:174
Definition SweepVF.h:47
void one_cycle(int frames)
sample_t f
Definition SweepVF.h:52
@ BLOCK_SIZE
Definition SweepVF.h:56
DSP::Lorenz lorenz
Definition SweepVF.h:60
sample_t Q
Definition SweepVF.h:52
void init()
DSP::StackedSVF< 1, 2 > svf
Definition SweepVF.h:59
double fs
Definition SweepVF.h:49
void run_adding(int n)
Definition SweepVF.h:76
void run(int n)
Definition SweepVF.h:71
void activate()
static PortInfo port_info[]
Definition SweepVF.h:66
Definition SweepVF.h:84
void run_adding(int n)
Definition SweepVF.h:112
void run(int n)
Definition SweepVF.h:107
void activate()
DSP::Lorenz lorenz2
Definition SweepVF.h:96
sample_t f
Definition SweepVF.h:87
@ BLOCK_SIZE
Definition SweepVF.h:91
DSP::Lorenz lorenz1
Definition SweepVF.h:95
sample_t Q
Definition SweepVF.h:87
DSP::StackedSVF< 1, 2 > svf
Definition SweepVF.h:94
void one_cycle(int frames)
void init()
static PortInfo port_info[]
Definition SweepVF.h:102
Definition basics.h:94
int n
Definition crypt.c:458