mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
partial fix for #5973 (multi-track midi file import)
This commit is contained in:
parent
56f5bcffce
commit
f44501504c
1 changed files with 6 additions and 1 deletions
|
|
@ -130,7 +130,12 @@ Session::get_paths_for_new_sources (bool /*allow_replacing*/, const string& impo
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case DataType::MIDI:
|
case DataType::MIDI:
|
||||||
|
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);
|
filepath = new_midi_source_path (basename);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case DataType::AUDIO:
|
case DataType::AUDIO:
|
||||||
filepath = new_audio_source_path (basename, channels, n, false, false);
|
filepath = new_audio_source_path (basename, channels, n, false, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue