handle MidiVelocityAutomation in the event type map code
This commit is contained in:
parent
3b1d4d8fa6
commit
1c54f0e4c0
@ -217,6 +217,8 @@ EventTypeMap::from_symbol(const string& str) const
|
|||||||
assert(channel < 16);
|
assert(channel < 16);
|
||||||
assert(p_id < 127);
|
assert(p_id < 127);
|
||||||
p_channel = channel;
|
p_channel = channel;
|
||||||
|
} else if (str == "midi-velocity") {
|
||||||
|
p_type = MidiVelocityAutomation;
|
||||||
} else {
|
} else {
|
||||||
PBD::warning << "Unknown Parameter '" << str << "'" << endmsg;
|
PBD::warning << "Unknown Parameter '" << str << "'" << endmsg;
|
||||||
}
|
}
|
||||||
@ -293,6 +295,8 @@ EventTypeMap::to_symbol(const Evoral::Parameter& param) const
|
|||||||
return std::string("midi-channel-pressure-") + PBD::to_string(param.channel());
|
return std::string("midi-channel-pressure-") + PBD::to_string(param.channel());
|
||||||
} else if (t == MidiNotePressureAutomation) {
|
} else if (t == MidiNotePressureAutomation) {
|
||||||
return std::string ("midi-note-pressure-") + PBD::to_string (param.channel()) + "-" + PBD::to_string (param.id());
|
return std::string ("midi-note-pressure-") + PBD::to_string (param.channel()) + "-" + PBD::to_string (param.id());
|
||||||
|
} else if (t == MidiVelocityAutomation) {
|
||||||
|
return "midi-velocity";
|
||||||
} else {
|
} else {
|
||||||
PBD::warning << "Uninitialized Parameter symbol() called." << endmsg;
|
PBD::warning << "Uninitialized Parameter symbol() called." << endmsg;
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
Reference in New Issue
Block a user