LMMS
Loading...
Searching...
No Matches
MonoDelay.h
Go to the documentation of this file.
1/*
2 * monodelay.h - defination of MonoDelay class.
3 *
4 * Copyright (c) 2014 David French <dave/dot/french3/at/googlemail/dot/com>
5 *
6 * This file is part of LMMS - https://lmms.io
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program (see COPYING); if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301 USA.
22 *
23 */
24
25#ifndef MONODELAY_H
26#define MONODELAY_H
27
28#include "LmmsTypes.h"
29
30namespace lmms
31{
32
33
35{
36public:
37 MonoDelay( int maxTime , int sampleRate );
38 ~MonoDelay();
39 inline void setLength( float length )
40 {
42 {
44 }
45 }
46
47 inline void setFeedback( float feedback )
48 {
49 m_feedback = feedback;
50 }
51
52 void tick( sample_t* sample );
53 void setSampleRate( int sampleRate );
54
55private:
58 float m_length;
61 float m_maxTime;
62};
63
64
65} // namespace lmms
66
67#endif // MONODELAY_H
MonoDelay(int maxTime, int sampleRate)
Definition MonoDelay.cpp:32
float m_length
Definition MonoDelay.h:58
void setLength(float length)
Definition MonoDelay.h:39
float m_maxTime
Definition MonoDelay.h:61
int m_maxLength
Definition MonoDelay.h:57
~MonoDelay()
Definition MonoDelay.cpp:47
void setFeedback(float feedback)
Definition MonoDelay.h:47
void setSampleRate(int sampleRate)
Definition MonoDelay.cpp:70
int m_writeIndex
Definition MonoDelay.h:59
void tick(sample_t *sample)
Definition MonoDelay.cpp:57
float m_feedback
Definition MonoDelay.h:60
sample_t * m_buffer
Definition MonoDelay.h:56
Definition AudioAlsa.cpp:35
float sample_t
Definition LmmsTypes.h:39
png_uint_32 length
Definition png.c:2247
signed int sample
Definition tap_dynamics_m.c:41