Browse Source

Update Makefile and API

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
89fcaf01d5
8 changed files with 13 additions and 19 deletions
  1. +2
    -8
      Makefile
  2. +1
    -1
      README.md
  3. +1
    -1
      src/Delay.cpp
  4. +3
    -3
      src/Mutes.cpp
  5. +3
    -3
      src/SEQ3.cpp
  6. +1
    -1
      src/Scope.cpp
  7. +1
    -1
      src/Unity.cpp
  8. +1
    -1
      src/VCF.cpp

+ 2
- 8
Makefile View File

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

+ 1
- 1
README.md View File

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

+ 1
- 1
src/Delay.cpp View File

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


+ 3
- 3
src/Mutes.cpp View File

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


+ 3
- 3
src/SEQ3.cpp View File

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


+ 1
- 1
src/Scope.cpp View File

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


+ 1
- 1
src/Unity.cpp View File

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




+ 1
- 1
src/VCF.cpp View File

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


Loading…
Cancel
Save