LMMS
Loading...
Searching...
No Matches
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
31namespace lmms
32{
33
34
35class DelayEffect;
36
37
39{
40 Q_OBJECT
41public:
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 }
54 {
55 return new gui::DelayControlsDialog( this );
56 }
57
60
61
62private slots:
63 void changeSampleRate();
64
65private:
72
74 friend class DelayEffect;
75};
76
77
78} // namespace lmms
79
80#endif // DELAYCONTROLS_H
gui::EffectControlDialog * createView() override
Definition DelayControls.h:53
QString nodeName() const override
Definition DelayControls.h:46
void saveSettings(QDomDocument &doc, QDomElement &parent) override
Definition DelayControls.cpp:62
void loadSettings(const QDomElement &_this) override
Definition DelayControls.cpp:50
TempoSyncKnobModel m_lfoTimeModel
Definition DelayControls.h:69
TempoSyncKnobModel m_lfoAmountModel
Definition DelayControls.h:70
float m_outPeakR
Definition DelayControls.h:59
TempoSyncKnobModel m_delayTimeModel
Definition DelayControls.h:67
~DelayControls() override=default
DelayControls(DelayEffect *effect)
Definition DelayControls.cpp:33
friend class DelayEffect
Definition DelayControls.h:74
FloatModel m_outGainModel
Definition DelayControls.h:71
float m_outPeakL
Definition DelayControls.h:58
void changeSampleRate()
Definition DelayControls.cpp:73
FloatModel m_feedbackModel
Definition DelayControls.h:68
int controlCount() override
Definition DelayControls.h:50
DelayEffect * m_effect
Definition DelayControls.h:66
Definition DelayEffect.h:38
Effect * effect()
Definition EffectControls.h:70
EffectControls(Effect *_eff)
Definition EffectControls.h:46
Definition AutomatableModel.h:463
Definition TempoSyncKnobModel.h:45
Definition DelayControlsDialog.h:41
Definition EffectControlDialog.h:42
static uintptr_t parent
Definition pugl.h:1644
Definition AudioAlsa.cpp:35