Allow to call ARDOUR.DSP Lua functions from UI scripts
[ardour.git] / libs / ardour / luabindings.cc
index df68cd08d1a720d50892157276b57637cb656e68..4c0b653af5d1c0cb8bf39c1ed9c4f1b17e12fbe0 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "ardour/amp.h"
 #include "ardour/audioengine.h"
+#include "ardour/audioregion.h"
 #include "ardour/audiosource.h"
 #include "ardour/audio_backend.h"
 #include "ardour/audio_buffer.h"
@@ -49,6 +50,7 @@
 #include "ardour/midi_port.h"
 #include "ardour/midi_region.h"
 #include "ardour/midi_source.h"
+#include "ardour/panner_shell.h"
 #include "ardour/phase_control.h"
 #include "ardour/playlist.h"
 #include "ardour/plugin.h"
@@ -175,10 +177,12 @@ CLASSKEYS(ARDOUR::PortManager);
 CLASSKEYS(ARDOUR::PresentationInfo);
 CLASSKEYS(ARDOUR::Session);
 CLASSKEYS(ARDOUR::SessionConfiguration);
+CLASSKEYS(ARDOUR::Source);
 
 CLASSKEYS(PBD::ID);
 CLASSKEYS(PBD::Configuration);
 CLASSKEYS(PBD::PropertyChange);
+CLASSKEYS(PBD::StatefulDestructible);
 
 CLASSKEYS(Evoral::Beats);
 CLASSKEYS(Evoral::Event<framepos_t>);
@@ -191,6 +195,7 @@ CLASSKEYS(std::vector<double>);
 
 CLASSKEYS(std::vector<ARDOUR::Plugin::PresetRecord>);
 CLASSKEYS(std::vector<boost::shared_ptr<ARDOUR::Processor> >);
+CLASSKEYS(std::vector<boost::shared_ptr<ARDOUR::Source> >);
 
 CLASSKEYS(std::list<ArdourMarker*>);
 CLASSKEYS(std::list<ARDOUR::AudioRange>);
@@ -198,6 +203,8 @@ CLASSKEYS(std::list<boost::shared_ptr<ARDOUR::Port> >);
 CLASSKEYS(std::list<boost::shared_ptr<ARDOUR::Region> >);
 CLASSKEYS(std::list<boost::shared_ptr<ARDOUR::Route> >);
 
+CLASSKEYS(boost::shared_ptr<ARDOUR::AudioRegion>);
+CLASSKEYS(boost::shared_ptr<ARDOUR::AudioSource>);
 CLASSKEYS(boost::shared_ptr<ARDOUR::Automatable>);
 CLASSKEYS(boost::shared_ptr<ARDOUR::AutomatableSequence<Evoral::Beats> >);
 CLASSKEYS(boost::shared_ptr<ARDOUR::AutomationList>);
@@ -207,6 +214,7 @@ CLASSKEYS(boost::shared_ptr<ARDOUR::MidiRegion>);
 CLASSKEYS(boost::shared_ptr<ARDOUR::MidiSource>);
 CLASSKEYS(boost::shared_ptr<ARDOUR::PluginInfo>);
 CLASSKEYS(boost::shared_ptr<ARDOUR::Processor>);
+CLASSKEYS(boost::shared_ptr<ARDOUR::Readable>);
 CLASSKEYS(boost::shared_ptr<ARDOUR::Region>);
 CLASSKEYS(boost::shared_ptr<Evoral::ControlList>);
 CLASSKEYS(boost::shared_ptr<Evoral::Note<Evoral::Beats> >);
@@ -507,8 +515,9 @@ LuaBindings::common (lua_State* L)
                .addConst ("Curved", Evoral::ControlList::InterpolationStyle(Evoral::ControlList::Curved))
                .endNamespace ()
 
-               .endNamespace () // Evoral
+               .endNamespace (); // Evoral
 
