Krotos Modules 3
Loading...
Searching...
No Matches
Kwidget_MoogVcf.cpp
Go to the documentation of this file.
1namespace krotos
2{
3 const String Kwidget_MoogVcf::Parameters::Cutoff = "Cutoff";
4 const String Kwidget_MoogVcf::Parameters::Resonance = "Resonance";
5 const String Kwidget_MoogVcf::Parameters::Bypass = "Bypass";
6
7 Kwidget_MoogVcf::Kwidget_MoogVcf(const String& id) : Kwidget("MoogVcf", id) { init(); }
8
9 std::vector<Kwidget::ParameterInfo> Kwidget_MoogVcf::createParameters()
10 {
11 using P = Parameters;
12 return {
13 {P::Cutoff, P::Cutoff, {20.0f, 9e3f, 1e-5f, 0.25f}, 20.0f},
14 {P::Resonance, P::Resonance, {0.0f, 0.6f}, 0.0f},
15 {P::Bypass, P::Bypass, {0.0f, 1.0f, 1.0f}, 0.0f},
16 };
17 }
18
19 std::unique_ptr<KwidgetProcessor> Kwidget_MoogVcf::createProcessor()
20 {
21 return std::make_unique<KwidgetProcessor_MoogVcf>(*this);
22 }
23
24 std::unique_ptr<KwidgetGUI> Kwidget_MoogVcf::createGUI() { return std::make_unique<KwidgetGUI_MoogVcf>(*this); }
25} // namespace krotos
std::vector< ParameterInfo > createParameters() override
Definition Kwidget_MoogVcf.cpp:9
std::unique_ptr< KwidgetProcessor > createProcessor() override
Definition Kwidget_MoogVcf.cpp:19
Kwidget_MoogVcf(const String &id)
Definition Kwidget_MoogVcf.cpp:7
std::unique_ptr< KwidgetGUI > createGUI() override
Definition Kwidget_MoogVcf.cpp:24
Definition Kwidget.h:8
void init()
Definition Kwidget.cpp:27
Definition AirAbsorptionFilter.cpp:2
Kwidget_CoreEngine::Parameters Parameters
Definition KwidgetGUI_CoreEngine.cpp:42