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