diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-28 20:36:04 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-28 20:36:04 +0200 |
commit | f44501504cd64c35e2b4e9d3bf63d0a9bd713c78 (patch) | |
tree | da616fad3e95da787a6870a1c1e5c079ebd13e67 /libs/ardour/import.cc | |
parent | 56f5bcffce7955d14e2ab87d8e380df6edf55c86 (diff) |
partial fix for #5973 (multi-track midi file import)
Diffstat (limited to 'libs/ardour/import.cc')
-rw-r--r-- | libs/ardour/import.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/import.cc b/libs/ardour/import.cc index e86e500ed9..6b58621979 100644 --- a/libs/ardour/import.cc +++ b/libs/ardour/import.cc @@ -130,7 +130,12 @@ Session::get_paths_for_new_sources (bool /*allow_replacing*/, const string& impo switch (type) { case DataType::MIDI: - filepath = new_midi_source_path (basename); + if (channels > 1) { + string mchn_name = string_compose ("%1-t%2", basename, n); + filepath = new_midi_source_path (mchn_name); + } else { + filepath = new_midi_source_path (basename); + } break; case DataType::AUDIO: filepath = new_audio_source_path (basename, channels, n, false, false); |