projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56f5bcf
)
partial fix for #5973 (multi-track midi file import)
author
Robin Gareus
<robin@gareus.org>
Sun, 28 Sep 2014 18:36:04 +0000
(20:36 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sun, 28 Sep 2014 18:36:04 +0000
(20:36 +0200)
libs/ardour/import.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/import.cc
b/libs/ardour/import.cc
index e86e500ed93ff6d12308e5c8db4b289a749c5aee..6b58621979911cdc601ea43b50d0c75e5852afa5 100644
(file)
--- 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);