diff options
author | David Robillard <d@drobilla.net> | 2014-12-01 14:28:03 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-01 23:35:24 -0500 |
commit | 767c0238a34ef4acc4d345e88cd5ddb0c8a8e421 (patch) | |
tree | fed11fb6f4e4e08a7c35eb45f53aea70dc66e4f8 /libs/evoral/evoral/TypeMap.hpp | |
parent | cb8abbe8d2f0e4dfe52bd35613ebba7689628eca (diff) |
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.
Diffstat (limited to 'libs/evoral/evoral/TypeMap.hpp')
-rw-r--r-- | libs/evoral/evoral/TypeMap.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/evoral/evoral/TypeMap.hpp b/libs/evoral/evoral/TypeMap.hpp index 987706e541..154cdff613 100644 --- a/libs/evoral/evoral/TypeMap.hpp +++ b/libs/evoral/evoral/TypeMap.hpp @@ -28,6 +28,7 @@ namespace Evoral { class Parameter; +class ParameterDescriptor; /** The applications passes one of these which provide the implementation * with required information about event types in an opaque, type neutral way @@ -50,11 +51,8 @@ public: */ virtual uint32_t midi_event_type(uint8_t status) const = 0; - /** Return true iff parameter should be locked to integer boundaries */ - virtual bool is_integer(const Evoral::Parameter& param) const = 0; - - /** Create a parameter with the given type ID */ - virtual Parameter new_parameter(uint32_t type, uint8_t channel, uint32_t id) const = 0; + /** Return the description of a parameter. */ + virtual const ParameterDescriptor& descriptor(const Parameter& param) const = 0; virtual std::string to_symbol(const Parameter& param) const = 0; }; |