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