1 /*
2 
3     (c) Fraser Stuart 2009
4 
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9 
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14 
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 
19 */
20 
21 
22 #define IDELAY_GUI_URI		"http://invadarecords.com/plugins/lv2/delay/gui"
23 #define IDELAY_MONO_URI		"http://invadarecords.com/plugins/lv2/delay/mono"
24 #define IDELAY_SUM_URI		"http://invadarecords.com/plugins/lv2/delay/sum"
25 #define IDELAY_BYPASS		0
26 #define IDELAY_MODE		1
27 #define IDELAY_MUNGEMODE	2
28 #define IDELAY_MUNGE 		3
29 #define IDELAY_LFO_CYCLE	4
30 #define IDELAY_LFO_WIDTH 	5
31 #define IDELAY_1_DELAY		6
32 #define IDELAY_1_FB 		7
33 #define IDELAY_1_PAN 		8
34 #define IDELAY_1_VOL 		9
35 #define IDELAY_2_DELAY		10
36 #define IDELAY_2_FB 		11
37 #define IDELAY_2_PAN 		12
38 #define IDELAY_2_VOL 		13
39 #define IDELAY_METER_INL   	14
40 #define IDELAY_METER_OUTL 	15
41 #define IDELAY_METER_OUTR 	16
42 #define IDELAY_LAMP_LFO		17
43 #define IDELAY_AUDIO_INL  	18
44 #define IDELAY_AUDIO_OUTL 	19
45 #define IDELAY_AUDIO_OUTR 	20
46 #define IDELAY_AUDIO_INR  	21   /* not used in mono in mode */
47 
48 #define IDELAY_SPACE_SIZE 2501   /* size in milli seconds */
49 
50 /* control conversion function */
51 float convertParam(unsigned long param, float value, double sr);
52 
53 /* munge conversion */
54 float convertMunge(unsigned int mode, float munge, double sr);
55 
56