int delta = sorted.size() - route_table.size();
if ( initial < 0 || ( delta > 0 && initial > delta ) )
{
+#ifdef DEBUG
cout << "not switching to " << initial << endl;
+#endif
return;
}
_current_initial_bank = initial;
}
catch( exception & e )
{
+#ifdef DEBUG
cout << "set_active to false because exception caught: " << e.what() << endl;
+#endif
_active = false;
throw;
}
}
else
{
+#ifdef DEBUG
cout << "Button " << name << " not found" << endl;
- }
+#endif
+ }
}
// send messages to surface to set controls to correct values
}
catch ( exception & e )
{
+#ifdef DEBUG
cout << "MackieControlProtocol::close caught exception: " << e.what() << endl;
+#endif
}
for( MackiePorts::iterator it = _ports.begin(); it != _ports.end(); ++it )
}
catch ( exception & e )
{
+#ifdef DEBUG
cout << "MackieControlProtocol::close caught exception: " << e.what() << endl;
+#endif
}
}
}
catch ( exception & e )
{
+#ifdef DEBUG
cout << "exception in MackieControlProtocol::set_state: " << e.what() << endl;
+#endif
return -1;
}
}
LedState MackieControlProtocol::rewind_press( Button & button )
{
- session->request_transport_speed( -2.0 );
+ session->request_transport_speed( -4.0 );
return on;
}
LedState MackieControlProtocol::ffwd_press( Button & button )
{
- session->request_transport_speed( 2.0 );
+ session->request_transport_speed( 4.0 );
return on;
}
}
else
{
+#ifdef DEBUG
cout << "parameter changed: " << name << endl;
+#endif
}
}