1 /* Calf DSP plugin pack
2 * LADSPA/DSSI/LV2 wrapper instantiation for all plugins
4 * Copyright (C) 2001-2010 Krzysztof Foltman
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General
17 * Public License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #include <calf/lv2wrap.h>
23 #include <calf/modules_tools.h>
24 #include <calf/modules_delay.h>
25 #include <calf/modules_comp.h>
26 #include <calf/modules_limit.h>
27 #include <calf/modules_dev.h>
28 #include <calf/modules_dist.h>
29 #include <calf/modules_filter.h>
30 #include <calf/modules_mod.h>
31 #include <calf/modules_synths.h>
32 #include <calf/organ.h>
34 using namespace calf_plugins
;
36 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
39 // instantiate descriptor templates
40 template<class Module
> LV2_Descriptor
calf_plugins::lv2_wrapper
<Module
>::descriptor
;
41 template<class Module
> LV2_Calf_Descriptor
calf_plugins::lv2_wrapper
<Module
>::calf_descriptor
;
42 template<class Module
> LV2_State_Interface
calf_plugins::lv2_wrapper
<Module
>::state_iface
;
46 const LV2_Descriptor
*lv2_descriptor(uint32_t index
)
48 #define PER_MODULE_ITEM(name, isSynth, jackname) if (!(index--)) return &lv2_wrapper<name##_audio_module>::get().descriptor;
49 #include <calf/modulelist.h>
61 audio_module_iface
*create_calf_plugin_by_name(const char *effect_name
)
63 #define PER_MODULE_ITEM(name, isSynth, jackname) if (!strcasecmp(effect_name, jackname)) return new name##_audio_module;
64 #include <calf/modulelist.h>