+       luabridge::getGlobalNamespace (L)
                .beginNamespace ("Vamp")
 
                .beginClass<Vamp::RealTime> ("RealTime")
@@ -622,8 +631,9 @@ LuaBindings::common (lua_State* L)
                .endClass ()
 
                .endNamespace () // Vamp::Plugin
-               .endNamespace () // Vamp
+               .endNamespace ();// Vamp
 
+       luabridge::getGlobalNamespace (L)
                .beginNamespace ("ARDOUR")
 
                .beginClass <InterThreadInfo> ("InterThreadInfo")
@@ -768,12 +778,9 @@ LuaBindings::common (lua_State* L)
                .addFunction ("sends_output", &Port::sends_output)
                .addFunction ("connected", &Port::connected)
                .addFunction ("disconnect_all", &Port::disconnect_all)
-               .addFunction ("connected_to_name", (bool (Port::*)(std::string const &)const)&Port::connected_to)
-               .addFunction ("connect_by_name", (int (Port::*)(std::string const &))&Port::connect)
-               .addFunction ("disconnect_by_name", (int (Port::*)(std::string const &))&Port::disconnect)
-               .addFunction ("connected_to", (bool (Port::*)(Port*)const)&Port::connected_to)
-               .addFunction ("connect", (int (Port::*)(Port*))&Port::connect)
-               .addFunction ("disconnect", (int (Port::*)(Port*))&Port::disconnect)
+               .addFunction ("connected_to", (bool (Port::*)(std::string const &)const)&Port::connected_to)
+               .addFunction ("connect", (int (Port::*)(std::string const &))&Port::connect)
+               .addFunction ("disconnect", (int (Port::*)(std::string const &))&Port::disconnect)
                //.addStaticFunction ("port_offset", &Port::port_offset) // static
                .endClass ()
 
@@ -802,6 +809,7 @@ LuaBindings::common (lua_State* L)
                .addFunction ("remove_port", &IO::remove_port)
                .addFunction ("connect", &IO::connect)
                .addFunction ("disconnect", (int (IO::*)(boost::shared_ptr<Port>, std::string, void *))&IO::disconnect)
+               .addFunction ("disconnect_all", (int (IO::*)(void *))&IO::disconnect)
                .addFunction ("physically_connected", &IO::physically_connected)
                .addFunction ("has_port", &IO::has_port)
                .addFunction ("nth", &IO::nth)
@@ -811,6 +819,11 @@ LuaBindings::common (lua_State* L)
                .addFunction ("n_ports", &IO::n_ports)
                .endClass ()
 
+               .deriveWSPtrClass <PannerShell, SessionObject> ("PannerShell")
+               .addFunction ("bypassed", &PannerShell::bypassed)
+               .addFunction ("set_bypassed", &PannerShell::set_bypassed)
+               .endClass ()
+
                .beginClass <RouteGroup> ("RouteGroup")
                // stub RouteGroup* is needed for new_audio_track()
                .endClass ()
@@ -819,6 +832,7 @@ LuaBindings::common (lua_State* L)
                .addFunction ("color", &PresentationInfo::color)
                .addFunction ("set_color", &PresentationInfo::set_color)
                .addFunction ("order", &PresentationInfo::order)
+               .addConst ("max_order", ARDOUR::PresentationInfo::max_order)
                .endClass ()
 
                .deriveWSPtrClass <Stripable, SessionObject> ("Stripable")
@@ -880,8 +894,12 @@ LuaBindings::common (lua_State* L)
                .addFunction ("add_processor_by_index", &Route::add_processor_by_index)
                .addFunction ("remove_processor", &Route::remove_processor)
                .addFunction ("replace_processor", &Route::replace_processor)
+               .addFunction ("the_instrument", &Route::the_instrument)
                .addFunction ("n_inputs", &Route::n_inputs)
                .addFunction ("n_outputs", &Route::n_outputs)
