mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 15:36:24 +01:00
Fix MIDI fork using a modified version of a patch from warrenfalk. Fixes #3595.
git-svn-id: svn://localhost/ardour2/branches/3.0@8252 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
27bdf4700a
commit
1e11c4bc57
1 changed files with 3 additions and 3 deletions
|
|
@ -99,8 +99,8 @@ boost::shared_ptr<MidiRegion>
|
|||
MidiRegion::clone ()
|
||||
{
|
||||
BeatsFramesConverter bfc (_session.tempo_map(), _position);
|
||||
double bbegin = bfc.from (_position);
|
||||
double bend = bfc.from (last_frame() + 1);
|
||||
Evoral::MusicalTime const bbegin = bfc.from (_start);
|
||||
Evoral::MusicalTime const bend = bfc.from (_start + _length);
|
||||
|
||||
boost::shared_ptr<MidiSource> ms = midi_source(0)->clone (bbegin, bend);
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ MidiRegion::clone ()
|
|||
|
||||
plist.add (Properties::name, ms->name());
|
||||
plist.add (Properties::whole_file, true);
|
||||
plist.add (Properties::start, 0);
|
||||
plist.add (Properties::start, _start);
|
||||
plist.add (Properties::length, _length);
|
||||
plist.add (Properties::layer, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue