blob: d4aa0548a7f7ffa00410b42dfd44fdf5ebe8944e (
plain) (
tree)
|
|
#include "Remap.h"
#include <iostream>
#include <lv2wrapper.h>
Remap::Remap(double rate)
: LV2Plugin(rate)
{
}
void Remap::activate()
{
A = 0.5;
B = 1.0;
C = 1.0;
fpd = 17;
//this is reset: values being initialized only once. Startup values, whatever they are.
}
void Remap::run(uint32_t num_samples)
{
A = *params[0];
B = *params[1];
C = *params[2];
processReplacing(const_cast<float **>(in), out, num_samples);
}
//
// Include the processing code from the VST version.
//
#include <cmath>
#include "../../../LinuxVST/src/Remap/RemapProc.cpp"
// Create the LV2Wrapper and register the plugin
LV2Wrapper<Remap> plugin;
|