+               .addFunction ("input", &Route::input)
+               .addFunction ("output", &Route::output)
+               .addFunction ("panner_shell", &Route::panner_shell)
                .addFunction ("set_comment", &Route::set_comment)
                .addFunction ("strict_io", &Route::strict_io)
                .addFunction ("set_strict_io", &Route::set_strict_io)
@@ -969,6 +987,7 @@ LuaBindings::common (lua_State* L)
                .deriveWSPtrClass <Region, SessionObject> ("Region")
                .addCast<Readable> ("to_readable")
                .addCast<MidiRegion> ("to_midiregion")
+               .addCast<AudioRegion> ("to_audioregion")
                /* properties */
                .addFunction ("position", &Region::position)
                .addFunction ("start", &Region::start)
@@ -1003,6 +1022,9 @@ LuaBindings::common (lua_State* L)
                .addFunction ("nudge_position", &Region::nudge_position)
                .addFunction ("move_to_natural_position", &Region::move_to_natural_position)
                .addFunction ("move_start", &Region::move_start)
+               .addFunction ("master_sources", &Region::master_sources)
+               .addFunction ("master_source_names", &Region::master_source_names)
+               .addFunction ("n_channels", &Region::n_channels)
                .addFunction ("trim_front", &Region::trim_front)
                .addFunction ("trim_end", &Region::trim_end)
                .addFunction ("trim_to", &Region::trim_to)
@@ -1014,21 +1036,45 @@ LuaBindings::common (lua_State* L)
                .addFunction ("lower_to_bottom", &Region::lower_to_bottom)
                .addFunction ("set_sync_position", &Region::set_sync_position)
                .addFunction ("clear_sync_position", &Region::clear_sync_position)
+               .addFunction ("quarter_note", &Region::quarter_note)
                .addFunction ("set_hidden", &Region::set_hidden)
                .addFunction ("set_muted", &Region::set_muted)
                .addFunction ("set_opaque", &Region::set_opaque)
                .addFunction ("set_locked", &Region::set_locked)
                .addFunction ("set_video_locked", &Region::set_video_locked)
                .addFunction ("set_position_locked", &Region::set_position_locked)
+               .addFunction ("source", &Region::source)
                .endClass ()
 
                .deriveWSPtrClass <MidiRegion, Region> ("MidiRegion")
                .addFunction ("do_export", &MidiRegion::do_export)
                .addFunction ("midi_source", &MidiRegion::midi_source)
                .addFunction ("model", (boost::shared_ptr<MidiModel> (MidiRegion::*)())&MidiRegion::midi_source)
+               .addFunction ("start_beats", &MidiRegion::start_beats)
+               .addFunction ("length_beats", &MidiRegion::length_beats)
+               .endClass ()
+
+               .deriveWSPtrClass <AudioRegion, Region> ("AudioRegion")
+               .addFunction ("audio_source", &AudioRegion::audio_source)
+               .addFunction ("set_scale_amplitude", &AudioRegion::set_scale_amplitude)
+               .addFunction ("scale_amplitude", &AudioRegion::scale_amplitude)
                .endClass ()
 
-               .beginWSPtrClass <Source> ("Source")
+               .deriveWSPtrClass <Source, SessionObject> ("Source")
+               .addCast<AudioSource> ("to_audiosource")
+               .addCast<MidiSource> ("to_midisource")
+               .addFunction ("timestamp", &Source::timestamp)
+               .addFunction ("empty", &Source::empty)
+               .addFunction ("length", &Source::length)
+               .addFunction ("natural_position", &Source::natural_position)
+               .addFunction ("destructive", &Source::destructive)
+               .addFunction ("writable", &Source::writable)
+               .addFunction ("has_been_analysed", &Source::has_been_analysed)
+               .addFunction ("can_be_analysed", &Source::can_be_analysed)
+               .addFunction ("timeline_position", &Source::timeline_position)
+               .addFunction ("use_count", &Source::use_count)
+               .addFunction ("used", &Source::used)
+               .addFunction ("ancestor_name", &Source::ancestor_name)
                .endClass ()
 
                .deriveWSPtrClass <MidiSource, Source> ("MidiSource")
