Browse Source

Add RACK_DIR to Makefile

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
eba641ca04
3 changed files with 4 additions and 7 deletions
  1. +2
    -2
      Makefile
  2. +1
    -4
      src/Fundamental.cpp
  3. +1
    -1
      src/VCF.cpp

+ 2
- 2
Makefile View File

@@ -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

+ 1
- 4
src/Fundamental.cpp View File

@@ -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));


+ 1
- 1
src/VCF.cpp View File

@@ -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;


Loading…
Cancel
Save