diff --git a/Makefile b/Makefile index 95fe648..a94bc78 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ RACK_DIR ?= ../.. -SLUG = Fundamental -VERSION = 0.6.1 FLAGS += -Idep/include SOURCES += $(wildcard src/*.cpp) diff --git a/plugin.json b/plugin.json new file mode 100644 index 0000000..dd10df7 --- /dev/null +++ b/plugin.json @@ -0,0 +1,81 @@ +{ + "slug": "Fundamental", + "name": "Fundamental", + "author": "VCV", + "license": "BSD-3-Clause", + "authorEmail": "contact@vcvrack.com", + "pluginUrl": "https://vcvrack.com/Fundamental.html", + "authorUrl": "https://vcvrack.com/", + "sourceUrl": "https://github.com/VCVRack/Fundamental", + "version": "1.0.0", + "modules": { + "VCO": { + "name": "VCO-1", + "tags": ["VCO"] + }, + "VCO2": { + "name": "VCO-2", + "tags": ["VCO"] + }, + "VCF": { + "name": "VCF", + "tags": ["VCF"] + }, + "VCA-1": { + "name": "VCA-1", + "tags": ["VCA"] + }, + "VCA": { + "name": "VCA-2", + "tags": ["VCA", "Dual"] + }, + "LFO": { + "name": "LFO-1", + "tags": ["LFO"] + }, + "LFO2": { + "name": "LFO-2", + "tags": ["LFO"] + }, + "Delay": { + "name": "Delay", + "tags": ["Delay"] + }, + "ADSR": { + "name": "ADSR", + "tags": ["Envelope Generator"] + }, + "VCMixer": { + "name": "Mixer", + "tags": ["Mixer", "VCA"] + }, + "8vert": { + "name": "8vert", + "tags": ["Attenuator"] + }, + "Unity": { + "name": "Unity", + "tags": ["Mixer", "Utility", "Dual"] + }, + "Mutes": { + "name": "Mutes", + "tags": ["Switch"] + }, + "Scope": { + "name": "Scope", + "tags": ["Visual"] + }, + "SEQ3": { + "name": "SEQ-3", + "tags": ["Sequencer"] + }, + "SequentialSwitch1": { + "name": "Sequential Switch 1", + "tags": ["Utility"] + }, + "SequentialSwitch2": { + "name": "Sequential Switch 1", + "tags": ["Utility"] + } + } +} \ No newline at end of file diff --git a/src/8vert.cpp b/src/8vert.cpp index 3b1e94f..4ae2e18 100644 --- a/src/8vert.cpp +++ b/src/8vert.cpp @@ -81,4 +81,4 @@ _8vertWidget::_8vertWidget(_8vert *module) : ModuleWidget(module) { } -Model *model_8vert = Model::create<_8vert, _8vertWidget>("Fundamental", "8vert", "8vert", ATTENUATOR_TAG); +Model *model_8vert = Model::create<_8vert, _8vertWidget>("8vert"); diff --git a/src/ADSR.cpp b/src/ADSR.cpp index 8d88414..45fd064 100644 --- a/src/ADSR.cpp +++ b/src/ADSR.cpp @@ -135,4 +135,4 @@ ADSRWidget::ADSRWidget(ADSR *module) : ModuleWidget(module) { } -Model *modelADSR = Model::create("Fundamental", "ADSR", "ADSR", ENVELOPE_GENERATOR_TAG); +Model *modelADSR = createModel("ADSR", "ADSR", ENVELOPE_GENERATOR_TAG); diff --git a/src/Delay.cpp b/src/Delay.cpp index 13bceec..e5e99e7 100644 --- a/src/Delay.cpp +++ b/src/Delay.cpp @@ -136,4 +136,4 @@ DelayWidget::DelayWidget(Delay *module) : ModuleWidget(module) { } -Model *modelDelay = Model::create("Fundamental", "Delay", "Delay", DELAY_TAG); +Model *modelDelay = createModel("Delay"); diff --git a/src/Fundamental.hpp b/src/Fundamental.hpp index 31237be..378decc 100644 --- a/src/Fundamental.hpp +++ b/src/Fundamental.hpp @@ -1,4 +1,4 @@ -#include "rack.hpp" +#include "rack0.hpp" using namespace rack; diff --git a/src/LFO.cpp b/src/LFO.cpp index 0a8a39b..6c4094c 100644 --- a/src/LFO.cpp +++ b/src/LFO.cpp @@ -155,7 +155,7 @@ LFOWidget::LFOWidget(LFO *module) : ModuleWidget(module) { } -Model *modelLFO = Model::create("Fundamental", "LFO", "LFO-1", LFO_TAG); +Model *modelLFO = createModel("LFO"); struct LFO2 : Module { @@ -242,4 +242,4 @@ LFO2Widget::LFO2Widget(LFO2 *module) : ModuleWidget(module) { } -Model *modelLFO2 = Model::create("Fundamental", "LFO2", "LFO-2", LFO_TAG); +Model *modelLFO2 = createModel("LFO2"); diff --git a/src/Mutes.cpp b/src/Mutes.cpp index 082aa34..6506fa0 100644 --- a/src/Mutes.cpp +++ b/src/Mutes.cpp @@ -145,4 +145,4 @@ MutesWidget::MutesWidget(Mutes *module) : ModuleWidget(module) { } -Model *modelMutes = Model::create("Fundamental", "Mutes", "Mutes", SWITCH_TAG); +Model *modelMutes = Model::create("Mutes"); diff --git a/src/SEQ3.cpp b/src/SEQ3.cpp index 31b2576..fca98de 100644 --- a/src/SEQ3.cpp +++ b/src/SEQ3.cpp @@ -203,4 +203,4 @@ struct SEQ3Widget : ModuleWidget { -Model *modelSEQ3 = Model::create("Fundamental", "SEQ3", "SEQ-3", SEQUENCER_TAG); +Model *modelSEQ3 = Model::create("SEQ3"); diff --git a/src/Scope.cpp b/src/Scope.cpp index 3bbfb05..ed85ff1 100644 --- a/src/Scope.cpp +++ b/src/Scope.cpp @@ -339,4 +339,4 @@ ScopeWidget::ScopeWidget(Scope *module) : ModuleWidget(module) { } -Model *modelScope = Model::create("Fundamental", "Scope", "Scope", VISUAL_TAG); +Model *modelScope = Model::create("Scope"); diff --git a/src/SequentialSwitch.cpp b/src/SequentialSwitch.cpp index ad6aef2..76e759e 100644 --- a/src/SequentialSwitch.cpp +++ b/src/SequentialSwitch.cpp @@ -104,7 +104,7 @@ SequentialSwitch1Widget::SequentialSwitch1Widget(SequentialSwitch<1> *module) : } -Model *modelSequentialSwitch1 = Model::create, SequentialSwitch1Widget>("Fundamental", "SequentialSwitch1", "Sequential Switch 1", UTILITY_TAG); +Model *modelSequentialSwitch1 = Model::create, SequentialSwitch1Widget>("SequentialSwitch1"); struct SequentialSwitch2Widget : ModuleWidget { @@ -136,4 +136,4 @@ SequentialSwitch2Widget::SequentialSwitch2Widget(SequentialSwitch<2> *module) : } -Model *modelSequentialSwitch2 = Model::create, SequentialSwitch2Widget>("Fundamental", "SequentialSwitch2", "Sequential Switch 2", UTILITY_TAG); +Model *modelSequentialSwitch2 = Model::create, SequentialSwitch2Widget>("SequentialSwitch2"); diff --git a/src/Unity.cpp b/src/Unity.cpp index 9e12d42..fe6b536 100644 --- a/src/Unity.cpp +++ b/src/Unity.cpp @@ -159,4 +159,4 @@ void UnityWidget::appendContextMenu(Menu *menu) { } -Model *modelUnity = Model::create("Fundamental", "Unity", "Unity", MIXER_TAG, UTILITY_TAG, DUAL_TAG); +Model *modelUnity = Model::create("Unity"); diff --git a/src/VCA.cpp b/src/VCA.cpp index 90285b5..07b0c30 100644 --- a/src/VCA.cpp +++ b/src/VCA.cpp @@ -160,5 +160,5 @@ struct VCA_1Widget : ModuleWidget { }; -Model *modelVCA_1 = Model::create("Fundamental", "VCA-1", "VCA-1", AMPLIFIER_TAG); -Model *modelVCA = Model::create("Fundamental", "VCA", "VCA-2", AMPLIFIER_TAG, DUAL_TAG); +Model *modelVCA_1 = createModel("VCA-1", "VCA-1", AMPLIFIER_TAG); +Model *modelVCA = createModel("VCA", "VCA-2", AMPLIFIER_TAG, DUAL_TAG); diff --git a/src/VCF.cpp b/src/VCF.cpp index 9212d94..b4c6fe2 100644 --- a/src/VCF.cpp +++ b/src/VCF.cpp @@ -172,4 +172,4 @@ struct VCFWidget : ModuleWidget { -Model *modelVCF = Model::create("Fundamental", "VCF", "VCF", FILTER_TAG); +Model *modelVCF = createModel("VCF"); diff --git a/src/VCMixer.cpp b/src/VCMixer.cpp index 1a44968..b39973d 100644 --- a/src/VCMixer.cpp +++ b/src/VCMixer.cpp @@ -74,4 +74,4 @@ struct VCMixerWidget : ModuleWidget { }; -Model *modelVCMixer = Model::create("Fundamental", "VCMixer", "Mixer", MIXER_TAG, AMPLIFIER_TAG); +Model *modelVCMixer = Model::create("VCMixer"); diff --git a/src/VCO.cpp b/src/VCO.cpp index 77ca9c6..72002e2 100644 --- a/src/VCO.cpp +++ b/src/VCO.cpp @@ -265,7 +265,7 @@ VCOWidget::VCOWidget(VCO *module) : ModuleWidget(module) { } -Model *modelVCO = Model::create("Fundamental", "VCO", "VCO-1", OSCILLATOR_TAG); +Model *modelVCO = createModel("VCO"); struct VCO2 : Module { @@ -355,7 +355,7 @@ VCO2Widget::VCO2Widget(VCO2 *module) : ModuleWidget(module) { } -Model *modelVCO2 = Model::create("Fundamental", "VCO2", "VCO-2", OSCILLATOR_TAG); +Model *modelVCO2 = createModel("VCO2"); float sawTable[2048] = {