Skip to content

Commit 28c89ef

Browse files
committed
Merge...
1 parent 67ac101 commit 28c89ef

File tree

3 files changed

+0
-89
lines changed

3 files changed

+0
-89
lines changed

libs/surfaces/console1/c1_gui.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@
3232
#include <ytkmm/scrolledwindow.h>
3333
#include <ytkmm/spinbutton.h>
3434
#include <ytkmm/notebook.h>
35-
#include <gtkmm/box.h>
36-
#include <gtkmm/combobox.h>
37-
#include <gtkmm/checkbutton.h>
38-
#include <gtkmm/image.h>
39-
#include <gtkmm/notebook.h>
40-
#include <gtkmm/scrolledwindow.h>
41-
#include <gtkmm/table.h>
42-
#include <gtkmm/treestore.h>
43-
#include <gtkmm/spinbutton.h>
4435

4536
namespace Gtk {
4637
class ListStore;
@@ -74,7 +65,6 @@ class C1GUI : public Gtk::Notebook
7465
Gtk::Image image;
7566
Gtk::CheckButton swap_solo_mute_cb;
7667
Gtk::CheckButton band_q_as_send_cb;
77-
Gtk::CheckButton band_q_as_send_cb;
7868
Gtk::CheckButton create_plugin_stubs_btn;
7969

8070
Gtk::TreeView plugin_assignment_editor;

libs/surfaces/console1/c1_operations.cc

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -417,17 +417,6 @@ Console1::eq_band_q (const uint32_t band, uint32_t value)
417417
session->set_control (control, freq, PBD::Controllable::UseGroup);
418418
}
419419

420-
void
421-
Console1::eq_band_q (const uint32_t band, uint32_t value)
422-
{
423-
if (!_current_stripable || !_current_stripable->mapped_control (EQ_BandQ, band)) {
424-
return;
425-
}
426-
std::shared_ptr<AutomationControl> control = _current_stripable->mapped_control (EQ_BandQ, band);
427-
double freq = midi_to_control (control, value);
428-
session->set_control (control, freq, PBD::Controllable::UseGroup);
429-
}
430-
431420
// The Mixbus-Sends are in the EQ section
432421
// Without Shift:
433422
// LowMid Shape is Send 11
@@ -931,42 +920,6 @@ Console1::map_eq ()
931920
}
932921
}
933922

934-
void
935-
Console1::map_eq_mode (){
936-
#ifdef MIXBUS
937-
DEBUG_TRACE (DEBUG::Console1, "Enter map_eq_mode()\n");
938-
if (!_current_stripable)
939-
return;
940-
std::shared_ptr<ARDOUR::Route> rt = std::dynamic_pointer_cast<ARDOUR::Route>( _current_stripable );
941-
if (!rt)
942-
return;
943-
EQ_MODE current_eq_mode = EQ_MODE (rt->eq_mode_control() ? rt->eq_mode_control()->get_value() : -1);
944-
DEBUG_TRACE (DEBUG::Console1, string_compose ("map_eq_mode() - mode: %1\n", current_eq_mode));
945-
if (current_eq_mode != strip_eq_mode)
946-
{
947-
strip_eq_mode = current_eq_mode;
948-
EQBandQBindingChange();
949-
}
950-
#endif
951-
}
952-
953-
954-
void
955-
Console1::map_eq_band_q (const uint32_t band)
956-
{
957-
DEBUG_TRACE (DEBUG::Console1, string_compose( "map_eq_band_q band: %1 \n", band));
958-
if (shift_state || switch_eq_q_dials) {
959-
DEBUG_TRACE (DEBUG::Console1, "Exit map_eq_band_q 1\n");
960-
return;
961-
}
962-
ControllerID controllerID = eq_q_controller_for_band (band);
963-
if (map_encoder (controllerID)) {
964-
std::shared_ptr<AutomationControl> control = _current_stripable->mapped_control (EQ_BandQ, band);
965-
map_encoder (controllerID, control);
966-
}
967-
}
968-
969-
970923
void
971924
Console1::map_eq_mode ()
972925
{
@@ -1208,36 +1161,6 @@ Console1::map_comp_emph ()
12081161
}
12091162
}
12101163

1211-
void Console1::eqBandQChangeMapping(){
1212-
1213-
DEBUG_TRACE(DEBUG::Console1, string_compose("eqBandQChangeMapping(): band_q_as_send = %1, strip_eq_mode = %2\n", band_q_as_send, strip_eq_mode));
1214-
Encoder* lme = get_encoder (LOW_MID_SHAPE);
1215-
Encoder* hme = get_encoder (HIGH_MID_SHAPE);
1216-
switch_eq_q_dials = band_q_as_send || (strip_eq_mode == EQM_HARRISON );
1217-
1218-
if (!lme || !hme)
1219-
{
1220-
DEBUG_TRACE (DEBUG::Console1, "eqBandQChangeMapping: Controller not found \n");
1221-
return;
1222-
}
1223-
1224-
if ( switch_eq_q_dials )
1225-
{
1226-
DEBUG_TRACE (DEBUG::Console1, "eqBandQChangeMapping() set harrison or send mode\n");
1227-
lme->set_action(std::function<void (uint32_t)> (std::bind (&Console1::mb_send_level, this, 10, _1)));
1228-
hme->set_action(std::function<void (uint32_t)> (std::bind (&Console1::mb_send_level, this, 11, _1)));
1229-
map_mb_send_level (10);
1230-
map_mb_send_level (11);
1231-
}
1232-
else
1233-
{
1234-
DEBUG_TRACE (DEBUG::Console1, "eqBandQChangeMapping() set ssl q mode\n");
1235-
lme->set_action(std::function<void (uint32_t)> (std::bind (&Console1::eq_band_q, this, 1, _1)));
1236-
hme->set_action(std::function<void (uint32_t)> (std::bind (&Console1::eq_band_q, this, 2, _1)));
1237-
map_eq_band_q (1);
1238-
map_eq_band_q (2);
1239-
}
1240-
}
12411164

12421165
void Console1::eqBandQChangeMapping (bool mapValues)
12431166
{

libs/surfaces/console1/console1.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,6 @@ class Console1 : public MIDISurface
689689

690690
bool map_select_plugin (const int32_t plugin_index);
691691

692-
void eqBandQChangeMapping();
693-
694692
void eqBandQChangeMapping (bool mapValues);
695693

696694

0 commit comments

Comments
 (0)