Loading...
Searching...
No Matches
ladspaback.h
Go to the documentation of this file.
/*
* Copyright (C) 2012, 2013 Andreas Degert, Hermann Meyer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <ladspa.h>
namespace ladspa {
/****************************************************************
** PortDesc
*/
enum DisplayType {
tp_scale, tp_scale_log, tp_toggle, tp_enum, tp_display, tp_display_toggle, tp_none, tp_int, tp_enabled, tp_atom,
};
class ChangeableValues {
public:
enum { name_set = 0x01, dflt_set = 0x02, low_set = 0x04, up_set = 0x08, tp_set = 0x10, newrow_set = 0x20 };
private:
Glib::ustring name;
float dflt;
float low;
float up;
DisplayType tp;
std::map<int, Glib::ustring> enumdict;
bool newrow;
int set_flags;
inline void sf(int f) { set_flags |= f; }
friend bool operator!=(const ChangeableValues& v1, const ChangeableValues& v2);
public:
ChangeableValues(): name(), dflt(), low(), up(), tp(tp_scale), enumdict(), newrow(), set_flags(0) {}
ChangeableValues(gx_system::JsonParser& jp);
void serializeJSON(gx_system::JsonWriter& jw);
int get_excl_flags(DisplayType tp) const;
bool has_settings(DisplayType tp) const;
inline bool is_set(int f) const { return set_flags & f; }
inline void unset(int f) { set_flags &= ~f; }
inline void set_name(const Glib::ustring& nm) { name = nm; sf(name_set); }
inline void set_dflt(float v) { dflt = v; sf(dflt_set); }
inline void set_low(float v) { low = v; sf(low_set); }
inline void set_up(float v) { up = v; sf(up_set); }
inline void set_tp(DisplayType v) { tp = v; sf(tp_set); }
inline void set_newrow(bool v) { newrow = v; sf(newrow_set); }
inline const Glib::ustring& get_name() { return name; }
inline float get_dflt() { return dflt; }
inline float get_low() { return low; }
inline float get_up() { return up; }
inline DisplayType get_tp() { return tp; }
inline bool get_newrow() { return newrow; }
inline bool has_enumkey(int k) { return enumdict.find(k) != enumdict.end(); }
void set_enumvalue(int k, const Glib::ustring& v) { enumdict[k] = v; }
inline std::map<int, Glib::ustring>::iterator find_enum(int k) { return enumdict.find(k); }
inline void erase_enum(int k) { enumdict.erase(enumdict.find(k)); }
inline std::map<int, Glib::ustring>::iterator enum_end() { return enumdict.end(); }
};
enum step_mode {
stp_coarse,
stp_normal,
stp_fine,
};
class PortDesc {
private:
public:
int idx;
int pos;
bool is_output;
LADSPA_PortRangeHintDescriptor hint_desc;
bool fake_low;
bool fake_up;
bool fake_dflt;
step_mode step;
bool use_sr;
bool has_sr;
bool has_caption;
ChangeableValues factory;
ChangeableValues user;
static const int SR = 44100;
public:
void set_range_default(const LADSPA_PortRangeHint& h, ChangeableValues& store);
void set_default_value(const LADSPA_PortRangeHint& h, ChangeableValues& store);
void set_tp_default(const LADSPA_PortRangeHint& h, ChangeableValues& store);
float calc_step();
void set_default(float value, Glib::ustring label);
void output(gx_system::JsonWriter& jw);
friend bool cmp_ctrl_ports(const PortDesc *a, const PortDesc *b);
public:
PortDesc(int idx_, int pos_, bool is_output_, Glib::ustring name, const LADSPA_PortRangeHint& hint);
PortDesc(gx_system::JsonParser& jp);
void serializeJSON(gx_system::JsonWriter& jw);
void reset();
void fixup(bool newrow);
bool check_changed(const PortDesc& vp) const;
Glib::ustring get_enum(int idx);
inline DisplayType get_tp() { return user.is_set(ChangeableValues::tp_set) ? user.get_tp() : factory.get_tp(); }
inline float get_low() { return user.is_set(ChangeableValues::low_set) ? user.get_low() : factory.get_low(); }
inline float get_up() { return user.is_set(ChangeableValues::up_set) ? user.get_up() : factory.get_up(); }
inline float get_dflt() { return user.is_set(ChangeableValues::dflt_set) ? user.get_dflt() : factory.get_dflt(); }
inline bool get_newrow() { return user.is_set(ChangeableValues::newrow_set) ? user.get_newrow() : factory.get_newrow(); }
const Glib::ustring& get_name() { return user.is_set(ChangeableValues::name_set) ? user.get_name() : factory.get_name(); }
inline int get_pos() { return pos; }
void set_low(float v);
void set_up(float v);
void set_dflt(float v);
void set_tp(DisplayType v);
void set_newrow(bool v);
bool has_settings();
bool enumkey_changed(int k) { return user.has_enumkey(k); }
bool is_set(int f) { return user.is_set(f); }
void set_state(gx_system::JsonParser& jp, int version);
};
/****************************************************************
** class PluginDesc
*/
class PluginDesc {
public:
unsigned long UniqueID;
Glib::ustring Label;
Glib::ustring Name;
Glib::ustring shortname;
Glib::ustring Maker;
int MasterIdx;
Glib::ustring MasterLabel;
int tp;
std::vector<PortDesc*> ctrl_ports;
std::string path;
int index;
Glib::ustring category;
Glib::ustring deduced_category;
int quirks;
int quirks_default;
bool is_lv2;
std::string ladspa_category;
bool active;
bool active_set;
bool has_settings;
int add_wet_dry;
int stereo_to_mono;
PluginDesc *old;
public:
int quirks_get();
void reset();
bool check_changed();
bool _i_check_has_settings();
void check_has_settings();
int set_active(bool v);
void fixup();
void set_add_wet_dry_controller(bool v);
void set_stereo_to_mono(bool v);
void copy_ports(PluginDesc *p);
void set_category(const std::vector<Glib::ustring>& s);
void set_default(int idx, float value, const Glib::ustring& label);
void set_state(const Glib::ustring& fname);
private:
PluginDesc(const LADSPA_Descriptor& desc, int tp_, std::vector<PortDesc*>& ctrl_ports_, const std::string path_, int index_);
PluginDesc(LilvWorld *world, const LilvPlugin* plugin, int tp_, std::vector<PortDesc*>& ctrl_ports_);
PluginDesc(gx_system::JsonParser& jp);
~PluginDesc();
void serializeJSON(gx_system::JsonWriter& jw);
friend class LadspaPluginList;
public:
void set_old();
void clear_old() { delete old; old = 0; }
void output_entry(gx_system::JsonWriter& jw);
void output(gx_system::JsonWriter& jw);
};
/****************************************************************
** class LadspaPluginList
*/
struct LV2Preset {
std::string sname;
std::vector<PortDesc*> ctrl_ports;
LilvPlugin* plugin;
unsigned int num_ports;
std::string cline;
bool has_preset;
};
class LadspaPluginList: private std::vector<PluginDesc*> {
private:
typedef std::map<std::string, PluginDesc*> pluginmap;
LilvWorld* world;
const LilvPlugins* lv2_plugins;
LilvNode* lv2_AudioPort;
LilvNode* lv2_ControlPort;
LilvNode* lv2_InputPort;
LilvNode* lv2_OutputPort;
LilvNode* lv2_connectionOptional;
LilvNode* lv2_AtomPort;
private:
bool feature_is_supported(const char* uri);
static void get_preset_values(const char* port_symbol, void* user_data, const void* value, uint32_t size, uint32_t type);
static void set_preset_values(Glib::ustring port_symbol, LV2Preset* pdata, Glib::ustring value);
static inline std::string make_key(unsigned long unique_id) { return "ladspa://" + gx_system::to_string(unique_id); }
static void add_plugin(const LADSPA_Descriptor& desc, pluginmap& d, const std::string& path, int index);
static void load_defs(const std::string& path, pluginmap& d);
static void set_instances(const char *uri, pluginmap& d, std::vector<Glib::ustring>& label,
std::vector<unsigned long>& not_found, std::set<unsigned long>& seen);
static void descend(const char *uri, pluginmap& d,
std::vector<unsigned long>& not_found, std::set<unsigned long>& seen,
std::vector<Glib::ustring>& base);
void add_plugin(const LilvPlugin* plugin, pluginmap& d, gx_system::CmdlineOptions& options);
void lv2_load(pluginmap& d, gx_system::CmdlineOptions& options);
void get_presets(LV2Preset *pdata);
public:
LadspaPluginList();
~LadspaPluginList();
LV2Preset pdata;
void readJSON(gx_system::JsonParser& jp);
void writeJSON(gx_system::JsonWriter& jw);
void load(gx_system::CmdlineOptions& options, std::vector<std::string>& old_not_found);
void save(gx_system::CmdlineOptions& options);
using std::vector<PluginDesc*>::begin;
using std::vector<PluginDesc*>::end;
};
} // namespace ladspa
gx_system::CmdlineOptions
Definition gx_system.h:395
gx_system::JsonParser
Definition gx_json.h:112
gx_system::JsonWriter
Definition gx_json.h:55
ladspa::ChangeableValues
Definition ladspaback.h:31
ladspa::ChangeableValues::has_settings
bool has_settings(DisplayType tp) const
ladspa::ChangeableValues::get_name
const Glib::ustring & get_name()
Definition ladspaback.h:59
ladspa::ChangeableValues::serializeJSON
void serializeJSON(gx_system::JsonWriter &jw)
ladspa::ChangeableValues::sf
void sf(int f)
Definition ladspaback.h:43
ladspa::ChangeableValues::get_dflt
float get_dflt()
Definition ladspaback.h:60
ladspa::ChangeableValues::set_flags
int set_flags
Definition ladspaback.h:42
ladspa::ChangeableValues::up
float up
Definition ladspaback.h:38
ladspa::ChangeableValues::ChangeableValues
ChangeableValues(gx_system::JsonParser &jp)
ladspa::ChangeableValues::is_set
bool is_set(int f) const
Definition ladspaback.h:51
ladspa::ChangeableValues::newrow
bool newrow
Definition ladspaback.h:41
ladspa::ChangeableValues::dflt
float dflt
Definition ladspaback.h:36
ladspa::ChangeableValues::set_enumvalue
void set_enumvalue(int k, const Glib::ustring &v)
Definition ladspaback.h:66
ladspa::ChangeableValues::get_newrow
bool get_newrow()
Definition ladspaback.h:64
ladspa::ChangeableValues::get_excl_flags
int get_excl_flags(DisplayType tp) const
ladspa::ChangeableValues::enumdict
std::map< int, Glib::ustring > enumdict
Definition ladspaback.h:40
ladspa::ChangeableValues::has_enumkey
bool has_enumkey(int k)
Definition ladspaback.h:65
ladspa::ChangeableValues::erase_enum
void erase_enum(int k)
Definition ladspaback.h:68
ladspa::ChangeableValues::tp
DisplayType tp
Definition ladspaback.h:39
ladspa::ChangeableValues::set_low
void set_low(float v)
Definition ladspaback.h:55
ladspa::ChangeableValues::find_enum
std::map< int, Glib::ustring >::iterator find_enum(int k)
Definition ladspaback.h:67
ladspa::ChangeableValues::name
Glib::ustring name
Definition ladspaback.h:35
ladspa::ChangeableValues::get_low
float get_low()
Definition ladspaback.h:61
ladspa::ChangeableValues::get_up
float get_up()
Definition ladspaback.h:62
ladspa::ChangeableValues::enum_end
std::map< int, Glib::ustring >::iterator enum_end()
Definition ladspaback.h:69
ladspa::ChangeableValues::low
float low
Definition ladspaback.h:37
ladspa::ChangeableValues::set_dflt
void set_dflt(float v)
Definition ladspaback.h:54
ladspa::ChangeableValues::ChangeableValues
ChangeableValues()
Definition ladspaback.h:46
ladspa::ChangeableValues::set_newrow
void set_newrow(bool v)
Definition ladspaback.h:58
ladspa::ChangeableValues::get_tp
DisplayType get_tp()
Definition ladspaback.h:63
ladspa::ChangeableValues::operator!=
friend bool operator!=(const ChangeableValues &v1, const ChangeableValues &v2)
ladspa::ChangeableValues::set_up
void set_up(float v)
Definition ladspaback.h:56
ladspa::ChangeableValues::low_set
@ low_set
Definition ladspaback.h:33
ladspa::ChangeableValues::up_set
@ up_set
Definition ladspaback.h:33
ladspa::ChangeableValues::newrow_set
@ newrow_set
Definition ladspaback.h:33
ladspa::ChangeableValues::tp_set
@ tp_set
Definition ladspaback.h:33
ladspa::ChangeableValues::name_set
@ name_set
Definition ladspaback.h:33
ladspa::ChangeableValues::dflt_set
@ dflt_set
Definition ladspaback.h:33
ladspa::ChangeableValues::set_tp
void set_tp(DisplayType v)
Definition ladspaback.h:57
ladspa::ChangeableValues::set_name
void set_name(const Glib::ustring &nm)
Definition ladspaback.h:53
ladspa::ChangeableValues::unset
void unset(int f)
Definition ladspaback.h:52
ladspa::LadspaPluginList::descend
static void descend(const char *uri, pluginmap &d, std::vector< unsigned long > &not_found, std::set< unsigned long > &seen, std::vector< Glib::ustring > &base)
ladspa::LadspaPluginList::readJSON
void readJSON(gx_system::JsonParser &jp)
ladspa::LadspaPluginList::get_presets
void get_presets(LV2Preset *pdata)
ladspa::LadspaPluginList::add_plugin
static void add_plugin(const LADSPA_Descriptor &desc, pluginmap &d, const std::string &path, int index)
ladspa::LadspaPluginList::lv2_OutputPort
LilvNode * lv2_OutputPort
Definition ladspaback.h:209
ladspa::LadspaPluginList::lv2_load
void lv2_load(pluginmap &d, gx_system::CmdlineOptions &options)
ladspa::LadspaPluginList::set_preset_values
static void set_preset_values(Glib::ustring port_symbol, LV2Preset *pdata, Glib::ustring value)
ladspa::LadspaPluginList::~LadspaPluginList
~LadspaPluginList()
ladspa::LadspaPluginList::lv2_InputPort
LilvNode * lv2_InputPort
Definition ladspaback.h:208
ladspa::LadspaPluginList::lv2_connectionOptional
LilvNode * lv2_connectionOptional
Definition ladspaback.h:210
ladspa::LadspaPluginList::pluginmap
std::map< std::string, PluginDesc * > pluginmap
Definition ladspaback.h:203
ladspa::LadspaPluginList::set_instances
static void set_instances(const char *uri, pluginmap &d, std::vector< Glib::ustring > &label, std::vector< unsigned long > &not_found, std::set< unsigned long > &seen)
ladspa::LadspaPluginList::pdata
LV2Preset pdata
Definition ladspaback.h:230
ladspa::LadspaPluginList::load
void load(gx_system::CmdlineOptions &options, std::vector< std::string > &old_not_found)
ladspa::LadspaPluginList::LadspaPluginList
LadspaPluginList()
ladspa::LadspaPluginList::make_key
static std::string make_key(unsigned long unique_id)
Definition ladspaback.h:216
ladspa::LadspaPluginList::writeJSON
void writeJSON(gx_system::JsonWriter &jw)
ladspa::LadspaPluginList::load_defs
static void load_defs(const std::string &path, pluginmap &d)
ladspa::LadspaPluginList::get_preset_values
static void get_preset_values(const char *port_symbol, void *user_data, const void *value, uint32_t size, uint32_t type)
ladspa::LadspaPluginList::lv2_plugins
const LilvPlugins * lv2_plugins
Definition ladspaback.h:205
ladspa::LadspaPluginList::add_plugin
void add_plugin(const LilvPlugin *plugin, pluginmap &d, gx_system::CmdlineOptions &options)
ladspa::LadspaPluginList::lv2_AudioPort
LilvNode * lv2_AudioPort
Definition ladspaback.h:206
ladspa::LadspaPluginList::feature_is_supported
bool feature_is_supported(const char *uri)
ladspa::LadspaPluginList::save
void save(gx_system::CmdlineOptions &options)
ladspa::LadspaPluginList::world
LilvWorld * world
Definition ladspaback.h:204
ladspa::LadspaPluginList::lv2_AtomPort
LilvNode * lv2_AtomPort
Definition ladspaback.h:211
ladspa::LadspaPluginList::lv2_ControlPort
LilvNode * lv2_ControlPort
Definition ladspaback.h:207
ladspa::PluginDesc
Definition ladspaback.h:134
ladspa::PluginDesc::active_set
bool active_set
Definition ladspaback.h:154
ladspa::PluginDesc::quirks_get
int quirks_get()
ladspa::PluginDesc::PluginDesc
PluginDesc(gx_system::JsonParser &jp)
ladspa::PluginDesc::tp
int tp
Definition ladspaback.h:143
ladspa::PluginDesc::LadspaPluginList
friend class LadspaPluginList
Definition ladspaback.h:179
ladspa::PluginDesc::reset
void reset()
ladspa::PluginDesc::set_old
void set_old()
ladspa::PluginDesc::shortname
Glib::ustring shortname
Definition ladspaback.h:139
ladspa::PluginDesc::output_entry
void output_entry(gx_system::JsonWriter &jw)
ladspa::PluginDesc::set_category
void set_category(const std::vector< Glib::ustring > &s)
ladspa::PluginDesc::Name
Glib::ustring Name
Definition ladspaback.h:138
ladspa::PluginDesc::set_add_wet_dry_controller
void set_add_wet_dry_controller(bool v)
ladspa::PluginDesc::output
void output(gx_system::JsonWriter &jw)
ladspa::PluginDesc::Maker
Glib::ustring Maker
Definition ladspaback.h:140
ladspa::PluginDesc::is_lv2
bool is_lv2
Definition ladspaback.h:151
ladspa::PluginDesc::PluginDesc
PluginDesc(LilvWorld *world, const LilvPlugin *plugin, int tp_, std::vector< PortDesc * > &ctrl_ports_)
ladspa::PluginDesc::has_settings
bool has_settings
Definition ladspaback.h:155
ladspa::PluginDesc::set_active
int set_active(bool v)
ladspa::PluginDesc::fixup
void fixup()
ladspa::PluginDesc::category
Glib::ustring category
Definition ladspaback.h:147
ladspa::PluginDesc::ladspa_category
std::string ladspa_category
Definition ladspaback.h:152
ladspa::PluginDesc::PluginDesc
PluginDesc(const LADSPA_Descriptor &desc, int tp_, std::vector< PortDesc * > &ctrl_ports_, const std::string path_, int index_)
ladspa::PluginDesc::MasterLabel
Glib::ustring MasterLabel
Definition ladspaback.h:142
ladspa::PluginDesc::quirks
int quirks
Definition ladspaback.h:149
ladspa::PluginDesc::quirks_default
int quirks_default
Definition ladspaback.h:150
ladspa::PluginDesc::Label
Glib::ustring Label
Definition ladspaback.h:137
ladspa::PluginDesc::path
std::string path
Definition ladspaback.h:145
ladspa::PluginDesc::set_state
void set_state(const Glib::ustring &fname)
ladspa::PluginDesc::MasterIdx
int MasterIdx
Definition ladspaback.h:141
ladspa::PluginDesc::_i_check_has_settings
bool _i_check_has_settings()
ladspa::PluginDesc::active
bool active
Definition ladspaback.h:153
ladspa::PluginDesc::copy_ports
void copy_ports(PluginDesc *p)
ladspa::PluginDesc::UniqueID
unsigned long UniqueID
Definition ladspaback.h:136
ladspa::PluginDesc::stereo_to_mono
int stereo_to_mono
Definition ladspaback.h:157
ladspa::PluginDesc::add_wet_dry
int add_wet_dry
Definition ladspaback.h:156
ladspa::PluginDesc::old
PluginDesc * old
Definition ladspaback.h:158
ladspa::PluginDesc::check_changed
bool check_changed()
ladspa::PluginDesc::~PluginDesc
~PluginDesc()
ladspa::PluginDesc::check_has_settings
void check_has_settings()
ladspa::PluginDesc::index
int index
Definition ladspaback.h:146
ladspa::PluginDesc::ctrl_ports
std::vector< PortDesc * > ctrl_ports
Definition ladspaback.h:144
ladspa::PluginDesc::serializeJSON
void serializeJSON(gx_system::JsonWriter &jw)
ladspa::PluginDesc::deduced_category
Glib::ustring deduced_category
Definition ladspaback.h:148
ladspa::PluginDesc::set_stereo_to_mono
void set_stereo_to_mono(bool v)
ladspa::PluginDesc::set_default
void set_default(int idx, float value, const Glib::ustring &label)
ladspa::PluginDesc::clear_old
void clear_old()
Definition ladspaback.h:182
ladspa::PortDesc::has_sr
bool has_sr
Definition ladspaback.h:90
ladspa::PortDesc::check_changed
bool check_changed(const PortDesc &vp) const
ladspa::PortDesc::calc_step
float calc_step()
ladspa::PortDesc::output
void output(gx_system::JsonWriter &jw)
ladspa::PortDesc::PortDesc
PortDesc(int idx_, int pos_, bool is_output_, Glib::ustring name, const LADSPA_PortRangeHint &hint)
ladspa::PortDesc::fake_up
bool fake_up
Definition ladspaback.h:86
ladspa::PortDesc::idx
int idx
Definition ladspaback.h:81
ladspa::PortDesc::reset
void reset()
ladspa::PortDesc::PortDesc
PortDesc(gx_system::JsonParser &jp)
ladspa::PortDesc::set_state
void set_state(gx_system::JsonParser &jp, int version)
ladspa::PortDesc::set_newrow
void set_newrow(bool v)
ladspa::PortDesc::set_tp
void set_tp(DisplayType v)
ladspa::PortDesc::set_tp_default
void set_tp_default(const LADSPA_PortRangeHint &h, ChangeableValues &store)
ladspa::PortDesc::set_up
void set_up(float v)
ladspa::PortDesc::set_default
void set_default(float value, Glib::ustring label)
ladspa::PortDesc::get_enum
Glib::ustring get_enum(int idx)
ladspa::PortDesc::get_low
float get_low()
Definition ladspaback.h:112
ladspa::PortDesc::cmp_ctrl_ports
friend bool cmp_ctrl_ports(const PortDesc *a, const PortDesc *b)
ladspa::PortDesc::fixup
void fixup(bool newrow)
ladspa::PortDesc::has_caption
bool has_caption
Definition ladspaback.h:91
ladspa::PortDesc::set_low
void set_low(float v)
ladspa::PortDesc::SR
static const int SR
Definition ladspaback.h:94
ladspa::PortDesc::get_tp
DisplayType get_tp()
Definition ladspaback.h:111
ladspa::PortDesc::get_newrow
bool get_newrow()
Definition ladspaback.h:115
ladspa::PortDesc::set_dflt
void set_dflt(float v)
ladspa::PortDesc::enumkey_changed
bool enumkey_changed(int k)
Definition ladspaback.h:124
ladspa::PortDesc::set_range_default
void set_range_default(const LADSPA_PortRangeHint &h, ChangeableValues &store)
ladspa::PortDesc::set_default_value
void set_default_value(const LADSPA_PortRangeHint &h, ChangeableValues &store)
ladspa::PortDesc::is_output
bool is_output
Definition ladspaback.h:83
ladspa::PortDesc::factory
ChangeableValues factory
Definition ladspaback.h:92
ladspa::PortDesc::fake_low
bool fake_low
Definition ladspaback.h:85
ladspa::PortDesc::fake_dflt
bool fake_dflt
Definition ladspaback.h:87
ladspa::PortDesc::serializeJSON
void serializeJSON(gx_system::JsonWriter &jw)
ladspa::PortDesc::user
ChangeableValues user
Definition ladspaback.h:93
ladspa::PortDesc::hint_desc
LADSPA_PortRangeHintDescriptor hint_desc
Definition ladspaback.h:84
ladspa::PortDesc::use_sr
bool use_sr
Definition ladspaback.h:89
ladspa::PortDesc::step
step_mode step
Definition ladspaback.h:88
ladspa::PortDesc::get_name
const Glib::ustring & get_name()
Definition ladspaback.h:116
ladspa::PortDesc::get_dflt
float get_dflt()
Definition ladspaback.h:114
ladspa::PortDesc::get_pos
int get_pos()
Definition ladspaback.h:117
ladspa::PortDesc::get_up
float get_up()
Definition ladspaback.h:113
ladspa::PortDesc::pos
int pos
Definition ladspaback.h:82
ladspa::PortDesc::has_settings
bool has_settings()
ladspa::PortDesc::is_set
bool is_set(int f)
Definition ladspaback.h:125
ladspa.h
LADSPA_PortRangeHint
struct _LADSPA_PortRangeHint LADSPA_PortRangeHint
LADSPA_PortRangeHintDescriptor
int LADSPA_PortRangeHintDescriptor
Definition ladspa.h:200
LADSPA_Descriptor
struct _LADSPA_Descriptor LADSPA_Descriptor
gx_system::to_string
std::string to_string(const T &t)
Definition gx_system.h:572
ladspa
Definition ladspaback.h:21
ladspa::step_mode
step_mode
Definition ladspaback.h:72
ladspa::stp_coarse
@ stp_coarse
Definition ladspaback.h:73
ladspa::stp_normal
@ stp_normal
Definition ladspaback.h:74
ladspa::stp_fine
@ stp_fine
Definition ladspaback.h:75
ladspa::DisplayType
DisplayType
Definition ladspaback.h:27
ladspa::tp_atom
@ tp_atom
Definition ladspaback.h:28
ladspa::tp_enum
@ tp_enum
Definition ladspaback.h:28
ladspa::tp_display
@ tp_display
Definition ladspaback.h:28
ladspa::tp_display_toggle
@ tp_display_toggle
Definition ladspaback.h:28
ladspa::tp_enabled
@ tp_enabled
Definition ladspaback.h:28
ladspa::tp_scale_log
@ tp_scale_log
Definition ladspaback.h:28
ladspa::tp_none
@ tp_none
Definition ladspaback.h:28
ladspa::tp_int
@ tp_int
Definition ladspaback.h:28
ladspa::tp_scale
@ tp_scale
Definition ladspaback.h:28
ladspa::tp_toggle
@ tp_toggle
Definition ladspaback.h:28
ladspa::LV2Preset
Definition ladspaback.h:191
ladspa::LV2Preset::num_ports
unsigned int num_ports
Definition ladspaback.h:195
ladspa::LV2Preset::has_preset
bool has_preset
Definition ladspaback.h:197
ladspa::LV2Preset::ctrl_ports
std::vector< PortDesc * > ctrl_ports
Definition ladspaback.h:193
ladspa::LV2Preset::sname
std::string sname
Definition ladspaback.h:192
ladspa::LV2Preset::cline
std::string cline
Definition ladspaback.h:196
ladspa::LV2Preset::plugin
LilvPlugin * plugin
Definition ladspaback.h:194