aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/src/PodcastDeluxe/PodcastDeluxe.cpp
blob: 607b4e2418e83971a833d573cb6251ab45cbfaf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "PodcastDeluxe.h"
#include <iostream>
#include <lv2wrapper.h>

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

void PodcastDeluxe::activate()
{
	A = 0.5;
	
	for(int count = 0; count < 502; count++) {
		d1L[count] = 0.0;
		d2L[count] = 0.0;
		d3L[count] = 0.0;
		d4L[count] = 0.0;
		d5L[count] = 0.0;
		d1R[count] = 0.0;
		d2R[count] = 0.0;
		d3R[count] = 0.0;
		d4R[count] = 0.0;
		d5R[count] = 0.0;
	}
	c1L = 2.0; c2L = 2.0; c3L = 2.0; c4L = 2.0; c5L = 2.0; //startup comp gains	

	tap1 = 1; tap2 = 1; tap3 = 1; tap4 = 1; tap5 = 1;
	maxdelay1 = 9001; maxdelay2 = 9001; maxdelay3 = 9001; maxdelay4 = 9001; maxdelay5 = 9001;
	c1R = 2.0; c2R = 2.0; c3R = 2.0; c4R = 2.0; c5R = 2.0; //startup comp gains	
	
	fpd = 17;
	//this is reset: values being initialized only once. Startup values, whatever they are.
	
}

void PodcastDeluxe::run(uint32_t num_samples)
{
    A = *params[0];

    processReplacing(const_cast<float **>(in), out, num_samples);
}

//
// Include the processing code from the VST version.
//
#include <cmath>
#include "../../../LinuxVST/src/PodcastDeluxe/PodcastDeluxeProc.cpp"

// Create the LV2Wrapper and register the plugin
LV2Wrapper<PodcastDeluxe> plugin;