diff --git a/Makefile b/Makefile index d1e9268..f3fd5c4 100644 --- a/Makefile +++ b/Makefile @@ -5,5 +5,5 @@ SOURCES += $(wildcard src/*.cpp) DISTRIBUTABLES += $(wildcard LICENSE*) res - -include ../../plugin.mk +RACK_DIR ?= ../.. +include $(RACK_DIR)/plugin.mk diff --git a/src/Fundamental.cpp b/src/Fundamental.cpp index 303abbf..f4c1ba3 100644 --- a/src/Fundamental.cpp +++ b/src/Fundamental.cpp @@ -5,11 +5,8 @@ Plugin *plugin; void init(rack::Plugin *p) { plugin = p; - p->slug = "Fundamental"; -#ifdef VERSION + p->slug = TOSTRING(SLUG); p->version = TOSTRING(VERSION); -#endif - p->website = "https://github.com/VCVRack/Fundamental"; p->addModel(createModel("Fundamental", "VCO", "VCO-1", OSCILLATOR_TAG)); p->addModel(createModel("Fundamental", "VCO2", "VCO-2", OSCILLATOR_TAG)); diff --git a/src/VCF.cpp b/src/VCF.cpp index 22ca0e9..ddc4040 100644 --- a/src/VCF.cpp +++ b/src/VCF.cpp @@ -121,7 +121,7 @@ void VCF::step() { float gain = powf(100.0f, drive); input *= gain; // 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 float res = params[RES_PARAM].value + inputs[RES_INPUT].value / 5.0f;