lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
plugins
Flanger
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
30
namespace
lmms
31
{
32
33
34
class
MonoDelay
35
{
36
public
:
37
MonoDelay
(
int
maxTime ,
int
sampleRate );
38
~MonoDelay
();
39
inline
void
setLength
(
float
length )
40
{
41
if
( length <= m_maxLength && length >= 0 )
42
{
43
m_length
= length;
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
55
private
:
56
sample_t
*
m_buffer
;
57
int
m_maxLength
;
58
float
m_length
;
59
int
m_writeIndex
;
60
float
m_feedback
;
61
float
m_maxTime
;
62
};
63
64
65
}
// namespace lmms
66
67
#endif
// MONODELAY_H
LmmsTypes.h
lmms::MonoDelay::MonoDelay
MonoDelay(int maxTime, int sampleRate)
Definition
MonoDelay.cpp:32
lmms::MonoDelay::m_length
float m_length
Definition
MonoDelay.h:58
lmms::MonoDelay::setLength
void setLength(float length)
Definition
MonoDelay.h:39
lmms::MonoDelay::m_maxTime
float m_maxTime
Definition
MonoDelay.h:61
lmms::MonoDelay::m_maxLength
int m_maxLength
Definition
MonoDelay.h:57
lmms::MonoDelay::setFeedback
void setFeedback(float feedback)
Definition
MonoDelay.h:47
lmms::MonoDelay::setSampleRate
void setSampleRate(int sampleRate)
Definition
MonoDelay.cpp:70
lmms::MonoDelay::m_writeIndex
int m_writeIndex
Definition
MonoDelay.h:59
lmms::MonoDelay::tick
void tick(sample_t *sample)
Definition
MonoDelay.cpp:57
lmms::MonoDelay::m_feedback
float m_feedback
Definition
MonoDelay.h:60
lmms::MonoDelay::m_buffer
sample_t * m_buffer
Definition
MonoDelay.h:56
lmms
Definition
RemotePluginBase.cpp:34
lmms::sample_t
float sample_t
Definition
LmmsTypes.h:39
Generated on
for lmms by
1.18.0