blob: 429a6dba7e9047a883b06c2587ab19e567c99c11 (
plain) (
tree)
|
|
#include "Acceleration.h"
#include <iostream>
#include <lv2wrapper.h>
Acceleration::Acceleration(double rate)
: LV2Plugin(rate)
{
}
void Acceleration::activate()
{
ataLastOutL = 0.0;
s1L = s2L = s3L = 0.0;
o1L = o2L = o3L = 0.0;
m1L = m2L = desL = 0.0;
ataLastOutR = 0.0;
s1R = s2R = s3R = 0.0;
o1R = o2R = o3R = 0.0;
m1R = m2R = desR = 0.0;
fpNShapeL = 0.0;
fpNShapeR = 0.0;
}
void Acceleration::run(uint32_t num_samples)
{
A = *params[0];
B = *params[1];
processReplacing(const_cast<float **>(in), out, num_samples);
}
//
// Include the processing code from the VST version.
//
#include <cmath>
#include "../../../LinuxVST/src/Acceleration/AccelerationProc.cpp"
// Create the LV2Wrapper and register the plugin
LV2Wrapper<Acceleration> accel;
|