From 353d6f6e0bd7a633ba688690408c3a4eb202345e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 17 May 2024 23:25:58 +0200 Subject: [PATCH] T: disable RegionFx --- gtk2_ardour/audio_region_editor.cc | 2 ++ gtk2_ardour/region_editor.cc | 4 ++++ libs/ardour/luabindings.cc | 2 ++ 3 files changed, 8 insertions(+) diff --git a/gtk2_ardour/audio_region_editor.cc b/gtk2_ardour/audio_region_editor.cc index 613a395149..e50b1ee437 100644 --- a/gtk2_ardour/audio_region_editor.cc +++ b/gtk2_ardour/audio_region_editor.cc @@ -96,6 +96,7 @@ AudioRegionEditor::AudioRegionEditor (Session* s, AudioRegionView* arv) _table.attach (_polarity_toggle, 1, 2, _table_row, _table_row + 1, Gtk::FILL, Gtk::FILL); ++_table_row; +#ifndef MIXBUS _region_line_label.set_name ("AudioRegionEditorLabel"); _region_line_label.set_text (_("Region Line:")); _region_line_label.set_alignment (1, 0.5); @@ -103,6 +104,7 @@ AudioRegionEditor::AudioRegionEditor (Session* s, AudioRegionView* arv) _table.attach (_region_line, 1, 2, _table_row, _table_row + 1, Gtk::FILL, Gtk::FILL); _table.attach (_show_on_touch, 2, 3, _table_row, _table_row + 1, Gtk::FILL, Gtk::FILL); ++_table_row; +#endif gain_changed (); refill_region_line (); diff --git a/gtk2_ardour/region_editor.cc b/gtk2_ardour/region_editor.cc index bb7a2b5973..f4696a6b88 100644 --- a/gtk2_ardour/region_editor.cc +++ b/gtk2_ardour/region_editor.cc @@ -186,8 +186,10 @@ RegionEditor::RegionEditor (Session* s, RegionView* rv) _table.attach (_sources, 1, 2, _table_row, _table_row + 1, Gtk::FILL | Gtk::EXPAND, Gtk::FILL); ++_table_row; +#ifndef MIXBUS // no region FX _table.attach (region_fx_label, 2, 3, 0, 1, Gtk::FILL, Gtk::FILL); _table.attach (_region_fx_box, 2, 3, 1, _table_row + 2, Gtk::FILL, Gtk::FILL); +#endif get_vbox()->pack_start (_table, true, true); @@ -229,11 +231,13 @@ RegionEditor::RegionEditor (Session* s, RegionView* rv) spin_arrow_grab = false; +#if 0 /* for now only audio region effects are supported */ if (std::dynamic_pointer_cast (_region)) { region_fx_label.show (); _region_fx_box.show (); } +#endif connect_editor_events (); } diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index 5fe47f0671..1e1def004d 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -1638,10 +1638,12 @@ LuaBindings::common (lua_State* L) .addFunction ("has_transients", &Region::has_transients) .addFunction ("transients", (AnalysisFeatureList (Region::*)())&Region::transients) +#if 0 .addFunction ("load_plugin", &Region::load_plugin) .addFunction ("add_plugin", &Region::add_plugin) .addFunction ("remove_plugin", &Region::add_plugin) .addFunction ("nth_plugin", &Region::nth_plugin) +#endif /* editing operations */ .addFunction ("set_length", &Region::set_length)