projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c6541
)
Fix stretch for MIDI regions (#6164).
author
David Robillard
<d@drobilla.net>
Sat, 14 Mar 2015 04:39:52 +0000
(
00:39
-0400)
committer
David Robillard
<d@drobilla.net>
Sat, 14 Mar 2015 04:39:52 +0000
(
00:39
-0400)
libs/ardour/filter.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/filter.cc
b/libs/ardour/filter.cc
index b723de1e56508af42ada0c7c7932e477bf0d4d32..d782db96f24a1679903f003713f96b9bff17f602 100644
(file)
--- a/
libs/ardour/filter.cc
+++ b/
libs/ardour/filter.cc
@@
-59,7
+59,9
@@
Filter::make_new_sources (boost::shared_ptr<Region> region, SourceList& nsrcs, s
}
}
- string path = session.new_audio_source_path (name, region->n_channels(), i, false, false);
+ const string path = (region->data_type() == DataType::MIDI)
+ ? session.new_midi_source_path (name)
+ : session.new_audio_source_path (name, region->n_channels(), i, false, false);
if (path.empty()) {
error << string_compose (_("filter: error creating name for new file based on %1"), region->name())