From 3c59644bef27457bbb61478b00e1891cb8bf99c2 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 23 Oct 2017 06:26:06 -0400 Subject: [PATCH] Update to new Plugin changes --- src/Befaco.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/Befaco.cpp b/src/Befaco.cpp index 58fc153..0dbb59b 100644 --- a/src/Befaco.cpp +++ b/src/Befaco.cpp @@ -5,16 +5,17 @@ Plugin *plugin; void init(rack::Plugin *p) { plugin = p; - plugin->slug = "Befaco"; - plugin->name = "Befaco"; - plugin->homepageUrl = "https://github.com/VCVRack/Befaco"; - createModel(plugin, "EvenVCO", "EvenVCO"); - createModel(plugin, "Rampage", "Rampage"); - createModel(plugin, "ABC", "A*B+C"); - createModel(plugin, "SpringReverb", "Spring Reverb"); - createModel(plugin, "Mixer", "Mixer"); - createModel(plugin, "SlewLimiter", "Slew Limiter"); - createModel(plugin, "DualAtenuverter", "Dual Atenuverter"); + p->slug = "Befaco"; +#ifdef VERSION + p->version = TOSTRING(VERSION); +#endif + p->addModel(createModel("Befaco", "Befaco", "EvenVCO", "EvenVCO")); + p->addModel(createModel("Befaco", "Befaco", "Rampage", "Rampage")); + p->addModel(createModel("Befaco", "Befaco", "ABC", "A*B+C")); + p->addModel(createModel("Befaco", "Befaco", "SpringReverb", "Spring Reverb")); + p->addModel(createModel("Befaco", "Befaco", "Mixer", "Mixer")); + p->addModel(createModel("Befaco", "Befaco", "SlewLimiter", "Slew Limiter")); + p->addModel(createModel("Befaco", "Befaco", "DualAtenuverter", "Dual Atenuverter")); springReverbInit(); }