LMMS
Loading...
Searching...
No Matches
plugins
LadspaEffect
caps
White.h
Go to the documentation of this file.
1
/*
2
White.h
3
4
Copyright 2004-5 Tim Goetze <tim@quitte.de>
5
6
http://quitte.de/dsp/
7
8
white noise generator.
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 _WHITE_H_
29
#define _WHITE_H_
30
31
#include "
dsp/White.h
"
32
33
class
White
34
:
public
Plugin
35
{
36
public
:
37
sample_t
gain
;
38
39
DSP::White
white
;
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
(0); }
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
/* _WHITE_H_ */
sample_t
LADSPA_Data sample_t
Definition
basics.h:100
DSP::White
Definition
White.h:37
Plugin
Definition
basics.h:174
Plugin::getport
sample_t getport(int i)
Definition
basics.h:194
White
Definition
White.h:35
White::white
DSP::White white
Definition
White.h:39
White::activate
void activate()
Definition
White.h:48
White::port_info
static PortInfo port_info[]
Definition
White.h:45
White::run_adding
void run_adding(int n)
Definition
White.h:56
White::one_cycle
void one_cycle(int frames)
White::gain
sample_t gain
Definition
White.h:37
White::run
void run(int n)
Definition
White.h:51
White::init
void init()
Definition
White.h:47
White.h
PortInfo
Definition
basics.h:94
n
int n
Definition
crypt.c:458
Generated on
for LMMS by
1.16.1