diff options
author | David Robillard <d@drobilla.net> | 2011-09-14 22:49:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-09-14 22:49:22 +0000 |
commit | 728f510e8c542db2907dcd439a9ab99d07282220 (patch) | |
tree | 6aa01740b1def7a1fa0a32e22fef929bdc231a62 /include | |
parent | e18380569bdbe1926be7540f3e2f9ebdf49a8e70 (diff) | |
download | ingen-728f510e8c542db2907dcd439a9ab99d07282220.tar.gz ingen-728f510e8c542db2907dcd439a9ab99d07282220.tar.bz2 ingen-728f510e8c542db2907dcd439a9ab99d07282220.zip |
Support lv2:sampleRate controls (mostly) correctly.
Fix initial control port values (was always 0.0).
Fix numeric values in control window.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3460 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'include')
-rw-r--r-- | include/ingen/client/NodeModel.hpp | 5 | ||||
-rw-r--r-- | include/ingen/client/PortModel.hpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/ingen/client/NodeModel.hpp b/include/ingen/client/NodeModel.hpp index efc8514a..c874e6fb 100644 --- a/include/ingen/client/NodeModel.hpp +++ b/include/ingen/client/NodeModel.hpp @@ -66,9 +66,10 @@ public: const Ports& ports() const { return _ports; } void default_port_value_range(SharedPtr<const PortModel> port, - float& min, float& max) const; + float& min, float& max, uint32_t srate=1) const; + void port_value_range(SharedPtr<const PortModel> port, - float& min, float& max) const; + float& min, float& max, uint32_t srate=1) const; std::string port_label(SharedPtr<const PortModel> port) const; diff --git a/include/ingen/client/PortModel.hpp b/include/ingen/client/PortModel.hpp index e8e74f8a..36ab847f 100644 --- a/include/ingen/client/PortModel.hpp +++ b/include/ingen/client/PortModel.hpp @@ -51,7 +51,7 @@ public: inline bool is_input() const { return (_direction == INPUT); } inline bool is_output() const { return (_direction == OUTPUT); } - bool port_property(const std::string& uri) const; + bool port_property(const Raul::URI& uri) const; bool is_numeric() const { return is_a(PortType::CONTROL); } bool is_logarithmic() const { return port_property("http://drobilla.net/ns/ingen#logarithmic"); } |