lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
plugins
Delay
DelayControls.h
Go to the documentation of this file.
1
/*
2
* delaycontrols.h - declaration of DelayControl 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 DELAYCONTROLS_H
26
#define DELAYCONTROLS_H
27
28
#include "
EffectControls.h
"
29
#include "
DelayControlsDialog.h
"
30
31
namespace
lmms
32
{
33
34
35
class
DelayEffect
;
36
37
38
class
DelayControls
:
public
EffectControls
39
{
40
Q_OBJECT
41
public
:
42
DelayControls
(
DelayEffect
*
effect
);
43
~DelayControls
()
override
=
default
;
44
void
saveSettings
( QDomDocument& doc, QDomElement& parent )
override
;
45
void
loadSettings
(
const
QDomElement& _this )
override
;
46
inline
QString
nodeName
()
const override
47
{
48
return
"Delay"
;
49
}
50
int
controlCount
()
override
{
51
return
5;
52
}
53
gui::EffectControlDialog
*
createView
()
override
54
{
55
return
new
gui::DelayControlsDialog
(
this
);
56
}
57
58
float
m_outPeakL
;
59
float
m_outPeakR
;
60
61
62
private
slots:
63
void
changeSampleRate
();
64
65
private
:
66
DelayEffect
*
m_effect
;
67
TempoSyncKnobModel
m_delayTimeModel
;
68
FloatModel
m_feedbackModel
;
69
TempoSyncKnobModel
m_lfoTimeModel
;
70
TempoSyncKnobModel
m_lfoAmountModel
;
71
FloatModel
m_outGainModel
;
72
73
friend
class
gui::DelayControlsDialog
;
74
friend
class
DelayEffect
;
75
};
76
77
78
}
// namespace lmms
79
80
#endif
// DELAYCONTROLS_H
DelayControlsDialog.h
EffectControls.h
lmms::DelayControls::createView
gui::EffectControlDialog * createView() override
Definition
DelayControls.h:53
lmms::DelayControls::nodeName
QString nodeName() const override
Definition
DelayControls.h:46
lmms::DelayControls::saveSettings
void saveSettings(QDomDocument &doc, QDomElement &parent) override
Definition
DelayControls.cpp:62
lmms::DelayControls::loadSettings
void loadSettings(const QDomElement &_this) override
Definition
DelayControls.cpp:50
lmms::DelayControls::m_lfoTimeModel
TempoSyncKnobModel m_lfoTimeModel
Definition
DelayControls.h:69
lmms::DelayControls::m_lfoAmountModel
TempoSyncKnobModel m_lfoAmountModel
Definition
DelayControls.h:70
lmms::DelayControls::m_outPeakR
float m_outPeakR
Definition
DelayControls.h:59
lmms::DelayControls::m_delayTimeModel
TempoSyncKnobModel m_delayTimeModel
Definition
DelayControls.h:67
lmms::DelayControls::~DelayControls
~DelayControls() override=default
lmms::DelayControls::DelayControls
DelayControls(DelayEffect *effect)
Definition
DelayControls.cpp:33
lmms::DelayControls::DelayEffect
friend class DelayEffect
Definition
DelayControls.h:74
lmms::DelayControls::m_outGainModel
FloatModel m_outGainModel
Definition
DelayControls.h:71
lmms::DelayControls::m_outPeakL
float m_outPeakL
Definition
DelayControls.h:58
lmms::DelayControls::changeSampleRate
void changeSampleRate()
Definition
DelayControls.cpp:73
lmms::DelayControls::m_feedbackModel
FloatModel m_feedbackModel
Definition
DelayControls.h:68
lmms::DelayControls::controlCount
int controlCount() override
Definition
DelayControls.h:50
lmms::DelayControls::m_effect
DelayEffect * m_effect
Definition
DelayControls.h:66
lmms::DelayEffect
Definition
DelayEffect.h:38
lmms::EffectControls::effect
Effect * effect()
Definition
EffectControls.h:70
lmms::EffectControls::EffectControls
EffectControls(Effect *_eff)
Definition
EffectControls.h:46
lmms::FloatModel
Definition
AutomatableModel.h:468
lmms::TempoSyncKnobModel
Definition
TempoSyncKnobModel.h:45
lmms::gui::DelayControlsDialog
Definition
DelayControlsDialog.h:41
lmms::gui::EffectControlDialog
Definition
EffectControlDialog.h:42
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0