@@ -3,13 +3,7 @@ VERSION = 0.5.1 | |||||
SOURCES = $(wildcard src/*.cpp) | 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 |
@@ -9,6 +9,6 @@ Source code licensed under [BSD-3-Clause](LICENSE.txt) by [Andrew Belt](https:// | |||||
VCV logo is © 2017 | 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. | Derivative works may not use the VCV logo or panel graphics. |
@@ -75,7 +75,7 @@ void Delay::step() { | |||||
int inFrames = mini(historyBuffer.size(), 16); | int inFrames = mini(historyBuffer.size(), 16); | ||||
int outFrames = outBuffer.capacity(); | int outFrames = outBuffer.capacity(); | ||||
// printf(">\t%d\t%d\n", inFrames, outFrames); | // 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); | src.process((const Frame<1>*)historyBuffer.startData(), &inFrames, (Frame<1>*)outBuffer.endData(), &outFrames); | ||||
historyBuffer.startIncr(inFrames); | historyBuffer.startIncr(inFrames); | ||||
outBuffer.endIncr(outFrames); | outBuffer.endIncr(outFrames); | ||||
@@ -27,16 +27,16 @@ struct Mutes : Module { | |||||
SchmittTrigger muteTrigger[NUM_CHANNELS]; | SchmittTrigger muteTrigger[NUM_CHANNELS]; | ||||
Mutes() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { | Mutes() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { | ||||
reset(); | |||||
onReset(); | |||||
} | } | ||||
void step() override; | void step() override; | ||||
void reset() override { | |||||
void onReset() override { | |||||
for (int i = 0; i < NUM_CHANNELS; i++) { | for (int i = 0; i < NUM_CHANNELS; i++) { | ||||
state[i] = true; | state[i] = true; | ||||
} | } | ||||
} | } | ||||
void randomize() override { | |||||
void onRandomize() override { | |||||
for (int i = 0; i < NUM_CHANNELS; i++) { | for (int i = 0; i < NUM_CHANNELS; i++) { | ||||
state[i] = (randomf() < 0.5); | state[i] = (randomf() < 0.5); | ||||
} | } | ||||
@@ -59,7 +59,7 @@ struct SEQ3 : Module { | |||||
PulseGenerator gatePulse; | PulseGenerator gatePulse; | ||||
SEQ3() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { | SEQ3() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) { | ||||
reset(); | |||||
onReset(); | |||||
} | } | ||||
void step() override; | void step() override; | ||||
@@ -106,13 +106,13 @@ struct SEQ3 : Module { | |||||
gateMode = (GateMode)json_integer_value(gateModeJ); | gateMode = (GateMode)json_integer_value(gateModeJ); | ||||
} | } | ||||
void reset() override { | |||||
void onReset() override { | |||||
for (int i = 0; i < 8; i++) { | for (int i = 0; i < 8; i++) { | ||||
gateState[i] = true; | gateState[i] = true; | ||||
} | } | ||||
} | } | ||||
void randomize() override { | |||||
void onRandomize() override { | |||||
for (int i = 0; i < 8; i++) { | for (int i = 0; i < 8; i++) { | ||||
gateState[i] = (randomf() > 0.5); | gateState[i] = (randomf() > 0.5); | ||||
} | } | ||||
@@ -65,7 +65,7 @@ struct Scope : Module { | |||||
external = json_integer_value(extJ); | external = json_integer_value(extJ); | ||||
} | } | ||||
void reset() override { | |||||
void onReset() override { | |||||
lissajous = false; | lissajous = false; | ||||
external = false; | external = false; | ||||
} | } | ||||
@@ -31,7 +31,7 @@ struct Unity : Module { | |||||
Unity() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {} | Unity() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {} | ||||
void step() override; | void step() override; | ||||
void reset() override { | |||||
void onReset() override { | |||||
merge = false; | merge = false; | ||||
} | } | ||||
@@ -109,7 +109,7 @@ struct VCF : Module { | |||||
VCF() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) {} | VCF() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) {} | ||||
void step() override; | void step() override; | ||||
void reset() override { | |||||
void onReset() override { | |||||
filter.reset(); | filter.reset(); | ||||
} | } | ||||
}; | }; | ||||