| @@ -5,5 +5,5 @@ SOURCES += $(wildcard src/*.cpp) | |||||
| DISTRIBUTABLES += $(wildcard LICENSE*) res | DISTRIBUTABLES += $(wildcard LICENSE*) res | ||||
| include ../../plugin.mk | |||||
| RACK_DIR ?= ../.. | |||||
| include $(RACK_DIR)/plugin.mk | |||||
| @@ -5,11 +5,8 @@ Plugin *plugin; | |||||
| void init(rack::Plugin *p) { | void init(rack::Plugin *p) { | ||||
| plugin = p; | plugin = p; | ||||
| p->slug = "Fundamental"; | |||||
| #ifdef VERSION | |||||
| p->slug = TOSTRING(SLUG); | |||||
| p->version = TOSTRING(VERSION); | p->version = TOSTRING(VERSION); | ||||
| #endif | |||||
| p->website = "https://github.com/VCVRack/Fundamental"; | |||||
| p->addModel(createModel<VCOWidget>("Fundamental", "VCO", "VCO-1", OSCILLATOR_TAG)); | p->addModel(createModel<VCOWidget>("Fundamental", "VCO", "VCO-1", OSCILLATOR_TAG)); | ||||
| p->addModel(createModel<VCO2Widget>("Fundamental", "VCO2", "VCO-2", OSCILLATOR_TAG)); | p->addModel(createModel<VCO2Widget>("Fundamental", "VCO2", "VCO-2", OSCILLATOR_TAG)); | ||||
| @@ -121,7 +121,7 @@ void VCF::step() { | |||||
| float gain = powf(100.0f, drive); | float gain = powf(100.0f, drive); | ||||
| input *= gain; | input *= gain; | ||||
| // Add -60dB noise to bootstrap self-oscillation | // Add -60dB noise to bootstrap self-oscillation | ||||
| input += 1e-6f * (2.0f*randomf() - 1.0f); | |||||
| input += 1e-6f * (2.0f*randomUniform() - 1.0f); | |||||
| // Set resonance | // Set resonance | ||||
| float res = params[RES_PARAM].value + inputs[RES_INPUT].value / 5.0f; | float res = params[RES_PARAM].value + inputs[RES_INPUT].value / 5.0f; | ||||