X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fluabindings.cc;h=9fb807e5debddb9e648133e96a3481a5176d10fb;hb=HEAD;hp=90c8b8ad90066bab233790518e004f09f96d722f;hpb=d9a3866299bc43c5139e8812ba8c2dbfc4ece343;p=ardour.git diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index 90c8b8ad90..9fb807e5de 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -40,6 +40,7 @@ #include "ardour/buffer_set.h" #include "ardour/beats_samples_converter.h" #include "ardour/chan_mapping.h" +#include "ardour/convolver.h" #include "ardour/dB.h" #include "ardour/delayline.h" #include "ardour/disk_reader.h" @@ -171,7 +172,8 @@ CLASSINFO(TrackSelection); CLASSINFO(TrackViewList); -CLASSKEYS(std::bitset<48ul>); // LuaSignal::LAST_SIGNAL +/* this needs to match gtk2_ardour/luasignal.h */ +CLASSKEYS(std::bitset<49ul>); // LuaSignal::LAST_SIGNAL CLASSKEYS(void); CLASSKEYS(float); @@ -1019,29 +1021,29 @@ LuaBindings::common (lua_State* L) .addFunction ("pan_width_control", &Stripable::pan_width_control) .addFunction ("pan_frontback_control", &Stripable::pan_frontback_control) .addFunction ("pan_lfe_control", &Stripable::pan_lfe_control) - .addFunction ("send_level_control", &Stripable::send_level_controllable) - .addFunction ("send_enable_control", &Stripable::send_level_controllable) + .addFunction ("send_level_controllable", &Stripable::send_level_controllable) + .addFunction ("send_enable_controllable", &Stripable::send_enable_controllable) .addFunction ("send_name", &Stripable::send_name) .addFunction ("monitor_control", &Stripable::monitor_control) - .addFunction ("master_send_enable_control ", &Stripable::master_send_enable_controllable ) - .addFunction ("comp_enable_control ", &Stripable::comp_enable_controllable ) - .addFunction ("comp_threshold_control ", &Stripable::comp_threshold_controllable ) - .addFunction ("comp_speed_control ", &Stripable::comp_speed_controllable ) - .addFunction ("comp_mode_control ", &Stripable::comp_mode_controllable ) - .addFunction ("comp_makeup_control ", &Stripable::comp_makeup_controllable ) - .addFunction ("comp_redux_control ", &Stripable::comp_redux_controllable ) + .addFunction ("master_send_enable_controllable", &Stripable::master_send_enable_controllable) + .addFunction ("comp_enable_controllabl", &Stripable::comp_enable_controllable) + .addFunction ("comp_threshold_controllable", &Stripable::comp_threshold_controllable) + .addFunction ("comp_speed_controllable", &Stripable::comp_speed_controllable) + .addFunction ("comp_mode_controllable", &Stripable::comp_mode_controllable) + .addFunction ("comp_makeup_controllable", &Stripable::comp_makeup_controllable) + .addFunction ("comp_redux_controllable", &Stripable::comp_redux_controllable) .addFunction ("comp_mode_name", &Stripable::comp_mode_name) .addFunction ("comp_speed_name", &Stripable::comp_speed_name) - .addFunction ("eq_band_cnt ", &Stripable::eq_band_cnt) - .addFunction ("eq_enable_control ", &Stripable::eq_enable_controllable ) + .addFunction ("eq_band_cnt", &Stripable::eq_band_cnt) + .addFunction ("eq_enable_controllable", &Stripable::eq_enable_controllable) .addFunction ("eq_band_name", &Stripable::eq_band_name) - .addFunction ("eq_gain_control", &Stripable::eq_gain_controllable) - .addFunction ("eq_freq_control ", &Stripable::eq_freq_controllable ) - .addFunction ("eq_q_control ", &Stripable::eq_q_controllable ) - .addFunction ("eq_shape_control ", &Stripable::eq_shape_controllable ) - .addFunction ("filter_freq_controllable ", &Stripable::filter_freq_controllable ) - .addFunction ("filter_slope_controllable ", &Stripable::filter_slope_controllable ) - .addFunction ("filter_enable_controllable ", &Stripable::filter_enable_controllable ) + .addFunction ("eq_gain_controllable", &Stripable::eq_gain_controllable) + .addFunction ("eq_freq_controllable", &Stripable::eq_freq_controllable) + .addFunction ("eq_q_controllable", &Stripable::eq_q_controllable) + .addFunction ("eq_shape_controllable", &Stripable::eq_shape_controllable) + .addFunction ("filter_freq_controllable", &Stripable::filter_freq_controllable) + .addFunction ("filter_slope_controllable", &Stripable::filter_slope_controllable) + .addFunction ("filter_enable_controllable", &Stripable::filter_enable_controllable) .addFunction ("set_presentation_order", &Stripable::set_presentation_order) .addFunction ("presentation_info_ptr", &Stripable::presentation_info_ptr) @@ -1125,7 +1127,7 @@ LuaBindings::common (lua_State* L) .addFunction ("combine", &Playlist::combine) .addFunction ("uncombine", &Playlist::uncombine) .addFunction ("split_region", &Playlist::split_region) - .addFunction ("split", (void (Playlist::*)(samplepos_t))&Playlist::split) + //.addFunction ("split", &Playlist::split) // XXX needs MusicSample .addFunction ("cut", (boost::shared_ptr (Playlist::*)(std::list&, bool))&Playlist::cut) #if 0 .addFunction ("copy", &Playlist::copy) @@ -1466,6 +1468,8 @@ LuaBindings::common (lua_State* L) .addFunction ("get_count", &PluginInsert::get_count) .addFunction ("is_channelstrip", &PluginInsert::is_channelstrip) .addFunction ("is_nonbypassable", &PluginInsert::is_nonbypassable) + .addFunction ("clear_stats", &PluginInsert::clear_stats) + .addRefFunction ("get_stats", &PluginInsert::get_stats) .endClass () .deriveWSPtrClass ("ReadOnlyControl") @@ -1777,6 +1781,7 @@ LuaBindings::common (lua_State* L) .addConst ("LV2", ARDOUR::PluginType(LV2)) .addConst ("Windows_VST", ARDOUR::PluginType(Windows_VST)) .addConst ("LXVST", ARDOUR::PluginType(LXVST)) + .addConst ("MacVST", ARDOUR::PluginType(MacVST)) .addConst ("Lua", ARDOUR::PluginType(Lua)) .endNamespace () @@ -1943,6 +1948,7 @@ LuaBindings::common (lua_State* L) .addConst ("RF64", ARDOUR::HeaderFormat(RF64)) .addConst ("RF64_WAV", ARDOUR::HeaderFormat(RF64_WAV)) .addConst ("MBWF", ARDOUR::HeaderFormat(MBWF)) + .addConst ("FLAC", ARDOUR::HeaderFormat(FLAC)) .endNamespace () .beginNamespace ("InsertMergePolicy") @@ -2406,6 +2412,16 @@ LuaBindings::common (lua_State* L) .addRefFunction ("read", &ARDOUR::LTCReader::read) .endClass () + .beginClass ("Convolver") + .addConstructor () + .addFunction ("run", &ARDOUR::DSP::Convolver::run) + .addFunction ("run_stereo", &ARDOUR::DSP::Convolver::run_stereo) + .addFunction ("latency", &ARDOUR::DSP::Convolver::latency) + .addFunction ("n_inputs", &ARDOUR::DSP::Convolver::n_inputs) + .addFunction ("n_outputs", &ARDOUR::DSP::Convolver::n_outputs) + .addFunction ("ready", &ARDOUR::DSP::Convolver::ready) + .endClass () + /* DSP enums */ .beginNamespace ("BiquadType") .addConst ("LowPass", ARDOUR::DSP::Biquad::LowPass) @@ -2432,6 +2448,12 @@ LuaBindings::common (lua_State* L) .addConst ("LTC_TV_FILM_24", LTC_TV_FILM_24) .endNamespace () + .beginNamespace ("IRChannelConfig") + .addConst ("Mono", DSP::Convolver::Mono) + .addConst ("MonoToStereo", DSP::Convolver::MonoToStereo) + .addConst ("Stereo", DSP::Convolver::Stereo) + .endNamespace () + .beginClass ("DspShm") .addConstructor () .addFunction ("allocate", &DSP::DspShm::allocate) @@ -2458,7 +2480,7 @@ LuaBindings::dsp (lua_State* L) .addFunction ("silence", &AudioBuffer::silence) .addFunction ("apply_gain", &AudioBuffer::apply_gain) .addFunction ("check_silence", &AudioBuffer::check_silence) - .addFunction ("read_from", (void (AudioBuffer::*)(const Sample*, samplecnt_t, samplecnt_t, samplecnt_t))&AudioBuffer::check_silence) + .addFunction ("read_from", (void (AudioBuffer::*)(const Sample*, samplecnt_t, samplecnt_t, samplecnt_t))&AudioBuffer::read_from) .endClass() .beginClass ("MidiBuffer")