aboutsummaryrefslogblamecommitdiffstats
path: root/plugins/LV2/src/Acceleration/Acceleration.cpp
blob: 34995377e9def5daf5a9f09fa89803ed44ef438e (plain) (tree)
1
2
3
4
5
6
7
8
9
                         
                   
                       
 
                                       
                     
 

 
 
                                            
 


                   
                                                                 
 

  



                                                                  


                                                
#include "Acceleration.h"
#include <iostream>
#include <lv2wrapper.h>

Acceleration::Acceleration(double rate)
    : LV2Plugin(rate)
{
}


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;