lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
plugins
Delay
DelayEffect.h
Go to the documentation of this file.
1
/*
2
* delayeffect.h - declaration of DelayEffect class, the Delay plugin
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 DELAYEFFECT_H
26
#define DELAYEFFECT_H
27
28
#include "
Effect.h
"
29
#include "
DelayControls.h
"
30
31
namespace
lmms
32
{
33
34
class
Lfo
;
35
class
StereoDelay
;
36
37
class
DelayEffect
:
public
Effect
38
{
39
public
:
40
DelayEffect
(
Model
* parent ,
const
Descriptor::SubPluginFeatures::Key*
key
);
41
~DelayEffect
()
override
;
42
43
ProcessStatus
processImpl
(
SampleFrame
* buf,
const
f_cnt_t
frames)
override
;
44
45
EffectControls
*
controls
()
override
46
{
47
return
&
m_delayControls
;
48
}
49
void
changeSampleRate
();
50
51
private
:
52
DelayControls
m_delayControls
;
53
StereoDelay
*
m_delay
;
54
Lfo
*
m_lfo
;
55
float
m_outGain
;
56
float
m_currentLength
;
57
};
58
59
60
}
// namespace lmms
61
62
#endif
// DELAYEFFECT_H
DelayControls.h
Effect.h
lmms::DelayControls
Definition
DelayControls.h:39
lmms::DelayEffect::m_lfo
Lfo * m_lfo
Definition
DelayEffect.h:54
lmms::DelayEffect::controls
EffectControls * controls() override
Definition
DelayEffect.h:45
lmms::DelayEffect::m_delay
StereoDelay * m_delay
Definition
DelayEffect.h:53
lmms::DelayEffect::DelayEffect
DelayEffect(Model *parent, const Descriptor::SubPluginFeatures::Key *key)
Definition
DelayEffect.cpp:56
lmms::DelayEffect::processImpl
ProcessStatus processImpl(SampleFrame *buf, const f_cnt_t frames) override
Definition
DelayEffect.cpp:84
lmms::DelayEffect::changeSampleRate
void changeSampleRate()
Definition
DelayEffect.cpp:146
lmms::DelayEffect::m_outGain
float m_outGain
Definition
DelayEffect.h:55
lmms::DelayEffect::m_delayControls
DelayControls m_delayControls
Definition
DelayEffect.h:52
lmms::DelayEffect::m_currentLength
float m_currentLength
Definition
DelayEffect.h:56
lmms::EffectControls
Definition
EffectControls.h:44
lmms::Effect::Effect
Effect(const Plugin::Descriptor *_desc, Model *_parent, const Descriptor::SubPluginFeatures::Key *_key)
Definition
Effect.cpp:41
lmms::Effect::ProcessStatus
ProcessStatus
Definition
Effect.h:150
lmms::Lfo
Definition
Lfo.h:36
lmms::Model
Definition
Model.h:37
lmms::Plugin::key
const Descriptor::SubPluginFeatures::Key & key() const
Definition
Plugin.h:272
lmms::SampleFrame
Definition
SampleFrame.h:41
lmms::StereoDelay
Definition
StereoDelay.h:36
lmms
Definition
RemotePluginBase.cpp:34
lmms::f_cnt_t
std::uint64_t f_cnt_t
Definition
LmmsTypes.h:43
Generated on
for lmms by
1.18.0