LMMS
Loading...
Searching...
No Matches
Click.h
Go to the documentation of this file.
1/*
2 Click.h
3
4 Copyright 2004-5 Tim Goetze <tim@quitte.de>
5
6 http://quitte.de/dsp/
7
8 units perpetually repeating a recorded sample.
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 _CLICK_H_
29#define _CLICK_H_
30
31#include "dsp/OnePole.h"
32#include "dsp/util.h"
33
35: public Plugin
36{
37 public:
39
40 float * wave;
41 int N; /* number of samples in wave */
42
44
45 int period; /* frames remaining in period */
46 int played; /* frames played from sample */
47
48 template <sample_func_t F>
49 void one_cycle (int frames);
50
51 public:
53
54 void init (float * _wave, int _N);
55
56 void activate()
57 {
58 played = 0;
59 period = 0;
60 }
61
62 void run (int n)
63 {
65 }
66
67 void run_adding (int n)
68 {
70 }
71};
72
73class Click
74: public ClickStub
75{
76 public:
77 void init();
78};
79
80class CEO
81: public ClickStub
82{
83 public:
84 void init();
85
87};
88
89class Dirac
90: public ClickStub
91{
92 public:
93 void init();
94
96};
97
98#endif /* _CLICK_H_ */
LADSPA_Data sample_t
Definition basics.h:100
Definition Click.h:82
static PortInfo port_info[]
Definition Click.h:86
void init()
Definition Click.h:75
void init()
Definition Click.h:36
void one_cycle(int frames)
void run(int n)
Definition Click.h:62
int N
Definition Click.h:41
static PortInfo port_info[]
Definition Click.h:52
sample_t bpm
Definition Click.h:38
int played
Definition Click.h:46
void init(float *_wave, int _N)
void run_adding(int n)
Definition Click.h:67
int period
Definition Click.h:45
void activate()
Definition Click.h:56
float * wave
Definition Click.h:40
DSP::OnePoleLP lp
Definition Click.h:43
Definition OnePole.h:34
Definition Click.h:91
void init()
static PortInfo port_info[]
Definition Click.h:95
Definition basics.h:174
Definition basics.h:94
int n
Definition crypt.c:458