@@ -1037,6 +1083,17 @@ LuaBindings::common (lua_State* L)
                .addFunction ("model", &MidiSource::model)
                .endClass ()
 
+               .deriveWSPtrClass <AudioSource, Source> ("AudioSource")
+               .addCast<Readable> ("to_readable")
+               .addFunction ("readable_length", &AudioSource::readable_length)
+               .addFunction ("n_channels", &AudioSource::n_channels)
+               .addFunction ("empty", &Source::empty)
+               .addFunction ("length", &Source::length)
+               .addFunction ("read", &AudioSource::read)
+               .addFunction ("sample_rate", &AudioSource::sample_rate)
+               .addFunction ("captured_for", &AudioSource::captured_for)
+               .endClass ()
+
                .deriveWSPtrClass <Automatable, Evoral::ControlSet> ("Automatable")
                .addFunction ("automation_control", (boost::shared_ptr<AutomationControl>(Automatable::*)(const Evoral::Parameter&, bool))&Automatable::automation_control)
                .endClass ()
@@ -1092,12 +1149,14 @@ LuaBindings::common (lua_State* L)
 #if 0 // those objects are not yet bound
                .addCast<CapturingProcessor> ("to_capturingprocessor")
                .addCast<DelayLine> ("to_delayline")
-               .addCast<PeakMeter> ("to_meter")
 #endif
+               .addCast<PeakMeter> ("to_meter")
                .addFunction ("display_name", &Processor::display_name)
                .addFunction ("active", &Processor::active)
                .addFunction ("activate", &Processor::activate)
                .addFunction ("deactivate", &Processor::deactivate)
+               .addFunction ("output_streams", &PluginInsert::output_streams)
+               .addFunction ("input_streams", &PluginInsert::input_streams)
                .endClass ()
 
                .deriveWSPtrClass <IOProcessor, Processor> ("IOProcessor")
@@ -1111,9 +1170,21 @@ LuaBindings::common (lua_State* L)
                .endClass ()
 
                .deriveWSPtrClass <Delivery, IOProcessor> ("Delivery")
+               .addFunction ("panner_shell", &Route::panner_shell)
+               .endClass ()
+
+               .beginNamespace ("Plugin")
+               .beginClass <Plugin::IOPortDescription> ("IOPortDescription")
+               .addData ("name", &Plugin::IOPortDescription::name)
+               .addData ("is_sidechain", &Plugin::IOPortDescription::is_sidechain)
+               .addData ("group_name", &Plugin::IOPortDescription::group_name)
+               .addData ("group_channel", &Plugin::IOPortDescription::group_channel)
                .endClass ()
+               .endNamespace ()
 
                .deriveWSPtrClass <Plugin, PBD::StatefulDestructible> ("Plugin")
+               .addCast<LuaProc> ("to_luaproc")
+               .addFunction ("unique_id", &Plugin::unique_id)
                .addFunction ("label", &Plugin::label)
                .addFunction ("name", &Plugin::name)
                .addFunction ("maker", &Plugin::maker)
@@ -1126,9 +1197,15 @@ LuaBindings::common (lua_State* L)
                .addFunction ("get_docs", &Plugin::get_docs)
                .addFunction ("get_info", &Plugin::get_info)
                .addFunction ("get_parameter_docs", &Plugin::get_parameter_docs)
+               .addFunction ("describe_io_port", &Plugin::describe_io_port)
                .addRefFunction ("get_parameter_descriptor", &Plugin::get_parameter_descriptor)
                .endClass ()
 
