diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-06-21 13:05:37 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-06-21 13:05:58 -0400 |
commit | 8a18929d57ef82b1233278668a9efe78fe1c17f0 (patch) | |
tree | 41dd4f8bb487f6a570987c04c7601dae9ca3edf9 /libs/evoral/src/ControlSet.cpp | |
parent | 637e70749cf32331df4d09b56f3c819f42f8097e (diff) |
remove Session::controllable_by_descriptor() and move code into GenericMIDI code (the only user).
This also removes enums introduced to describe well-known parameters for Mixbus. Lookup now involves string
parsing every time, but this is not likely to be a notable cost.
Diffstat (limited to 'libs/evoral/src/ControlSet.cpp')
-rw-r--r-- | libs/evoral/src/ControlSet.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/evoral/src/ControlSet.cpp b/libs/evoral/src/ControlSet.cpp index cc8d7c60a7..f5a16057aa 100644 --- a/libs/evoral/src/ControlSet.cpp +++ b/libs/evoral/src/ControlSet.cpp @@ -74,6 +74,8 @@ ControlSet::control (const Parameter& parameter, bool create_if_missing) { Controls::iterator i = _controls.find(parameter); + cerr << "Look for " << parameter << endl; + if (i != _controls.end()) { return i->second; @@ -103,3 +105,11 @@ ControlSet::clear_controls () } } // namespace Evoral + +/* No good place for this so just put it here */ + +std::ostream& +std::operator<< (std::ostream & str, Evoral::Parameter const & p) +{ + return str << p.type() << '-' << p.id() << '-' << (int) p.channel(); +} |