#include "PeaksOnly.h" #include #include 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(in), out, num_samples); } // // Include the processing code from the VST version. // #include #include "../../../LinuxVST/src/PeaksOnly/PeaksOnlyProc.cpp" // Create the LV2Wrapper and register the plugin LV2Wrapper plugin;