diff --git a/Makefile b/Makefile index 486684d..d5b726a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ SLUG = Befaco -VERSION = 0.5.0 +VERSION = 0.6.0dev FLAGS = -I./pffft -DPFFFT_SIMD_DISABLE @@ -7,5 +7,5 @@ SOURCES += $(wildcard src/*.cpp) pffft/pffft.c DISTRIBUTABLES += $(wildcard LICENSE*) res - -include ../../plugin.mk +RACK_DIR ?= ../.. +include $(RACK_DIR)/plugin.mk diff --git a/src/Befaco.cpp b/src/Befaco.cpp index e5650ee..fba57b5 100644 --- a/src/Befaco.cpp +++ b/src/Befaco.cpp @@ -5,10 +5,8 @@ Plugin *plugin; void init(rack::Plugin *p) { plugin = p; - p->slug = "Befaco"; -#ifdef VERSION + p->slug = TOSTRING(SLUG); p->version = TOSTRING(VERSION); -#endif p->addModel(createModel("Befaco", "EvenVCO", "EvenVCO", OSCILLATOR_TAG)); p->addModel(createModel("Befaco", "Rampage", "Rampage", FUNCTION_GENERATOR_TAG, LOGIC_TAG, SLEW_LIMITER_TAG, ENVELOPE_FOLLOWER_TAG, DUAL_TAG)); diff --git a/src/Rampage.cpp b/src/Rampage.cpp index 6d9db63..9ad912a 100644 --- a/src/Rampage.cpp +++ b/src/Rampage.cpp @@ -66,11 +66,7 @@ struct Rampage : Module { SchmittTrigger trigger[2]; PulseGenerator endOfCyclePulse[2]; - Rampage() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { - for (int c = 0; c < 2; c++) { - trigger[c].setThresholds(0.0, 2.0); - } - } + Rampage() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {} void step() override; }; @@ -90,7 +86,7 @@ static float shapeDelta(float delta, float tau, float shape) { void Rampage::step() { for (int c = 0; c < 2; c++) { float in = inputs[IN_A_INPUT + c].value; - if (trigger[c].process(params[TRIGG_A_PARAM + c].value * 10.0 + inputs[TRIGG_A_INPUT + c].value)) { + if (trigger[c].process(params[TRIGG_A_PARAM + c].value * 10.0 + inputs[TRIGG_A_INPUT + c].value / 2.0)) { gate[c] = true; } if (gate[c]) {