summaryrefslogtreecommitdiff
path: root/libs/ardour/gain.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-06-27 15:51:50 +0000
committerDavid Robillard <d@drobilla.net>2007-06-27 15:51:50 +0000
commitd7bd270aa10b3a8669223debe4c1b572ae876e2b (patch)
treedb9ad92cb5096a54a9d7e91873fe73530ceaf21b /libs/ardour/gain.cc
parentd7afe01c307e35719dc1ee41c079f81f40f009df (diff)
Big ol' automation refactor.
Things with automation parameters now inherit from Automatable, which handles serialization, fetching/adding/removing parameters, etc. Use AutomationList everywhere instead of Curve, make Curve a member of AutomationList instead (towards other types of "Curve" needed for CC, among other things). Work towards MIDI CC sending "automation" tracks. git-svn-id: svn://localhost/ardour2/trunk@2069 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/gain.cc')
-rw-r--r--libs/ardour/gain.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/gain.cc b/libs/ardour/gain.cc
index 369df7348c..b067e6c08d 100644
--- a/libs/ardour/gain.cc
+++ b/libs/ardour/gain.cc
@@ -22,12 +22,12 @@
using namespace ARDOUR;
Gain::Gain ()
- : Curve (0.0, 2.0, 1.0f) /* XXX yuck; clamps gain to -inf .. +6db */
+ : AutomationList (ParamID(GainAutomation), 0.0, 2.0, 1.0f) /* XXX yuck; clamps gain to -inf .. +6db */
{
}
Gain::Gain (const Gain& other)
- : Curve (other)
+ : AutomationList (other)
{
}
@@ -35,7 +35,7 @@ Gain&
Gain::operator= (const Gain& other)
{
if (this != &other) {
- Curve::operator= (other);
+ AutomationList::operator= (other);
}
return *this;
}