mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
Replace half-baked param metadata with descriptor.
Among other things, this means that automation controls/lists have the actual min/max/normal/toggled of parameters, and not those inferred from the Parameter ID, which is not correct for things like plugin parameters. Pushing things down to the Evoral::ParmeterDescriptor may be useful in the future to have lists do smarter things based on parameter range, but currently I have just pushed down the above-mentioned currently used attributes.
This commit is contained in:
parent
cb8abbe8d2
commit
767c0238a3
31 changed files with 484 additions and 297 deletions
|
|
@ -123,7 +123,7 @@ MidiSource::set_state (const XMLNode& node, int /*version*/)
|
|||
error << _("Missing parameter property on InterpolationStyle") << endmsg;
|
||||
return -1;
|
||||
}
|
||||
Evoral::Parameter p = EventTypeMap::instance().new_parameter (prop->value());
|
||||
Evoral::Parameter p = EventTypeMap::instance().from_symbol (prop->value());
|
||||
|
||||
if ((prop = (*i)->property (X_("style"))) == 0) {
|
||||
error << _("Missing style property on InterpolationStyle") << endmsg;
|
||||
|
|
@ -138,7 +138,7 @@ MidiSource::set_state (const XMLNode& node, int /*version*/)
|
|||
error << _("Missing parameter property on AutomationState") << endmsg;
|
||||
return -1;
|
||||
}
|
||||
Evoral::Parameter p = EventTypeMap::instance().new_parameter (prop->value());
|
||||
Evoral::Parameter p = EventTypeMap::instance().from_symbol (prop->value());
|
||||
|
||||
if ((prop = (*i)->property (X_("state"))) == 0) {
|
||||
error << _("Missing state property on AutomationState") << endmsg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue