Add stubs for built-in plugins
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
067f118f1f
commit
323c500bd0
9 changed files with 223 additions and 0 deletions
15
plugins/Cardinal/plugin.json
Normal file
15
plugins/Cardinal/plugin.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"slug": "Cardinal",
|
||||
"name": "Cardinal",
|
||||
"version": "2.0.0",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"brand": "DISTRHO",
|
||||
"author": "DISTRHO",
|
||||
"authorEmail": "falktx@falktx.com",
|
||||
"pluginUrl": "https://github.com/DISTRHO/Cardinal",
|
||||
"authorUrl": "https://github.com/DISTRHO/Cardinal",
|
||||
"manualUrl": "https://github.com/DISTRHO/Cardinal/wiki",
|
||||
"sourceUrl": "https://github.com/DISTRHO/Cardinal",
|
||||
"changelogUrl": "",
|
||||
"modules": []
|
||||
}
|
||||
0
plugins/Cardinal/res/.gitkeep
Normal file
0
plugins/Cardinal/res/.gitkeep
Normal file
50
plugins/Cardinal/src/HostParameters.cpp
Normal file
50
plugins/Cardinal/src/HostParameters.cpp
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021 Filipe Coelho <falktx@falktx.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* For a full copy of the GNU General Public License see the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "plugin.hpp"
|
||||
|
||||
struct HostParameters : Module {
|
||||
enum ParamIds {
|
||||
NUM_PARAMS
|
||||
};
|
||||
enum InputIds {
|
||||
NUM_INPUTS
|
||||
};
|
||||
enum OutputIds {
|
||||
NUM_OUTPUTS
|
||||
};
|
||||
enum LightIds {
|
||||
NUM_LIGHTS
|
||||
};
|
||||
|
||||
HostParameters() {
|
||||
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
|
||||
}
|
||||
|
||||
void process(const ProcessArgs&) override {
|
||||
// TODO
|
||||
}
|
||||
};
|
||||
|
||||
struct HostParametersWidget : ModuleWidget {
|
||||
HostParametersWidget(HostParameters* const module) {
|
||||
setModule(module);
|
||||
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/HostParameters.svg")));
|
||||
}
|
||||
};
|
||||
|
||||
Model* modelHostParameters = createModel<HostParameters, HostParametersWidget>("HostParameters");
|
||||
50
plugins/Cardinal/src/HostTime.cpp
Normal file
50
plugins/Cardinal/src/HostTime.cpp
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021 Filipe Coelho <falktx@falktx.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* For a full copy of the GNU General Public License see the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "plugin.hpp"
|
||||
|
||||
struct HostTime : Module {
|
||||
enum ParamIds {
|
||||
NUM_PARAMS
|
||||
};
|
||||
enum InputIds {
|
||||
NUM_INPUTS
|
||||
};
|
||||
enum OutputIds {
|
||||
NUM_OUTPUTS
|
||||
};
|
||||
enum LightIds {
|
||||
NUM_LIGHTS
|
||||
};
|
||||
|
||||
HostTime() {
|
||||
config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
|
||||
}
|
||||
|
||||
void process(const ProcessArgs&) override {
|
||||
// TODO
|
||||
}
|
||||
};
|
||||
|
||||
struct HostTimeWidget : ModuleWidget {
|
||||
HostTimeWidget(HostTime* const module) {
|
||||
setModule(module);
|
||||
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/HostTime.svg")));
|
||||
}
|
||||
};
|
||||
|
||||
Model* modelHostTime = createModel<HostTime, HostTimeWidget>("HostTime");
|
||||
27
plugins/Cardinal/src/plugin.hpp
Normal file
27
plugins/Cardinal/src/plugin.hpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021 Filipe Coelho <falktx@falktx.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 3 of
|
||||
* the License, or any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* For a full copy of the GNU General Public License see the LICENSE file.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "rack.hpp"
|
||||
|
||||
using namespace rack;
|
||||
|
||||
extern Plugin* pluginInstance;
|
||||
|
||||
extern Model* modelHostParameters;
|
||||
extern Model* modelHostTime;
|
||||
Loading…
Add table
Add a link
Reference in a new issue