@@ -1,5 +1,5 @@ | |||||
SLUG = Befaco | SLUG = Befaco | ||||
VERSION = 0.5.0 | |||||
VERSION = 0.6.0dev | |||||
FLAGS = -I./pffft -DPFFFT_SIMD_DISABLE | FLAGS = -I./pffft -DPFFFT_SIMD_DISABLE | ||||
@@ -7,5 +7,5 @@ SOURCES += $(wildcard src/*.cpp) pffft/pffft.c | |||||
DISTRIBUTABLES += $(wildcard LICENSE*) res | DISTRIBUTABLES += $(wildcard LICENSE*) res | ||||
include ../../plugin.mk | |||||
RACK_DIR ?= ../.. | |||||
include $(RACK_DIR)/plugin.mk |
@@ -5,10 +5,8 @@ Plugin *plugin; | |||||
void init(rack::Plugin *p) { | void init(rack::Plugin *p) { | ||||
plugin = p; | plugin = p; | ||||
p->slug = "Befaco"; | |||||
#ifdef VERSION | |||||
p->slug = TOSTRING(SLUG); | |||||
p->version = TOSTRING(VERSION); | p->version = TOSTRING(VERSION); | ||||
#endif | |||||
p->addModel(createModel<EvenVCOWidget>("Befaco", "EvenVCO", "EvenVCO", OSCILLATOR_TAG)); | p->addModel(createModel<EvenVCOWidget>("Befaco", "EvenVCO", "EvenVCO", OSCILLATOR_TAG)); | ||||
p->addModel(createModel<RampageWidget>("Befaco", "Rampage", "Rampage", FUNCTION_GENERATOR_TAG, LOGIC_TAG, SLEW_LIMITER_TAG, ENVELOPE_FOLLOWER_TAG, DUAL_TAG)); | p->addModel(createModel<RampageWidget>("Befaco", "Rampage", "Rampage", FUNCTION_GENERATOR_TAG, LOGIC_TAG, SLEW_LIMITER_TAG, ENVELOPE_FOLLOWER_TAG, DUAL_TAG)); | ||||
@@ -66,11 +66,7 @@ struct Rampage : Module { | |||||
SchmittTrigger trigger[2]; | SchmittTrigger trigger[2]; | ||||
PulseGenerator endOfCyclePulse[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; | void step() override; | ||||
}; | }; | ||||
@@ -90,7 +86,7 @@ static float shapeDelta(float delta, float tau, float shape) { | |||||
void Rampage::step() { | void Rampage::step() { | ||||
for (int c = 0; c < 2; c++) { | for (int c = 0; c < 2; c++) { | ||||
float in = inputs[IN_A_INPUT + c].value; | 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; | gate[c] = true; | ||||
} | } | ||||
if (gate[c]) { | if (gate[c]) { | ||||