LMMS
Loading...
Searching...
No Matches
FlangerEffect.h
Go to the documentation of this file.
1/*
2 * flangereffect.h - defination of FlangerEffect 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
26#ifndef FLANGEREFFECT_H
27#define FLANGEREFFECT_H
28
29#include "Effect.h"
30#include "FlangerControls.h"
31
32namespace lmms
33{
34
35class MonoDelay;
36class QuadratureLfo;
37
38
39class FlangerEffect : public Effect
40{
41public:
42 FlangerEffect( Model* parent , const Descriptor::SubPluginFeatures::Key* key );
43 ~FlangerEffect() override;
44
45 ProcessStatus processImpl(SampleFrame* buf, const f_cnt_t frames) override;
46
48 {
49 return &m_flangerControls;
50 }
51 void changeSampleRate();
52 void restartLFO();
53
54private:
59};
60
61
62} // namespace lmms
63
64#endif // FLANGEREFFECT_H
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 FlangerControls.h:38
void changeSampleRate()
Definition FlangerEffect.cpp:136
EffectControls * controls() override
Definition FlangerEffect.h:47
FlangerEffect(Model *parent, const Descriptor::SubPluginFeatures::Key *key)
Definition FlangerEffect.cpp:60
MonoDelay * m_lDelay
Definition FlangerEffect.h:56
QuadratureLfo * m_lfo
Definition FlangerEffect.h:58
FlangerControls m_flangerControls
Definition FlangerEffect.h:55
~FlangerEffect() override
Definition FlangerEffect.cpp:72
ProcessStatus processImpl(SampleFrame *buf, const f_cnt_t frames) override
Definition FlangerEffect.cpp:91
MonoDelay * m_rDelay
Definition FlangerEffect.h:57
void restartLFO()
Definition FlangerEffect.cpp:146
Definition Model.h:37
Definition MonoDelay.h:35
const Descriptor::SubPluginFeatures::Key & key() const
Definition Plugin.h:266
Definition QuadratureLfo.h:36
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