LMMS
Loading...
Searching...
No Matches
plugins
LadspaEffect
caps
Lorenz.h
Go to the documentation of this file.
1
/*
2
Lorenz.h
3
4
Copyright 2004-11 Tim Goetze <tim@quitte.de>
5
6
http://quitte.de/dsp/
7
8
turns the state of a Lorenz fractal into sound.
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 _LORENZ_H_
29
#define _LORENZ_H_
30
31
#include "
dsp/Lorenz.h
"
32
33
class
Lorenz
34
:
public
Plugin
35
{
36
public
:
37
sample_t
h
,
gain
;
38
39
DSP::Lorenz
lorenz
;
40
41
template
<sample_func_t F>
42
void
one_cycle
(
int
frames);
43
44
public
:
45
static
PortInfo
port_info
[];
46
47
void
init
();
48
void
activate
()
49
{
gain
=
getport
(4); }
50
51
void
run
(
int
n
)
52
{
53
one_cycle<store_func>
(
n
);
54
}
55
56
void
run_adding
(
int
n
)
57
{
58
one_cycle<adding_func>
(
n
);
59
}
60
};
61
62
#endif
/* _LORENZ_H_ */
sample_t
LADSPA_Data sample_t
Definition
basics.h:100
DSP::Lorenz
Definition
Lorenz.h:34
Lorenz
Definition
Lorenz.h:35
Lorenz::h
sample_t h
Definition
Lorenz.h:37
Lorenz::one_cycle
void one_cycle(int frames)
Lorenz::gain
sample_t gain
Definition
Lorenz.h:37
Lorenz::init
void init()
Lorenz::activate
void activate()
Definition
Lorenz.h:48
Lorenz::port_info
static PortInfo port_info[]
Definition
Lorenz.h:45
Lorenz::lorenz
DSP::Lorenz lorenz
Definition
Lorenz.h:39
Lorenz::run
void run(int n)
Definition
Lorenz.h:51
Lorenz::run_adding
void run_adding(int n)
Definition
Lorenz.h:56
Plugin
Definition
basics.h:174
Plugin::getport
sample_t getport(int i)
Definition
basics.h:194
Lorenz.h
PortInfo
Definition
basics.h:94
n
int n
Definition
crypt.c:458
Generated on
for LMMS by
1.16.1