From a43d53e3b92b02f4c35b4935509bf523f7630d94 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Sep 2008 18:08:18 +0000 Subject: - 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 --- libs/ardour/automatable.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour/automatable.cc') 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 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); -- cgit v1.2.3