they needtags/v0.4.0
@@ -1,18 +0,0 @@ | |||||
#pragma once | |||||
#include "dsp/frame.hpp" | |||||
#include "dsp/fft.hpp" | |||||
#include "dsp/ode.hpp" | |||||
#include "dsp/ringbuffer.hpp" | |||||
#include "dsp/samplerate.hpp" | |||||
#include "dsp/fir.hpp" | |||||
#include "dsp/decimator.hpp" | |||||
#include "dsp/filter.hpp" | |||||
#include "dsp/minblep.hpp" | |||||
#include "dsp/digital.hpp" | |||||
#include <assert.h> | |||||
#include <string.h> | |||||
#include <complex> | |||||
#include "math.hpp" |
@@ -1,5 +1,7 @@ | |||||
#pragma once | #pragma once | ||||
#include "string.h" | |||||
#include "dsp/ringbuffer.hpp" | |||||
#include "dsp/fir.hpp" | #include "dsp/fir.hpp" | ||||
@@ -21,7 +23,10 @@ struct Decimator { | |||||
for (int i = 0; i < OVERSAMPLE*QUALITY; i++) { | for (int i = 0; i < OVERSAMPLE*QUALITY; i++) { | ||||
kernel[i] /= sum; | kernel[i] /= sum; | ||||
} | } | ||||
// Zero input buffer | |||||
memset(inBuffer.data, 0, sizeof(inBuffer.data)); | |||||
} | } | ||||
/** `in` must be OVERSAMPLE floats long */ | |||||
float process(float *in) { | float process(float *in) { | ||||
memcpy(inBuffer.endData(), in, OVERSAMPLE*sizeof(float)); | memcpy(inBuffer.endData(), in, OVERSAMPLE*sizeof(float)); | ||||
inBuffer.endIncr(OVERSAMPLE); | inBuffer.endIncr(OVERSAMPLE); | ||||
@@ -2,6 +2,7 @@ | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <samplerate.h> | #include <samplerate.h> | ||||
#include "frame.hpp" | |||||
namespace rack { | namespace rack { | ||||
@@ -7,7 +7,6 @@ | |||||
#include "gui.hpp" | #include "gui.hpp" | ||||
#include "app.hpp" | #include "app.hpp" | ||||
#include "components.hpp" | #include "components.hpp" | ||||
#include "dsp.hpp" | |||||
#include "asset.hpp" | #include "asset.hpp" | ||||
@@ -3,7 +3,9 @@ | |||||
#include <thread> | #include <thread> | ||||
#include <portaudio.h> | #include <portaudio.h> | ||||
#include "core.hpp" | #include "core.hpp" | ||||
#include "dsp.hpp" | |||||
#include "dsp/samplerate.hpp" | |||||
#include "dsp/ringbuffer.hpp" | |||||
using namespace rack; | using namespace rack; | ||||
@@ -4,7 +4,8 @@ | |||||
#include "rtmidi/RtMidi.h" | #include "rtmidi/RtMidi.h" | ||||
#include "core.hpp" | #include "core.hpp" | ||||
#include "gui.hpp" | #include "gui.hpp" | ||||
#include "../../include/engine.hpp" | |||||
#include "engine.hpp" | |||||
#include "dsp/digital.hpp" | |||||
using namespace rack; | using namespace rack; | ||||