1 /* 2 * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch) 3 * 4 * This is free software: you can redistribute it and/or modify 5 * it under the terms of the Artistic License 2.0 as published by 6 * The Perl Foundation. 7 * 8 * This source is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * Artistic License 2.0 for more details. 12 * 13 * You should have received a copy of the Artistic License 2.0 14 * along the source as a COPYING file. If not, obtain it from 15 * http://www.perlfoundation.org/artistic_license_2_0. 16 */ 17 18 #include <espressivo.h> 19 20 #ifdef _WIN32 21 __declspec(dllexport) 22 #else 23 __attribute__((visibility("default"))) 24 #endif 25 const LV2_Descriptor* lv2_descriptor(uint32_t index)26lv2_descriptor(uint32_t index) 27 { 28 switch(index) 29 { 30 case 0: 31 return &tuio2_in; 32 case 1: 33 return &midi_in; 34 case 2: 35 return &mpe_out; 36 case 3: 37 return &snh; 38 case 4: 39 return &sc_out; 40 case 5: 41 return &through; 42 case 6: 43 return &reducto; 44 case 7: 45 return &discreto; 46 case 8: 47 return &mpe_in; 48 case 9: 49 return &tuio2_out; 50 case 10: 51 return &chord; 52 case 11: 53 return &sqew; 54 case 12: 55 return &monitor_out; 56 case 13: 57 return &modulator; 58 case 14: 59 return &redirector; 60 case 15: 61 return &midi_out; 62 default: 63 return NULL; 64 } 65 } 66