diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 01ad3e9..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "kissfft"] - path = kissfft - url = https://github.com/bazaar-projects/kissfft.git diff --git a/Makefile b/Makefile index 5f24896..d8126b9 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ -SOURCES = $(wildcard src/*.cpp) kissfft/kiss_fft.c +SOURCES = $(wildcard src/*.cpp) include ../../plugin.mk -dist: +dist: all mkdir -p dist/Fundamental cp LICENSE* dist/Fundamental/ cp plugin.* dist/Fundamental/ diff --git a/kissfft b/kissfft deleted file mode 160000 index d74fd2a..0000000 --- a/kissfft +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d74fd2adaffdf4489441a12e0258423b9f5b8e12 diff --git a/src/SEQ3.cpp b/src/SEQ3.cpp index dbbc877..cc06146 100644 --- a/src/SEQ3.cpp +++ b/src/SEQ3.cpp @@ -110,7 +110,7 @@ void SEQ3::step() { } else { // Internal clock - float clockTime = powf(1/2.0, params[CLOCK_PARAM] + getf(inputs[CLOCK_INPUT])); + float clockTime = powf(2.0, params[CLOCK_PARAM] + getf(inputs[CLOCK_INPUT])); phase += clockTime / gSampleRate; if (phase >= 1.0) { phase -= 1.0; @@ -154,7 +154,7 @@ void SEQ3::step() { float row1 = params[ROW1_PARAM + index]; float row2 = params[ROW2_PARAM + index]; float row3 = params[ROW3_PARAM + index]; - float gates = (gateState[index] >= 1.0) ? 10.0 : 0.0; + float gates = (gateState[index] >= 1.0) ^ nextStep ? 10.0 : 0.0; setf(outputs[ROW1_OUTPUT], row1); setf(outputs[ROW2_OUTPUT], row2); setf(outputs[ROW3_OUTPUT], row3); @@ -183,7 +183,7 @@ SEQ3Widget::SEQ3Widget() { addChild(createScrew(Vec(15, 365))); addChild(createScrew(Vec(box.size.x-30, 365))); - addParam(createParam(Vec(17, 56), module, SEQ3::CLOCK_PARAM, -6.0, 2.0, -2.0)); + addParam(createParam(Vec(17, 56), module, SEQ3::CLOCK_PARAM, -2.0, 6.0, 2.0)); addParam(createParam(Vec(60, 61-1), module, SEQ3::RUN_PARAM, 0.0, 1.0, 0.0)); addChild(createValueLight>(Vec(60+5, 61+4), &module->runningLight)); addParam(createParam(Vec(98, 61-1), module, SEQ3::RESET_PARAM, 0.0, 1.0, 0.0));