mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-11 07:56:27 +01:00
* fixed bug: MIDI automations could not be restored from XML (NullAutomationType)
git-svn-id: svn://localhost/ardour2/branches/3.0@3331 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4e745fc17c
commit
7fd65ed78d
1 changed files with 21 additions and 0 deletions
|
|
@ -56,6 +56,27 @@ Parameter::Parameter(const std::string& str)
|
|||
sscanf(str.c_str(), "midicc-%d-%d", &channel, &_id);
|
||||
assert(channel < 16);
|
||||
_channel = channel;
|
||||
} else if (str.length() > 16 && str.substr(0, 16) == "midi-pgm-change-") {
|
||||
_type = MidiPgmChangeAutomation;
|
||||
uint32_t channel = 0;
|
||||
sscanf(str.c_str(), "midi-pgm-change-%d", &channel);
|
||||
assert(channel < 16);
|
||||
_id = 0;
|
||||
_channel = channel;
|
||||
} else if (str.length() > 18 && str.substr(0, 18) == "midi-pitch-bender-") {
|
||||
_type = MidiPitchBenderAutomation;
|
||||
uint32_t channel = 0;
|
||||
sscanf(str.c_str(), "midi-pitch-bender-%d", &channel);
|
||||
assert(channel < 16);
|
||||
_id = 0;
|
||||
_channel = channel;
|
||||
} else if (str.length() > 24 && str.substr(0, 24) == "midi-channel-aftertouch-") {
|
||||
_type = MidiChannelAftertouchAutomation;
|
||||
uint32_t channel = 0;
|
||||
sscanf(str.c_str(), "midi-channel-aftertouch-%d", &channel);
|
||||
assert(channel < 16);
|
||||
_id = 0;
|
||||
_channel = channel;
|
||||
} else {
|
||||
PBD::warning << "Unknown Parameter '" << str << "'" << endmsg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue