Skip to content
Permalink
Browse files

Fix VST track cloning in Beat/Bassline editor

  • Loading branch information...
PhysSong committed Aug 7, 2018
1 parent 9799f3c commit fb5c8f510a6cba94fc5e32e6654d67fa0f2abc9d
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/core/BBTrackContainer.cpp
@@ -95,10 +95,13 @@ tact_t BBTrackContainer::lengthOfBB( int _bb ) const
MidiTime max_length = MidiTime::ticksPerTact();

const TrackList & tl = tracks();
for( TrackList::const_iterator it = tl.begin(); it != tl.end(); ++it )
for (Track* t : tl)
{
max_length = qMax( max_length,
( *it )->getTCO( _bb )->length() );
// Don't create TCOs here if not exist
if (_bb < t->numOfTCOs())
{
max_length = qMax(max_length, t->getTCO( _bb )->length());
}
}

return max_length.nextFullTact();

0 comments on commit fb5c8f5

Please sign in to comment.
You can’t perform that action at this time.