Push2: Remove debug printing
This commit is contained in:
committed by
Paul Davis
parent
e93b7e2507
commit
380a24b837
@@ -30,7 +30,6 @@
|
||||
using namespace ArdourSurface;
|
||||
using namespace ARDOUR;
|
||||
using namespace PBD;
|
||||
using std::cerr;
|
||||
|
||||
void
|
||||
Push2::build_maps ()
|
||||
@@ -618,7 +617,6 @@ Push2::button_shift_long_press ()
|
||||
void
|
||||
Push2::button_select_press ()
|
||||
{
|
||||
cerr << "start select\n";
|
||||
_modifier_state = ModifierState (_modifier_state | ModSelect);
|
||||
boost::shared_ptr<Button> b = _id_button_map[Select];
|
||||
b->set_color (Push2::LED::White);
|
||||
@@ -632,7 +630,6 @@ void
|
||||
Push2::button_select_release ()
|
||||
{
|
||||
if (_modifier_state & ModSelect) {
|
||||
cerr << "end select\n";
|
||||
_modifier_state = ModifierState (_modifier_state & ~(ModSelect));
|
||||
boost::shared_ptr<Button> b = _id_button_map[Select];
|
||||
b->timeout_connection.disconnect ();
|
||||
|
||||
@@ -311,6 +311,5 @@ P2GUI::reprogram_pressure_mode ()
|
||||
pm = Push2::AfterTouch;
|
||||
}
|
||||
|
||||
std::cerr << "Reprogram pm to " << pm << std::endl;
|
||||
_p2.set_pressure_mode (pm);
|
||||
}
|
||||
|
||||
@@ -306,8 +306,6 @@ LevelMeter::setup_meters (int len, int initial_width, int thin_width)
|
||||
_meters.push_back (MeterInfo());
|
||||
}
|
||||
|
||||
//cerr << "LevelMeter::setup_meters() called color_changed = " << color_changed << " colors: " << endl;//DEBUG
|
||||
|
||||
for (int32_t n = nmeters-1; nmeters && n >= 0 ; --n) {
|
||||
#if 0
|
||||
uint32_t c[10];
|
||||
|
||||
@@ -628,11 +628,9 @@ Push2::handle_midi_sysex (MIDI::Parser&, MIDI::byte* raw_bytes, size_t sz)
|
||||
if (msg[7] == 0x0) {
|
||||
_pressure_mode = AfterTouch;
|
||||
PressureModeChange (AfterTouch);
|
||||
cerr << "Pressure mode is after\n";
|
||||
} else {
|
||||
_pressure_mode = PolyPressure;
|
||||
PressureModeChange (PolyPressure);
|
||||
cerr << "Pressure mode is poly\n";
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1111,7 +1109,6 @@ Push2::other_vpot_touch (int n, bool touching)
|
||||
void
|
||||
Push2::start_shift ()
|
||||
{
|
||||
cerr << "start shift\n";
|
||||
_modifier_state = ModifierState (_modifier_state | ModShift);
|
||||
boost::shared_ptr<Button> b = _id_button_map[Shift];
|
||||
b->set_color (LED::White);
|
||||
@@ -1123,7 +1120,6 @@ void
|
||||
Push2::end_shift ()
|
||||
{
|
||||
if (_modifier_state & ModShift) {
|
||||
cerr << "end shift\n";
|
||||
_modifier_state = ModifierState (_modifier_state & ~(ModShift));
|
||||
boost::shared_ptr<Button> b = _id_button_map[Shift];
|
||||
b->timeout_connection.disconnect ();
|
||||
@@ -1209,8 +1205,6 @@ Push2::port_registration_handler ()
|
||||
AudioEngine::instance()->get_ports (string_compose (".*%1", output_port_name), DataType::MIDI, PortFlags (IsPhysical|IsInput), out);
|
||||
|
||||
if (!in.empty() && !out.empty()) {
|
||||
cerr << "Push2: both ports found\n";
|
||||
cerr << "\tconnecting to " << in.front() << " + " << out.front() << endl;
|
||||
if (!_async_in->connected()) {
|
||||
AudioEngine::instance()->connect (_async_in->name(), in.front());
|
||||
}
|
||||
@@ -1559,7 +1553,6 @@ void
|
||||
Push2::set_percussive_mode (bool yn)
|
||||
{
|
||||
if (!yn) {
|
||||
cerr << "back to scale\n";
|
||||
set_pad_scale (_scale_root, _root_octave, _mode, _row_interval, _in_key);
|
||||
_percussion = false;
|
||||
return;
|
||||
@@ -1846,5 +1839,4 @@ Push2::set_pressure_mode (PressureMode pm)
|
||||
}
|
||||
|
||||
write (msg);
|
||||
cerr << "Sent PM message " << msg << endl;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,6 @@ SplashLayout::SplashLayout (Push2& p, Session& s, std::string const & name)
|
||||
rc.add_subdirectory_to_paths ("resources");
|
||||
|
||||
if (!find_file (rc, PROGRAM_NAME "-splash.png", splash_file)) {
|
||||
std::cerr << "Cannot find splash screen image file\n";
|
||||
throw failed_constructor();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user