mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
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:
parent
637e70749c
commit
8a18929d57
16 changed files with 342 additions and 625 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue