mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
MCP: more sensible version of previous commit, and better behaviour for play button after ffwd or rewind
git-svn-id: svn://localhost/ardour2/branches/3.0@12101 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ab8ebe97bb
commit
cafbc632fb
3 changed files with 6 additions and 15 deletions
|
|
@ -107,7 +107,6 @@ BasicUI::add_marker (const std::string& markername)
|
|||
void
|
||||
BasicUI::rewind ()
|
||||
{
|
||||
std::cerr << "request transport speed of " << session->transport_speed() - 1.5 << std::endl;
|
||||
session->request_transport_speed (session->transport_speed() - 1.5);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -503,7 +503,7 @@ MackieControlProtocol::play_press (Button &)
|
|||
again, jump back to where we started last time
|
||||
*/
|
||||
|
||||
transport_play (session->transport_rolling() == 1.0);
|
||||
transport_play (session->transport_speed() == 1.0);
|
||||
return none;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -462,21 +462,13 @@ Strip::vselect_event (Button& button, ButtonState bs)
|
|||
|
||||
if (ms & MackieControlProtocol::MODIFIER_SHIFT) {
|
||||
|
||||
/* get the corresponding vpot and whatever its
|
||||
* controlling
|
||||
*/
|
||||
|
||||
Pot* pot = _surface->pots[Pot::ID + _index];
|
||||
|
||||
if (pot) {
|
||||
boost::shared_ptr<AutomationControl> ac = pot->control ();
|
||||
boost::shared_ptr<AutomationControl> ac = _vpot->control ();
|
||||
|
||||
if (ac) {
|
||||
|
||||
/* reset to default/normal value */
|
||||
ac->set_value (ac->normal());
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue