remove StepSequencer, BeatBox and BeatBoxGUI from wscripts and #ifdef code occurences. Files remain

This commit is contained in:
Paul Davis 2021-07-22 18:05:11 -06:00
parent 7066db16bd
commit 1927e4673b
9 changed files with 40 additions and 9 deletions

View file

@ -25,7 +25,9 @@
#include "pbd/compose.h" #include "pbd/compose.h"
#include "pbd/i18n.h" #include "pbd/i18n.h"
#ifdef HAVE_BEATBOX
#include "ardour/beatbox.h" #include "ardour/beatbox.h"
#endif
#include "ardour/parameter_descriptor.h" #include "ardour/parameter_descriptor.h"
#include "ardour/session.h" #include "ardour/session.h"
#include "ardour/smf_source.h" #include "ardour/smf_source.h"

View file

@ -56,7 +56,9 @@
#include "ardour/amp.h" #include "ardour/amp.h"
#include "ardour/audio_track.h" #include "ardour/audio_track.h"
#include "ardour/audioengine.h" #include "ardour/audioengine.h"
#ifdef HAVE_BEATBOX
#include "ardour/beatbox.h" #include "ardour/beatbox.h"
#endif
#include "ardour/internal_return.h" #include "ardour/internal_return.h"
#include "ardour/internal_send.h" #include "ardour/internal_send.h"
#include "ardour/luaproc.h" #include "ardour/luaproc.h"
@ -2938,11 +2940,12 @@ ProcessorBox::maybe_add_processor_to_ui_list (boost::weak_ptr<Processor> w)
have_ui = true; have_ui = true;
} }
} }
#ifdef HAVE_BEATBOX
else if (boost::dynamic_pointer_cast<BeatBox> (p)) { else if (boost::dynamic_pointer_cast<BeatBox> (p)) {
cerr << "Have UI for beatbox\n"; cerr << "Have UI for beatbox\n";
have_ui = true; have_ui = true;
} }
#endif
if (!have_ui) { if (!have_ui) {
return; return;
} }
@ -3011,12 +3014,18 @@ ProcessorBox::add_processor_to_display (boost::weak_ptr<Processor> p)
boost::shared_ptr<Send> send = boost::dynamic_pointer_cast<Send> (processor); boost::shared_ptr<Send> send = boost::dynamic_pointer_cast<Send> (processor);
boost::shared_ptr<PortInsert> ext = boost::dynamic_pointer_cast<PortInsert> (processor); boost::shared_ptr<PortInsert> ext = boost::dynamic_pointer_cast<PortInsert> (processor);
#ifdef HAVE_BEATBOX
boost::shared_ptr<BeatBox> bb = boost::dynamic_pointer_cast<BeatBox> (processor); boost::shared_ptr<BeatBox> bb = boost::dynamic_pointer_cast<BeatBox> (processor);
#endif
boost::shared_ptr<UnknownProcessor> stub = boost::dynamic_pointer_cast<UnknownProcessor> (processor); boost::shared_ptr<UnknownProcessor> stub = boost::dynamic_pointer_cast<UnknownProcessor> (processor);
//faders and meters are not deletable, copy/paste-able, so they shouldn't be selectable //faders and meters are not deletable, copy/paste-able, so they shouldn't be selectable
#ifdef HAVE_BEATBOX
if (!send && !plugin_insert && !ext && !stub && !bb) { if (!send && !plugin_insert && !ext && !stub && !bb) {
#else
if (!send && !plugin_insert && !ext && !stub) {
#endif
e->set_selectable(false); e->set_selectable(false);
} }
@ -3778,8 +3787,10 @@ ProcessorBox::processor_can_be_edited (boost::shared_ptr<Processor> processor)
if (boost::dynamic_pointer_cast<Send> (processor) || if (boost::dynamic_pointer_cast<Send> (processor) ||
boost::dynamic_pointer_cast<Return> (processor) || boost::dynamic_pointer_cast<Return> (processor) ||
boost::dynamic_pointer_cast<PluginInsert> (processor) || boost::dynamic_pointer_cast<PluginInsert> (processor) ||
boost::dynamic_pointer_cast<PortInsert> (processor) || boost::dynamic_pointer_cast<PortInsert> (processor)
boost::dynamic_pointer_cast<BeatBox> (processor) #ifdef HAVE_BEATBOX
|| boost::dynamic_pointer_cast<BeatBox> (processor)
#endif
) { ) {
return true; return true;
} }
@ -3807,7 +3818,9 @@ ProcessorBox::get_editor_window (boost::shared_ptr<Processor> processor, bool us
boost::shared_ptr<Return> retrn; boost::shared_ptr<Return> retrn;
boost::shared_ptr<PluginInsert> plugin_insert; boost::shared_ptr<PluginInsert> plugin_insert;
boost::shared_ptr<PortInsert> port_insert; boost::shared_ptr<PortInsert> port_insert;
#ifdef HAVE_BEATBOX
boost::shared_ptr<BeatBox> beatbox; boost::shared_ptr<BeatBox> beatbox;
#endif
Window* gidget = 0; Window* gidget = 0;
/* This method may or may not return a Window, but if it does not it /* This method may or may not return a Window, but if it does not it
@ -3913,6 +3926,7 @@ ProcessorBox::get_editor_window (boost::shared_ptr<Processor> processor, bool us
gidget = io_selector; gidget = io_selector;
#ifdef HAVE_BEATBOX
} else if ((beatbox = boost::dynamic_pointer_cast<BeatBox> (processor)) != 0) { } else if ((beatbox = boost::dynamic_pointer_cast<BeatBox> (processor)) != 0) {
Window* w = get_processor_ui (beatbox); Window* w = get_processor_ui (beatbox);
@ -3926,6 +3940,7 @@ ProcessorBox::get_editor_window (boost::shared_ptr<Processor> processor, bool us
} }
gidget = bbg; gidget = bbg;
#endif
} }
return gidget; return gidget;

View file

@ -57,7 +57,9 @@
#include "widgets/ardour_fader.h" #include "widgets/ardour_fader.h"
#include "widgets/slider_controller.h" #include "widgets/slider_controller.h"
#ifdef HAVE_BEATBOX
#include "beatbox_gui.h" #include "beatbox_gui.h"
#endif
#include "plugin_interest.h" #include "plugin_interest.h"
#include "plugin_display.h" #include "plugin_display.h"
#include "io_selector.h" #include "io_selector.h"

View file

@ -60,7 +60,7 @@ gtk2_ardour_sources = [
'automation_streamview.cc', 'automation_streamview.cc',
'automation_time_axis.cc', 'automation_time_axis.cc',
'axis_view.cc', 'axis_view.cc',
'beatbox_gui.cc', # 'beatbox_gui.cc',
'bbt_marker_dialog.cc', 'bbt_marker_dialog.cc',
'big_clock_window.cc', 'big_clock_window.cc',
'big_transport_window.cc', 'big_transport_window.cc',

View file

@ -641,8 +641,9 @@ protected:
boost::shared_ptr<Pannable> _pannable; boost::shared_ptr<Pannable> _pannable;
boost::shared_ptr<DiskReader> _disk_reader; boost::shared_ptr<DiskReader> _disk_reader;
boost::shared_ptr<DiskWriter> _disk_writer; boost::shared_ptr<DiskWriter> _disk_writer;
#ifdef HAVE_BEATBOX
boost::shared_ptr<BeatBox> _beatbox; boost::shared_ptr<BeatBox> _beatbox;
#endif
boost::shared_ptr<MonitorControl> _monitoring_control; boost::shared_ptr<MonitorControl> _monitoring_control;
DiskIOPoint _disk_io_point; DiskIOPoint _disk_io_point;

View file

@ -40,7 +40,9 @@
#include "evoral/midi_util.h" #include "evoral/midi_util.h"
#include "ardour/amp.h" #include "ardour/amp.h"
#ifdef HAVE_BEATBOX
#include "ardour/beatbox.h" #include "ardour/beatbox.h"
#endif
#include "ardour/buffer_set.h" #include "ardour/buffer_set.h"
#include "ardour/debug.h" #include "ardour/debug.h"
#include "ardour/delivery.h" #include "ardour/delivery.h"
@ -110,8 +112,10 @@ MidiTrack::init ()
_disk_writer->DataRecorded.connect_same_thread (*this, boost::bind (&MidiTrack::data_recorded, this, _1)); _disk_writer->DataRecorded.connect_same_thread (*this, boost::bind (&MidiTrack::data_recorded, this, _1));
#ifdef HAVE_BEATBOX
_beatbox.reset (new BeatBox (_session)); _beatbox.reset (new BeatBox (_session));
add_processor (_beatbox, PostFader); add_processor (_beatbox, PostFader);
#endif
return 0; return 0;
} }

View file

@ -52,7 +52,9 @@
#include "ardour/audio_track.h" #include "ardour/audio_track.h"
#include "ardour/audio_port.h" #include "ardour/audio_port.h"
#include "ardour/audioengine.h" #include "ardour/audioengine.h"
#ifdef HAVE_BEATBOX
#include "ardour/beatbox.h" #include "ardour/beatbox.h"
#endif
#include "ardour/boost_debug.h" #include "ardour/boost_debug.h"
#include "ardour/buffer.h" #include "ardour/buffer.h"
#include "ardour/buffer_set.h" #include "ardour/buffer_set.h"
@ -3083,9 +3085,11 @@ Route::set_processor_state (const XMLNode& node, int version)
assert (is_master ()); assert (is_master ());
_volume->set_state (**niter, version); _volume->set_state (**niter, version);
new_order.push_back (_volume); new_order.push_back (_volume);
#ifdef HAVE_BEATBOX
} else if (prop->value() == "beatbox" && _beatbox) { } else if (prop->value() == "beatbox" && _beatbox) {
_beatbox->set_state (**niter, Stateful::current_state_version); _beatbox->set_state (**niter, Stateful::current_state_version);
new_order.push_back (_beatbox); new_order.push_back (_beatbox);
#endif
} else if (prop->value() == "meter") { } else if (prop->value() == "meter") {
_meter->set_state (**niter, version); _meter->set_state (**niter, version);
new_order.push_back (_meter); new_order.push_back (_meter);
@ -5016,11 +5020,12 @@ Route::setup_invisible_processors ()
for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) { for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
boost::shared_ptr<Send> auxsnd = boost::dynamic_pointer_cast<Send> ((*i)); boost::shared_ptr<Send> auxsnd = boost::dynamic_pointer_cast<Send> ((*i));
#ifdef HAVE_BEATBOX
/* XXX temporary hack while we decide on visibility */ /* XXX temporary hack while we decide on visibility */
if (boost::dynamic_pointer_cast<BeatBox> (*i)) { if (boost::dynamic_pointer_cast<BeatBox> (*i)) {
continue; continue;
} }
#endif
if ((*i)->display_to_user ()) { if ((*i)->display_to_user ()) {
new_processors.push_back (*i); new_processors.push_back (*i);
} }
@ -5130,6 +5135,7 @@ Route::setup_invisible_processors ()
trim = new_processors.begin(); trim = new_processors.begin();
} }
#ifdef HAVE_BEATBOX
/* BEATBOX (for MIDI) */ /* BEATBOX (for MIDI) */
if (_beatbox) { if (_beatbox) {
@ -5137,7 +5143,7 @@ Route::setup_invisible_processors ()
++insert_pos; ++insert_pos;
new_processors.insert (insert_pos, _beatbox); new_processors.insert (insert_pos, _beatbox);
} }
#endif
/* INTERNAL RETURN */ /* INTERNAL RETURN */
/* doing this here means that any monitor control will come after /* doing this here means that any monitor control will come after

View file

@ -46,7 +46,7 @@ libardour_sources = [
'automation_control.cc', 'automation_control.cc',
'automation_list.cc', 'automation_list.cc',
'automation_watch.cc', 'automation_watch.cc',
'beatbox.cc', # 'beatbox.cc',
'broadcast_info.cc', 'broadcast_info.cc',
'buffer.cc', 'buffer.cc',
'buffer_manager.cc', 'buffer_manager.cc',
@ -247,7 +247,7 @@ libardour_sources = [
'speakers.cc', 'speakers.cc',
'srcfilesource.cc', 'srcfilesource.cc',
'stripable.cc', 'stripable.cc',
'step_sequencer.cc', # 'step_sequencer.cc',
'strip_silence.cc', 'strip_silence.cc',
'system_exec.cc', 'system_exec.cc',
'revision.cc', 'revision.cc',

View file

@ -256,6 +256,7 @@ public:
_beats = B._beats; _beats = B._beats;
_ticks = B._ticks; _ticks = B._ticks;
return *this; return *this;
}
Beats operator/ (Beats const & other) const { Beats operator/ (Beats const & other) const {
return Beats::ticks (int_div_round (to_ticks(), other.to_ticks())); return Beats::ticks (int_div_round (to_ticks(), other.to_ticks()));