aboutsummaryrefslogtreecommitdiff
path: root/espressivo.c
blob: 11081efdf48a6cf76ec0cffb960c1a1e87b592b9 (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
 *
 * This is free software: you can redistribute it and/or modify
 * it under the terms of the Artistic License 2.0 as published by
 * The Perl Foundation.
 *
 * This source is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * Artistic License 2.0 for more details.
 *
 * You should have received a copy of the Artistic License 2.0
 * along the source as a COPYING file. If not, obtain it from
 * http://www.perlfoundation.org/artistic_license_2_0.
 */

#include <espressivo.h>

#ifdef _WIN32
__declspec(dllexport)
#else
__attribute__((visibility("default")))
#endif
const LV2_Descriptor*
lv2_descriptor(uint32_t index)
{
	switch(index)
	{
		case 0:
			return &tuio2_in;
		case 1:
			return &midi_in;
		case 2:
			return &mpe_out;
		case 3:
			return &snh;
		case 4:
			return &sc_out;
		case 5:
			return &through;
		case 6:
			return &reducto;
		case 7:
			return &discreto;
		case 8:
			return &mpe_in;
		case 9:
			return &tuio2_out;
		case 10:
			return &chord;
		case 11:
			return &sqew;
		case 12:
			return &monitor_out;
		case 13:
			return &modulator;
		case 14:
			return &redirector;
		case 15:
			return &midi_out;
		default:
			return NULL;
	}
}