diff options
Diffstat (limited to 'plugins/LV2/src/PeaksOnly/PeaksOnly.cpp')
-rw-r--r-- | plugins/LV2/src/PeaksOnly/PeaksOnly.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/LV2/src/PeaksOnly/PeaksOnly.cpp b/plugins/LV2/src/PeaksOnly/PeaksOnly.cpp new file mode 100644 index 0000000..8a48cf6 --- /dev/null +++ b/plugins/LV2/src/PeaksOnly/PeaksOnly.cpp @@ -0,0 +1,33 @@ +#include "PeaksOnly.h" +#include <iostream> +#include <lv2wrapper.h> + +PeaksOnly::PeaksOnly(double rate) + : LV2Plugin(rate) +{ +} + +void PeaksOnly::activate() +{ + for(int count = 0; count < 1502; count++) {aL[count] = 0.0; bL[count] = 0.0; cL[count] = 0.0; dL[count] = 0.0;aR[count] = 0.0; bR[count] = 0.0; cR[count] = 0.0; dR[count] = 0.0;} + ax = 1; bx = 1; cx = 1; dx = 1; + fpd = 17; + //this is reset: values being initialized only once. Startup values, whatever they are. + +} + +void PeaksOnly::run(uint32_t num_samples) +{ + + + processReplacing(const_cast<float **>(in), out, num_samples); +} + +// +// Include the processing code from the VST version. +// +#include <cmath> +#include "../../../LinuxVST/src/PeaksOnly/PeaksOnlyProc.cpp" + +// Create the LV2Wrapper and register the plugin +LV2Wrapper<PeaksOnly> plugin; |