summaryrefslogtreecommitdiff
path: root/libs/ardour/automatable.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-21 18:08:18 +0000
committerDavid Robillard <d@drobilla.net>2008-09-21 18:08:18 +0000
commita43d53e3b92b02f4c35b4935509bf523f7630d94 (patch)
treef6289ef64f48cdedb37b24830698950c00ab668c /libs/ardour/automatable.cc
parentca12fe973324cbc000bf2aa46d9c378022a14fa2 (diff)
- Call channel pressure channel pressure, not aftertouch (that's key specific).
- Add context menu items to add a bender or pressure automation track to a MIDI track. - Now just need to figure out creation of program change events and you can create everything MIDI ardour understands from the GUI... git-svn-id: svn://localhost/ardour2/branches/3.0@3782 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/automatable.cc')
-rw-r--r--libs/ardour/automatable.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc
index f77975c303..a54bad5f6f 100644
--- a/libs/ardour/automatable.cc
+++ b/libs/ardour/automatable.cc
@@ -161,8 +161,8 @@ Automatable::describe_parameter (Parameter param)
return string_compose("Program [%1]", int(param.channel()) + 1);
} else if (param.type() == MidiPitchBenderAutomation) {
return string_compose("Bender [%1]", int(param.channel()) + 1);
- } else if (param.type() == MidiChannelAftertouchAutomation) {
- return string_compose("Aftertouch [%1]", int(param.channel()) + 1);
+ } else if (param.type() == MidiChannelPressureAutomation) {
+ return string_compose("Pressure [%1]", int(param.channel()) + 1);
} else {
return param.symbol();
}
@@ -392,7 +392,7 @@ Automatable::control_factory(const Evoral::Parameter& param)
{
boost::shared_ptr<AutomationList> list(new AutomationList(param));
Evoral::Control* control = NULL;
- if (param.type() >= MidiCCAutomation && param.type() <= MidiChannelAftertouchAutomation) {
+ if (param.type() >= MidiCCAutomation && param.type() <= MidiChannelPressureAutomation) {
control = new MidiTrack::MidiControl((MidiTrack*)this, param);
} else {
control = new AutomationControl(_a_session, param);