+               .deriveWSPtrClass <LuaProc, Plugin> ("LuaProc")
+               .addFunction ("shmem", &LuaProc::instance_shm)
+               .addFunction ("table", &LuaProc::instance_ref)
+               .endClass ()
+
                .deriveWSPtrClass <PluginInsert, Processor> ("PluginInsert")
                .addFunction ("plugin", &PluginInsert::plugin)
                .addFunction ("activate", &PluginInsert::activate)
@@ -1138,7 +1215,8 @@ LuaBindings::common (lua_State* L)
                .addFunction ("output_map", (ARDOUR::ChanMapping (PluginInsert::*)(uint32_t) const)&PluginInsert::output_map)
                .addFunction ("set_input_map", &PluginInsert::set_input_map)
                .addFunction ("set_output_map", &PluginInsert::set_output_map)
-               .addFunction ("sidechain_input", &PluginInsert::sidechain_input)
+               .addFunction ("natural_output_streams", &PluginInsert::natural_output_streams)
+               .addFunction ("natural_input_streams", &PluginInsert::natural_input_streams)
                .endClass ()
 
                .deriveWSPtrClass <AutomationControl, PBD::Controllable> ("AutomationControl")
@@ -1264,6 +1342,10 @@ LuaBindings::common (lua_State* L)
                .beginConstStdList <boost::weak_ptr<Route> > ("WeakRouteList")
                .endClass ()
 
+               // typedef std::vector<boost::shared_ptr<Source> > Region::SourceList
+               .beginStdVector <boost::shared_ptr<Source> > ("SourceList")
+               .endClass ()
+
                // std::list< boost::weak_ptr <AudioSource> >
                .beginConstStdList <boost::weak_ptr<AudioSource> > ("WeakAudioSourceList")
                .endClass ()
@@ -1301,8 +1383,10 @@ LuaBindings::common (lua_State* L)
                .beginClass <Tempo> ("Tempo")
                .addConstructor <void (*) (double, double)> ()
                .addFunction ("note_type", &Tempo::note_type)
-               .addFunction ("beats_per_minute", &Tempo::beats_per_minute)
-               .addFunction ("frames_per_beat", &Tempo::frames_per_beat)
+               .addFunction ("note_types_per_minute",  (double (Tempo::*)() const)&Tempo::note_types_per_minute)
+               .addFunction ("quarter_notes_per_minute", &Tempo::quarter_notes_per_minute)
+               .addFunction ("frames_per_quarter_note", &Tempo::frames_per_quarter_note)
+               .addFunction ("frames_per_note_type", &Tempo::frames_per_note_type)
                .endClass ()
 
                .beginClass <Meter> ("Meter")
@@ -1731,6 +1815,75 @@ LuaBindings::common (lua_State* L)
 
                .endNamespace () // end LuaAPI
                .endNamespace ();// end ARDOUR
