diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-01 18:14:32 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-01-01 18:14:32 +0000 |
commit | 6572f421a40b30112dbe11a4eace115a6af1c83e (patch) | |
tree | f56d12cd4332940f807dc391d66fd2b55a86f86f /libs/ardour/route.cc | |
parent | 732ac7756ad9caa2ab4b0b181b78e103b967d0fc (diff) |
provide limited momentary note on/off MIDI binding option; remove some debugging output; add bank selector to generic MIDI UI
git-svn-id: svn://localhost/ardour2/branches/3.0@6430 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 29cc32bf24..3ae5e90b7b 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2852,14 +2852,30 @@ void Route::SoloControllable::set_value (float val) { bool bval = ((val >= 0.5f) ? true: false); +# if 0 + this is how it should be done + boost::shared_ptr<RouteList> rl (new RouteList); + rl->push_back (route); + + if (Config->get_solo_control_is_listen_control()) { + _session.set_listen (rl, bval); + } else { + _session.set_solo (rl, bval); + } +#else route.set_solo (bval, this); +#endif } float Route::SoloControllable::get_value (void) const { - return route.self_soloed() ? 1.0f : 0.0f; + if (Config->get_solo_control_is_listen_control()) { + return route.listening() ? 1.0f : 0.0f; + } else { + return route.self_soloed() ? 1.0f : 0.0f; + } } void |