Ardour
9.0-pre0-582-g084a23a80d
|
#include <luaproc.h>
Classes | |
struct | FactoryPreset |
Public Member Functions | |
LuaProc (AudioEngine &, Session &, const std::string &) | |
LuaProc (const LuaProc &) | |
~LuaProc () | |
std::string | unique_id () const |
const char * | name () const |
const char * | label () const |
const char * | maker () const |
uint32_t | parameter_count () const |
float | default_value (uint32_t port) |
void | set_parameter (uint32_t port, float val, sampleoffset_t) |
float | get_parameter (uint32_t port) const |
int | get_parameter_descriptor (uint32_t which, ParameterDescriptor &) const |
uint32_t | nth_parameter (uint32_t port, bool &ok) const |
std::string | get_docs () const |
std::string | get_parameter_docs (uint32_t) const |
PluginOutputConfiguration | possible_output () const |
void | drop_references () |
std::set< Evoral::Parameter > | automatable () const |
void | activate () |
void | deactivate () |
void | cleanup () |
int | set_block_size (pframes_t) |
bool | requires_fixed_sized_buffers () const |
bool | connect_all_audio_outputs () const |
int | connect_and_run (BufferSet &bufs, samplepos_t start, samplepos_t end, double speed, ChanMapping const &in, ChanMapping const &out, pframes_t nframes, samplecnt_t offset) |
std::string | describe_parameter (Evoral::Parameter) |
std::shared_ptr< ScalePoints > | get_scale_points (uint32_t port_index) const |
bool | parameter_is_audio (uint32_t) const |
bool | parameter_is_control (uint32_t) const |
bool | parameter_is_input (uint32_t) const |
bool | parameter_is_output (uint32_t) const |
uint32_t | designated_bypass_port () |
std::string | state_node_name () const |
void | add_state (XMLNode *) const |
int | set_state (const XMLNode &, int version) |
int | set_script_from_state (const XMLNode &) |
bool | load_preset (PresetRecord) |
std::string | do_save_preset (std::string) |
void | do_remove_preset (std::string) |
bool | has_editor () const |
bool | match_variable_io (ChanCount &in, ChanCount &aux_in, ChanCount &out) |
bool | reconfigure_io (ChanCount in, ChanCount aux_in, ChanCount out) |
ChanCount | output_streams () const |
ChanCount | input_streams () const |
bool | has_inline_display () |
void | setup_lua_inline_gui (LuaState *lua_gui) |
DSP::DspShm * | instance_shm () |
LuaTableRef * | instance_ref () |
void | set_origin (std::string &path) |
Public Member Functions inherited from ARDOUR::Plugin | |
Plugin (ARDOUR::AudioEngine &, ARDOUR::Session &) | |
Plugin (const Plugin &) | |
virtual | ~Plugin () |
XMLNode & | get_state () const |
virtual void | set_insert_id (PBD::ID id) |
virtual void | set_state_dir (const std::string &d="") |
void | set_insert (PlugInsertBase *pib, uint32_t num) |
PlugInsertBase * | plugin_insert () const |
uint32_t | plugin_number () const |
virtual std::string | parameter_label (uint32_t which) const |
virtual void | flush () |
virtual bool | print_parameter (uint32_t, std::string &) const |
virtual IOPortDescription | describe_io_port (DataType dt, bool input, uint32_t id) const |
virtual void | set_automation_control (uint32_t, std::shared_ptr< ARDOUR::AutomationControl >) |
samplecnt_t | signal_latency () const |
samplecnt_t | signal_tailtime () const |
virtual samplecnt_t | max_latency () const |
virtual bool | inplace_broken () const |
bool | write_immediate_event (Evoral::EventType event_type, size_t size, const uint8_t *buf) |
void | realtime_handle_transport_stopped () |
void | realtime_locate (bool) |
void | monitoring_changed () |
virtual void | set_non_realtime (bool) |
virtual void | add_slave (std::shared_ptr< Plugin >, bool realtime) |
virtual void | remove_slave (std::shared_ptr< Plugin >) |
virtual bool | inline_display_in_gui () |
virtual Display_Image_Surface * | render_inline_display (uint32_t, uint32_t) |
virtual bool | has_midnam () |
virtual bool | read_midnam () |
virtual std::string | midnam_model () |
virtual bool | knows_bank_patch () |
virtual uint32_t | bank_patch (uint8_t chn) |
PresetRecord | save_preset (std::string name) |
void | remove_preset (std::string) |
void | clear_preset () |
const PresetRecord * | preset_by_label (const std::string &) |
const PresetRecord * | preset_by_uri (const std::string &) |
virtual std::vector< PresetRecord > | get_presets () |
PresetRecord | last_preset () const |
bool | parameter_changed_since_last_preset () const |
virtual int | first_user_preset_index () const |
virtual void | set_info (const PluginInfoPtr info) |
PluginInfoPtr | get_info () const |
virtual void | set_owner (SessionObject *o) |
SessionObject * | owner () const |
void | set_cycles (uint32_t c) |
cycles_t | cycles () const |
void | use_for_impulse_analysis () |
ARDOUR::AudioEngine & | engine () const |
ARDOUR::Session & | session () const |
virtual const PropertyDescriptors & | get_supported_properties () const |
virtual const ParameterDescriptor & | get_property_descriptor (uint32_t id) const |
virtual void | set_property (uint32_t key, const Variant &value) |
virtual Variant | get_property_value (uint32_t) const |
virtual void | announce_property_values () |
Public Member Functions inherited from PBD::Stateful | |
Stateful () | |
virtual | ~Stateful () |
virtual bool | apply_change (PropertyBase const &) |
PropertyChange | apply_changes (PropertyList const &) |
const OwnedPropertyList & | properties () const |
void | add_property (PropertyBase &s) |
void | add_extra_xml (XMLNode &) |
XMLNode * | extra_xml (const std::string &str, bool add_if_missing=false) |
void | save_extra_xml (const XMLNode &) |
const PBD::ID & | id () const |
bool | set_id (const XMLNode &) |
void | set_id (const std::string &) |
void | reset_id () |
void | clear_changes () |
virtual void | clear_owned_changes () |
PropertyList * | get_changes_as_properties (PBD::Command *) const |
virtual void | rdiff (std::vector< PBD::Command * > &) const |
bool | changed () const |
virtual PropertyList * | property_factory (const XMLNode &) const |
virtual void | suspend_property_changes () |
virtual void | resume_property_changes () |
bool | property_changes_suspended () const |
Public Member Functions inherited from PBD::Destructible | |
virtual | ~Destructible () |
Public Member Functions inherited from ARDOUR::HasLatency | |
virtual | ~HasLatency () |
Public Member Functions inherited from ARDOUR::HasTailTime | |
virtual | ~HasTailTime () |
Public Attributes | |
std::map< std::string, FactoryPreset > | _factory_presets |
Public Attributes inherited from ARDOUR::Plugin | |
PBD::Signal< void()> | QueueDraw |
PBD::Signal< void()> | UpdateMidnam |
PBD::Signal< void()> | UpdatedMidnam |
PBD::Signal< void(uint8_t)> | BankPatchChange |
PBD::Signal< void()> | PresetAdded |
PBD::Signal< void()> | PresetRemoved |
PBD::Signal< void()> | PresetLoaded |
PBD::Signal< void()> | PresetDirty |
PBD::Signal< void(uint32_t, float)> | PresetPortSetValue |
PBD::Signal< void(uint32_t, float)> | ParameterChangedExternally |
PBD::Signal< void(uint32_t, Variant)> | PropertyChanged |
PBD::Signal< void(uint32_t)> | StartTouch |
PBD::Signal< void(uint32_t)> | EndTouch |
Public Attributes inherited from PBD::Stateful | |
PBD::Signal< void(const PropertyChange &)> | PropertyChanged |
Public Attributes inherited from PBD::Destructible | |
PBD::Signal< void()> | Destroyed |
PBD::Signal< void()> | DropReferences |
Protected Member Functions | |
const std::string & | script () const |
const std::string & | origin () const |
Protected Member Functions inherited from ARDOUR::Plugin | |
virtual void | parameter_changed_externally (uint32_t which, float val) |
void | state_changed () |
Protected Member Functions inherited from PBD::Stateful | |
void | add_instant_xml (XMLNode &, const std::string &directory_path) |
XMLNode * | instant_xml (const std::string &str, const std::string &directory_path) |
void | add_properties (XMLNode &) const |
PropertyChange | set_values (XMLNode const &) |
virtual void | post_set (const PropertyChange &) |
virtual void | send_change (const PropertyChange &) |
virtual void | mid_thaw (const PropertyChange &) |
bool | regenerate_xml_or_string_ids () const |
Private Member Functions | |
samplecnt_t | plugin_latency () const |
void | find_presets () |
void | queue_draw () |
std::weak_ptr< Route > | route () const |
void | init () |
bool | load_script () |
void | lua_print (std::string s) |
bool | load_user_preset (PresetRecord const &) |
bool | load_factory_preset (PresetRecord const &) |
std::string | preset_name_to_uri (const std::string &) const |
std::string | presets_file () const |
XMLTree * | presets_tree () const |
std::shared_ptr< ScalePoints > | parse_scale_points (luabridge::LuaRef *) |
Private Attributes | |
PBD::ReallocPool | _mempool |
LuaState | lua |
luabridge::LuaRef * | _lua_dsp |
luabridge::LuaRef * | _lua_latency |
std::string | _script |
std::string | _origin |
std::string | _docs |
bool | _lua_does_channelmapping |
bool | _lua_has_inline_display |
bool | _requires_fixed_sized_buffers |
bool | _connect_all_audio_outputs |
bool | _set_time_info |
DSP::DspShm | lshm |
LuaTableRef | lref |
std::vector< std::pair< bool, int > > | _ctrl_params |
std::map< int, ARDOUR::ParameterDescriptor > | _param_desc |
std::map< int, std::string > | _param_doc |
uint32_t | _designated_bypass_port |
samplecnt_t | _signal_latency |
float * | _control_data |
float * | _shadow_data |
ChanCount | _configured_in |
ChanCount | _configured_out |
bool | _configured |
ChanCount | _selected_in |
ChanCount | _selected_out |
PluginOutputConfiguration | _output_configs |
bool | _has_midi_input |
bool | _has_midi_output |
Additional Inherited Members | |
Public Types inherited from ARDOUR::Plugin | |
typedef std::map< uint32_t, ParameterDescriptor > | PropertyDescriptors |
Static Public Attributes inherited from ARDOUR::Plugin | |
static PBD::Signal< void(std::string, Plugin *, bool)> | PresetsChanged |
Static Public Attributes inherited from PBD::Stateful | |
static int | current_state_version |
static int | loading_state_version |
Protected Attributes inherited from ARDOUR::Plugin | |
ARDOUR::AudioEngine & | _engine |
ARDOUR::Session & | _session |
PluginInfoPtr | _info |
uint32_t | _cycles |
SessionObject * | _owner |
bool | _for_impulse_analysis |
std::map< std::string, PresetRecord > | _presets |
Protected Attributes inherited from PBD::Stateful | |
XMLNode * | _extra_xml |
XMLNode * | _instant_xml |
PBD::PropertyChange | _pending_changed |
Glib::Threads::Mutex | _lock |
std::string | _xml_node_name |
name of node to use for this object in XML More... | |
OwnedPropertyList * | _properties |
ARDOUR::LuaProc::LuaProc | ( | AudioEngine & | , |
Session & | , | ||
const std::string & | |||
) |
ARDOUR::LuaProc::LuaProc | ( | const LuaProc & | ) |
ARDOUR::LuaProc::~LuaProc | ( | ) |
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
virtual |
Add state to an existing XMLNode
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
inlinevirtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
inlinevirtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Do the actual removal of a preset of the provided name
Implements ARDOUR::Plugin.
|
virtual |
Do the actual saving of the current plugin settings to a preset of the provided name. Should return a URI on success, or an empty string on failure.
Implements ARDOUR::Plugin.
|
virtual |
Reimplemented from PBD::Destructible.
|
privatevirtual |
Fill _presets with our presets
Implements ARDOUR::Plugin.
|
inlinevirtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
inlinevirtual |
Reimplemented from ARDOUR::Plugin.
|
private |
|
inlinevirtual |
Reimplemented from ARDOUR::Plugin.
|
inline |
|
inline |
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
private |
|
virtual |
Set parameters using a preset
Reimplemented from ARDOUR::Plugin.
|
private |
|
private |
|
private |
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
inlineprotected |
|
inlinevirtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
private |
|
inlineprivatevirtual |
Implements ARDOUR::Plugin.
|
inlinevirtual |
Reimplemented from ARDOUR::Plugin.
|
private |
|
private |
|
private |
Reimplemented from ARDOUR::Plugin.
|
inlinevirtual |
Reimplemented from ARDOUR::Plugin.
|
private |
|
inlineprotected |
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
inline |
|
virtual |
Reimplemented from ARDOUR::Plugin.
int ARDOUR::LuaProc::set_script_from_state | ( | const XMLNode & | ) |
|
virtual |
Reimplemented from ARDOUR::Plugin.
void ARDOUR::LuaProc::setup_lua_inline_gui | ( | LuaState * | lua_gui | ) |
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
inlinevirtual |
Implements ARDOUR::Plugin.
|
private |
std::map<std::string, FactoryPreset> ARDOUR::LuaProc::_factory_presets |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |