Add stubs for built-in plugins

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-18 14:03:05 +01:00
parent 067f118f1f
commit 323c500bd0
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
9 changed files with 223 additions and 0 deletions

View 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": []
}

View file

View 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");

View 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");

View 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;