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.
This commit is contained in:
Paul Davis 2018-06-21 13:05:37 -04:00
parent 637e70749c
commit 8a18929d57
16 changed files with 342 additions and 625 deletions

View file

@ -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();
}