lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
plugins
SlewDistortion
SlewDistortionControlDialog.h
Go to the documentation of this file.
1
/*
2
* SlewDistortionControlDialog.h
3
*
4
* Copyright (c) 2025 Lost Robot <r94231/at/gmail/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 LMMS_GUI_SLEW_DISTORTION_CONTROL_DIALOG_H
26
#define LMMS_GUI_SLEW_DISTORTION_CONTROL_DIALOG_H
27
28
#include "
EffectControlDialog.h
"
29
#include <QTextEdit>
30
#include <array>
31
32
namespace
lmms
33
{
34
35
class
SlewDistortionControls
;
36
class
FloatModel
;
37
38
namespace
gui
39
{
40
41
class
Knob
;
42
43
class
SlewDistortionControlDialog
:
public
EffectControlDialog
44
{
45
Q_OBJECT
46
public
:
47
SlewDistortionControlDialog
(
SlewDistortionControls
* controls);
48
~SlewDistortionControlDialog
()
override
=
default
;
49
50
void
paintEvent
(QPaintEvent* event)
override
;
51
public
slots:
52
void
showHelpWindow
();
53
private
:
54
SlewDistortionControls
*
m_controls
;
55
56
Knob
*
m_slewUp1Knob
;
57
Knob
*
m_slewUp2Knob
;
58
Knob
*
m_slewDown1Knob
;
59
Knob
*
m_slewDown2Knob
;
60
61
std::array<float, 4>
m_lastInPeaks
= {0};
62
std::array<float, 4>
m_lastOutPeaks
= {0};
63
};
64
65
class
SlewDistortionHelpView
:
public
QTextEdit
66
{
67
Q_OBJECT
68
public
:
69
static
SlewDistortionHelpView
*
getInstance
()
70
{
71
static
SlewDistortionHelpView
* instance =
new
SlewDistortionHelpView
;
72
return
instance;
73
}
74
75
private
:
76
SlewDistortionHelpView
();
77
static
QString
s_helpText
;
78
};
79
80
}
// namespace gui
81
82
}
// namespace lmms
83
84
#endif
// LMMS_GUI_SLEW_DISTORTION_CONTROL_DIALOG_H
EffectControlDialog.h
lmms::FloatModel
Definition
AutomatableModel.h:468
lmms::SlewDistortionControls
Definition
SlewDistortionControls.h:60
lmms::gui::EffectControlDialog::EffectControlDialog
EffectControlDialog(EffectControls *controls)
Definition
EffectControlDialog.cpp:33
lmms::gui::Knob
Definition
Knob.h:47
lmms::gui::SlewDistortionControlDialog::SlewDistortionControlDialog
SlewDistortionControlDialog(SlewDistortionControls *controls)
Definition
SlewDistortionControlDialog.cpp:43
lmms::gui::SlewDistortionControlDialog::m_slewUp1Knob
Knob * m_slewUp1Knob
Definition
SlewDistortionControlDialog.h:56
lmms::gui::SlewDistortionControlDialog::~SlewDistortionControlDialog
~SlewDistortionControlDialog() override=default
lmms::gui::SlewDistortionControlDialog::m_lastOutPeaks
std::array< float, 4 > m_lastOutPeaks
Definition
SlewDistortionControlDialog.h:62
lmms::gui::SlewDistortionControlDialog::m_lastInPeaks
std::array< float, 4 > m_lastInPeaks
Definition
SlewDistortionControlDialog.h:61
lmms::gui::SlewDistortionControlDialog::paintEvent
void paintEvent(QPaintEvent *event) override
Definition
SlewDistortionControlDialog.cpp:200
lmms::gui::SlewDistortionControlDialog::m_slewUp2Knob
Knob * m_slewUp2Knob
Definition
SlewDistortionControlDialog.h:57
lmms::gui::SlewDistortionControlDialog::showHelpWindow
void showHelpWindow()
Definition
SlewDistortionControlDialog.cpp:392
lmms::gui::SlewDistortionControlDialog::m_controls
SlewDistortionControls * m_controls
Definition
SlewDistortionControlDialog.h:54
lmms::gui::SlewDistortionControlDialog::m_slewDown2Knob
Knob * m_slewDown2Knob
Definition
SlewDistortionControlDialog.h:59
lmms::gui::SlewDistortionControlDialog::m_slewDown1Knob
Knob * m_slewDown1Knob
Definition
SlewDistortionControlDialog.h:58
lmms::gui::SlewDistortionHelpView::s_helpText
static QString s_helpText
Definition
SlewDistortionControlDialog.h:77
lmms::gui::SlewDistortionHelpView::getInstance
static SlewDistortionHelpView * getInstance()
Definition
SlewDistortionControlDialog.h:69
lmms::gui::SlewDistortionHelpView::SlewDistortionHelpView
SlewDistortionHelpView()
Definition
SlewDistortionControlDialog.cpp:475
lmms::gui
Definition
AudioPortAudio.cpp:209
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0