+
+       // DSP functions
+       luabridge::getGlobalNamespace (L)
+               .beginNamespace ("ARDOUR")
+               .beginNamespace ("DSP")
+               .addFunction ("compute_peak", ARDOUR::compute_peak)
+               .addFunction ("find_peaks", ARDOUR::find_peaks)
+               .addFunction ("apply_gain_to_buffer", ARDOUR::apply_gain_to_buffer)
+               .addFunction ("mix_buffers_no_gain", ARDOUR::mix_buffers_no_gain)
+               .addFunction ("mix_buffers_with_gain", ARDOUR::mix_buffers_with_gain)
+               .addFunction ("copy_vector", ARDOUR::copy_vector)
+               .addFunction ("dB_to_coefficient", &dB_to_coefficient)
+               .addFunction ("fast_coefficient_to_dB", &fast_coefficient_to_dB)
+               .addFunction ("accurate_coefficient_to_dB", &accurate_coefficient_to_dB)
+               .addFunction ("memset", &DSP::memset)
+               .addFunction ("mmult", &DSP::mmult)
+               .addFunction ("log_meter", &DSP::log_meter)
+               .addFunction ("log_meter_coeff", &DSP::log_meter_coeff)
+               .addFunction ("process_map", &DSP::process_map)
+               .addRefFunction ("peaks", &DSP::peaks)
+
+               .beginClass <DSP::LowPass> ("LowPass")
+               .addConstructor <void (*) (double, float)> ()
+               .addFunction ("proc", &DSP::LowPass::proc)
+               .addFunction ("ctrl", &DSP::LowPass::ctrl)
+               .addFunction ("set_cutoff", &DSP::LowPass::set_cutoff)
+               .addFunction ("reset", &DSP::LowPass::reset)
+               .endClass ()
+               .beginClass <DSP::Biquad> ("Biquad")
+               .addConstructor <void (*) (double)> ()
+               .addFunction ("run", &DSP::Biquad::run)
+               .addFunction ("compute", &DSP::Biquad::compute)
+               .addFunction ("configure", &DSP::Biquad::configure)
+               .addFunction ("reset", &DSP::Biquad::reset)
+               .addFunction ("dB_at_freq", &DSP::Biquad::dB_at_freq)
+               .endClass ()
+               .beginClass <DSP::FFTSpectrum> ("FFTSpectrum")
+               .addConstructor <void (*) (uint32_t, double)> ()
+               .addFunction ("set_data_hann", &DSP::FFTSpectrum::set_data_hann)
+               .addFunction ("execute", &DSP::FFTSpectrum::execute)
+               .addFunction ("power_at_bin", &DSP::FFTSpectrum::power_at_bin)
+               .addFunction ("freq_at_bin", &DSP::FFTSpectrum::freq_at_bin)
+               .endClass ()
+
+               /* DSP enums */
+               .beginNamespace ("BiquadType")
+               .addConst ("LowPass", ARDOUR::DSP::Biquad::LowPass)
+               .addConst ("HighPass", ARDOUR::DSP::Biquad::HighPass)
+               .addConst ("BandPassSkirt", ARDOUR::DSP::Biquad::BandPassSkirt)
+               .addConst ("BandPass0dB", ARDOUR::DSP::Biquad::BandPass0dB)
+               .addConst ("Notch", ARDOUR::DSP::Biquad::Notch)
+               .addConst ("AllPass", ARDOUR::DSP::Biquad::AllPass)
+               .addConst ("Peaking", ARDOUR::DSP::Biquad::Peaking)
+               .addConst ("LowShelf", ARDOUR::DSP::Biquad::LowShelf)
+               .addConst ("HighShelf", ARDOUR::DSP::Biquad::HighShelf)
+               .endNamespace ()
+
+               .beginClass <DSP::DspShm> ("DspShm")
+               .addConstructor<void (*) (size_t)> ()
+               .addFunction ("allocate", &DSP::DspShm::allocate)
+               .addFunction ("clear", &DSP::DspShm::clear)
+               .addFunction ("to_float", &DSP::DspShm::to_float)
+               .addFunction ("to_int", &DSP::DspShm::to_int)
+               .addFunction ("atomic_set_int", &DSP::DspShm::atomic_set_int)
+               .addFunction ("atomic_get_int", &DSP::DspShm::atomic_get_int)
+               .endClass ()
+
+               .endNamespace () // DSP
+               .endNamespace ();// end ARDOUR
 }
 
 void
@@ -1805,70 +1958,6 @@ LuaBindings::dsp (lua_State* L)
 
        luabridge::getGlobalNamespace (L)
                .beginNamespace ("ARDOUR")
