summaryrefslogtreecommitdiff
path: root/libs/ardour/parameter.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-19 00:47:49 +0000
committerDavid Robillard <d@drobilla.net>2008-09-19 00:47:49 +0000
commitd357eca668044badcb4bab318e2e74cfffa9a0b0 (patch)
treeeab9bf33b194f9e37c20f84375e5caa748ee994a /libs/ardour/parameter.cc
parent3d976c5b727e4d55ce439b1d7c055a814477fa1a (diff)
Factor out sequencing related things into an independant new library: "evoral".
Anything related to the storage of events/values over a range of time lives in evoral. This includes MidiModel (Evoral::Sequence) and automation data (AutomationList (Evoral::ControlList), Automatable (Evoral::ControlSet), etc). libs/evoral synced with http://svn.drobilla.net/lad/trunk/evoral r1511. git-svn-id: svn://localhost/ardour2/branches/3.0@3754 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/parameter.cc')
-rw-r--r--libs/ardour/parameter.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/parameter.cc b/libs/ardour/parameter.cc
index 1b94e5dc4d..ea70ea7927 100644
--- a/libs/ardour/parameter.cc
+++ b/libs/ardour/parameter.cc
@@ -26,9 +26,7 @@ using namespace ARDOUR;
* (AutomationList automation-id property)
*/
Parameter::Parameter(const std::string& str)
- : _type(NullAutomation)
- , _id(0)
- , _channel(0)
+ : Evoral::Parameter (NullAutomation, 0)
{
if (str == "gain") {
_type = GainAutomation;
@@ -80,6 +78,8 @@ Parameter::Parameter(const std::string& str)
} else {
PBD::warning << "Unknown Parameter '" << str << "'" << endmsg;
}
+
+ init((AutomationType)_type); // set min/max/normal
}
@@ -87,7 +87,7 @@ Parameter::Parameter(const std::string& str)
* e.g. <AutomationList automation-id="whatthisreturns">
*/
std::string
-Parameter::to_string() const
+Parameter::symbol() const
{
if (_type == GainAutomation) {
return "gain";