diff --git a/Makefile b/Makefile index 0aa4dcd..65191b7 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,7 @@ VERSION = 0.5.1 SOURCES = $(wildcard src/*.cpp) - -include ../../plugin.mk +DISTRIBUTABLES += $(wildcard LICENSE*) res -dist: all - mkdir -p dist/$(SLUG) - cp LICENSE* dist/$(SLUG)/ - cp $(TARGET) dist/$(SLUG)/ - cp -R res dist/$(SLUG)/ - cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) +include ../../plugin.mk diff --git a/README.md b/README.md index 65badef..b290386 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,6 @@ Source code licensed under [BSD-3-Clause](LICENSE.txt) by [Andrew Belt](https:// VCV logo is © 2017 -Panel graphics in `res/` are © 2017 +Panel graphics in `res/` are © 2017 by [Grayscale](http://grayscale.info/) Derivative works may not use the VCV logo or panel graphics. \ No newline at end of file diff --git a/src/Delay.cpp b/src/Delay.cpp index 41091e8..a89c7d6 100644 --- a/src/Delay.cpp +++ b/src/Delay.cpp @@ -75,7 +75,7 @@ void Delay::step() { int inFrames = mini(historyBuffer.size(), 16); int outFrames = outBuffer.capacity(); // printf(">\t%d\t%d\n", inFrames, outFrames); - src.setRatioSmooth(ratio); + src.setRates(ratio * engineGetSampleRate(), engineGetSampleRate()); src.process((const Frame<1>*)historyBuffer.startData(), &inFrames, (Frame<1>*)outBuffer.endData(), &outFrames); historyBuffer.startIncr(inFrames); outBuffer.endIncr(outFrames); diff --git a/src/Mutes.cpp b/src/Mutes.cpp index 1726f66..ffde81d 100644 --- a/src/Mutes.cpp +++ b/src/Mutes.cpp @@ -27,16 +27,16 @@ struct Mutes : Module { SchmittTrigger muteTrigger[NUM_CHANNELS]; Mutes() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { - reset(); + onReset(); } void step() override; - void reset() override { + void onReset() override { for (int i = 0; i < NUM_CHANNELS; i++) { state[i] = true; } } - void randomize() override { + void onRandomize() override { for (int i = 0; i < NUM_CHANNELS; i++) { state[i] = (randomf() < 0.5); } diff --git a/src/SEQ3.cpp b/src/SEQ3.cpp index abd459e..a33e8a2 100644 --- a/src/SEQ3.cpp +++ b/src/SEQ3.cpp @@ -59,7 +59,7 @@ struct SEQ3 : Module { PulseGenerator gatePulse; SEQ3() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { - reset(); + onReset(); } void step() override; @@ -106,13 +106,13 @@ struct SEQ3 : Module { gateMode = (GateMode)json_integer_value(gateModeJ); } - void reset() override { + void onReset() override { for (int i = 0; i < 8; i++) { gateState[i] = true; } } - void randomize() override { + void onRandomize() override { for (int i = 0; i < 8; i++) { gateState[i] = (randomf() > 0.5); } diff --git a/src/Scope.cpp b/src/Scope.cpp index 186e21a..e92bb36 100644 --- a/src/Scope.cpp +++ b/src/Scope.cpp @@ -65,7 +65,7 @@ struct Scope : Module { external = json_integer_value(extJ); } - void reset() override { + void onReset() override { lissajous = false; external = false; } diff --git a/src/Unity.cpp b/src/Unity.cpp index 6d12a7b..29e9f55 100644 --- a/src/Unity.cpp +++ b/src/Unity.cpp @@ -31,7 +31,7 @@ struct Unity : Module { Unity() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {} void step() override; - void reset() override { + void onReset() override { merge = false; } diff --git a/src/VCF.cpp b/src/VCF.cpp index 0583c25..995fe7c 100644 --- a/src/VCF.cpp +++ b/src/VCF.cpp @@ -109,7 +109,7 @@ struct VCF : Module { VCF() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) {} void step() override; - void reset() override { + void onReset() override { filter.reset(); } };