LMMS
Loading...
Searching...
No Matches
ToneStack.h
Go to the documentation of this file.
1/*
2 ToneStack.h
3
4 Copyright 2006-7
5 David Yeh <dtyeh@ccrma.stanford.edu>
6 Tim Goetze <tim@quitte.de> (cosmetics)
7
8 Tone Stack emulation.
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 _TONESTACK_H_
29#define _TONESTACK_H_
30
31#include "dsp/util.h"
32#include "dsp/windows.h"
33#include "dsp/ToneStack.h"
34
36: public Plugin
37{
38 private:
40
41 template <sample_func_t F>
42 void one_cycle (int frames);
43
44 public:
46
47 void init()
48 {
49 tonestack.init (fs);
50 }
51
52 void activate();
53
54 void run (int n)
55 {
57 }
58
59 void run_adding (int n)
60 {
62 }
63};
64
65/* /////////////////////////////////////////////////////////////////////// */
66
68: public Plugin
69{
70 private:
72
73 template <sample_func_t F>
74 void one_cycle (int frames);
75
76 public:
78
79 void init()
80 {
81 tonestack.init (fs);
82 }
83
84 void activate()
85 { tonestack.activate (ports + 1); }
86
87 void run (int n)
88 {
90 }
91
92 void run_adding (int n)
93 {
95 }
96};
97
98#endif /* _TONESTACK_H_ */
Definition ToneStack.h:48
Definition ToneStack.h:202
Definition basics.h:174
sample_t ** ports
Definition basics.h:182
double fs
Definition basics.h:176
Definition ToneStack.h:37
void init()
Definition ToneStack.h:47
static PortInfo port_info[]
Definition ToneStack.h:45
void run_adding(int n)
Definition ToneStack.h:59
DSP::ToneStack tonestack
Definition ToneStack.h:39
void run(int n)
Definition ToneStack.h:54
void activate()
void one_cycle(int frames)
Definition ToneStack.h:69
void init()
Definition ToneStack.h:79
void activate()
Definition ToneStack.h:84
static PortInfo port_info[]
Definition ToneStack.h:77
void one_cycle(int frames)
DSP::ToneStackLT tonestack
Definition ToneStack.h:71
void run(int n)
Definition ToneStack.h:87
void run_adding(int n)
Definition ToneStack.h:92
Definition basics.h:94
int n
Definition crypt.c:458