-               .beginNamespace ("DSP")
-               .addFunction ("compute_peak", ARDOUR::compute_peak)
-               .addFunction ("find_peaks", ARDOUR::find_peaks)
-               .addFunction ("apply_gain_to_buffer", ARDOUR::apply_gain_to_buffer)
-               .addFunction ("mix_buffers_no_gain", ARDOUR::mix_buffers_no_gain)
-               .addFunction ("mix_buffers_with_gain", ARDOUR::mix_buffers_with_gain)
-               .addFunction ("copy_vector", ARDOUR::copy_vector)
-               .addFunction ("dB_to_coefficient", &dB_to_coefficient)
-               .addFunction ("fast_coefficient_to_dB", &fast_coefficient_to_dB)
-               .addFunction ("accurate_coefficient_to_dB", &accurate_coefficient_to_dB)
-               .addFunction ("memset", &DSP::memset)
-               .addFunction ("mmult", &DSP::mmult)
-               .addFunction ("log_meter", &DSP::log_meter)
-               .addFunction ("log_meter_coeff", &DSP::log_meter_coeff)
-               .addFunction ("process_map", &DSP::process_map)
-               .addRefFunction ("peaks", &DSP::peaks)
-
-               .beginClass <DSP::LowPass> ("LowPass")
-               .addConstructor <void (*) (double, float)> ()
-               .addFunction ("proc", &DSP::LowPass::proc)
-               .addFunction ("ctrl", &DSP::LowPass::ctrl)
-               .addFunction ("set_cutoff", &DSP::LowPass::set_cutoff)
-               .addFunction ("reset", &DSP::LowPass::reset)
-               .endClass ()
-               .beginClass <DSP::Biquad> ("Biquad")
-               .addConstructor <void (*) (double)> ()
-               .addFunction ("run", &DSP::Biquad::run)
-               .addFunction ("compute", &DSP::Biquad::compute)
-               .addFunction ("configure", &DSP::Biquad::configure)
-               .addFunction ("reset", &DSP::Biquad::reset)
-               .addFunction ("dB_at_freq", &DSP::Biquad::dB_at_freq)
-               .endClass ()
-               .beginClass <DSP::FFTSpectrum> ("FFTSpectrum")
-               .addConstructor <void (*) (uint32_t, double)> ()
-               .addFunction ("set_data_hann", &DSP::FFTSpectrum::set_data_hann)
-               .addFunction ("execute", &DSP::FFTSpectrum::execute)
-               .addFunction ("power_at_bin", &DSP::FFTSpectrum::power_at_bin)
-               .addFunction ("freq_at_bin", &DSP::FFTSpectrum::freq_at_bin)
-               .endClass ()
-
-               /* DSP enums */
-               .beginNamespace ("BiquadType")
-               .addConst ("LowPass", ARDOUR::DSP::Biquad::LowPass)
-               .addConst ("HighPass", ARDOUR::DSP::Biquad::HighPass)
-               .addConst ("BandPassSkirt", ARDOUR::DSP::Biquad::BandPassSkirt)
-               .addConst ("BandPass0dB", ARDOUR::DSP::Biquad::BandPass0dB)
-               .addConst ("Notch", ARDOUR::DSP::Biquad::Notch)
-               .addConst ("AllPass", ARDOUR::DSP::Biquad::AllPass)
-               .addConst ("Peaking", ARDOUR::DSP::Biquad::Peaking)
-               .addConst ("LowShelf", ARDOUR::DSP::Biquad::LowShelf)
-               .addConst ("HighShelf", ARDOUR::DSP::Biquad::HighShelf)
-               .endNamespace ()
-
-               .beginClass <DSP::DspShm> ("DspShm")
-               .addConstructor<void (*) (size_t)> ()
-               .addFunction ("allocate", &DSP::DspShm::allocate)
-               .addFunction ("clear", &DSP::DspShm::clear)
-               .addFunction ("to_float", &DSP::DspShm::to_float)
-               .addFunction ("to_int", &DSP::DspShm::to_int)
-               .addFunction ("atomic_set_int", &DSP::DspShm::atomic_set_int)
-               .addFunction ("atomic_get_int", &DSP::DspShm::atomic_get_int)
-               .endClass ()
-
-               .endNamespace () // DSP
 
                .beginClass <LuaTableRef> ("LuaTableRef")
                .addCFunction ("get", &LuaTableRef::get)