diff options
author | David Robillard <d@drobilla.net> | 2008-09-21 18:08:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-21 18:08:18 +0000 |
commit | a43d53e3b92b02f4c35b4935509bf523f7630d94 (patch) | |
tree | f6289ef64f48cdedb37b24830698950c00ab668c /libs/ardour/parameter.cc | |
parent | ca12fe973324cbc000bf2aa46d9c378022a14fa2 (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/parameter.cc')
-rw-r--r-- | libs/ardour/parameter.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/parameter.cc b/libs/ardour/parameter.cc index 87b5d329a2..d6e9d16db5 100644 --- a/libs/ardour/parameter.cc +++ b/libs/ardour/parameter.cc @@ -68,10 +68,10 @@ Parameter::Parameter(const std::string& str) assert(channel < 16); _id = 0; _channel = channel; - } else if (str.length() > 24 && str.substr(0, 24) == "midi-channel-aftertouch-") { - _type = MidiChannelAftertouchAutomation; + } else if (str.length() > 24 && str.substr(0, 24) == "midi-channel-pressure-") { + _type = MidiChannelPressureAutomation; uint32_t channel = 0; - sscanf(str.c_str(), "midi-channel-aftertouch-%d", &channel); + sscanf(str.c_str(), "midi-channel-pressure-%d", &channel); assert(channel < 16); _id = 0; _channel = channel; @@ -111,8 +111,8 @@ Parameter::symbol() const return string_compose("midi-pgm-change-%1", int(_channel)); } else if (_type == MidiPitchBenderAutomation) { return string_compose("midi-pitch-bender-%1", int(_channel)); - } else if (_type == MidiChannelAftertouchAutomation) { - return string_compose("midi-channel-aftertouch-%1", int(_channel)); + } else if (_type == MidiChannelPressureAutomation) { + return string_compose("midi-channel-pressure-%1", int(_channel)); } else { PBD::warning << "Uninitialized Parameter symbol() called." << endmsg; return ""; |