13
0

tweaks to TriggerBox::dump_custom_midi_bindings

This commit is contained in:
Paul Davis 2022-11-16 18:15:39 -07:00
parent 5a07da9255
commit 10e004f0ec

View File

@ -3978,7 +3978,7 @@ TriggerBox::dump_custom_midi_bindings (std::string const & path)
return -1;
}
f << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <ArdourMIDIBindings version=\"1.0.0\" name=\"The name of this set of bindings\">\n";
f << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ArdourMIDIBindings version=\"1.0.0\" name=\"The name of this set of bindings\">\n";
for (CustomMidiMap::iterator i = _custom_midi_map.begin(); i != _custom_midi_map.end(); ++i) {
string str = string_compose (X_("\t<Binding msg note=\"%1\" channel=\"%2\" action=\"Cues/trigger-slot-%1-%2\"/>\n"),
@ -3986,6 +3986,7 @@ TriggerBox::dump_custom_midi_bindings (std::string const & path)
i->first / 16, /* channel */
i->second.first,
i->second.second);
f << str;
}
f << "</ArdourMIDIBindings>\n";