LMMS
Loading...
Searching...
No Matches
PeakControllerEffect.h
Go to the documentation of this file.
1/*
2 * peak_controller_Effect.h - PeakController effect plugin
3 *
4 * Copyright (c) 2008 Paul Giblock <drfaygo/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
26#ifndef PEAK_CONTROLLER_EFFECT_H
27#define PEAK_CONTROLLER_EFFECT_H
28
29#include "Effect.h"
31
32namespace lmms
33{
34
35
36class PeakController;
37
39{
40public:
42 const Descriptor::SubPluginFeatures::Key * _key );
43 ~PeakControllerEffect() override;
44
45 ProcessStatus processImpl(SampleFrame* buf, const f_cnt_t frames) override;
46
48 {
49 return &m_peakControls;
50 }
51
52 float lastSample()
53 {
54 return m_lastSample;
55 }
56
58 {
59 return m_autoController;
60 }
61
63 {
64 return &( m_peakControls.m_attackModel );
65 }
66
68 {
69 return &( m_peakControls.m_decayModel );
70 }
71
73
74private:
76
78
80
82
83} ;
84
85
86} // namespace lmms
87
88#endif
Definition EffectControls.h:44
Effect(const Plugin::Descriptor *_desc, Model *_parent, const Descriptor::SubPluginFeatures::Key *_key)
Definition Effect.cpp:41
ProcessStatus
Definition Effect.h:147
Definition AutomatableModel.h:463
Definition Model.h:37
PeakController * m_autoController
Definition PeakControllerEffect.h:79
float m_lastSample
Definition PeakControllerEffect.h:77
EffectControls * controls() override
Definition PeakControllerEffect.h:47
PeakControllerEffectControls m_peakControls
Definition PeakControllerEffect.h:75
float lastSample()
Definition PeakControllerEffect.h:52
int m_effectId
Definition PeakControllerEffect.h:72
ProcessStatus processImpl(SampleFrame *buf, const f_cnt_t frames) override
Definition PeakControllerEffect.cpp:96
friend class PeakControllerEffectControls
Definition PeakControllerEffect.h:81
~PeakControllerEffect() override
Definition PeakControllerEffect.cpp:85
PeakController * controller()
Definition PeakControllerEffect.h:57
FloatModel * attackModel()
Definition PeakControllerEffect.h:62
PeakControllerEffect(Model *parent, const Descriptor::SubPluginFeatures::Key *_key)
Definition PeakControllerEffect.cpp:65
FloatModel * decayModel()
Definition PeakControllerEffect.h:67
Definition PeakController.h:42
Definition SampleFrame.h:41
static uintptr_t parent
Definition pugl.h:1644
Definition AudioAlsa.cpp:35
std::uint64_t f_cnt_t
Definition LmmsTypes.h:43