fix skippy, etc. taking a long time
This commit is contained in:
@@ -968,9 +968,12 @@ void NoteDataUtil::InsertIntelligentTaps(
|
|||||||
/* Start on a multiple of fBeatInterval. */
|
/* Start on a multiple of fBeatInterval. */
|
||||||
iStartIndex = Quantize( iStartIndex, iWindowStrideRows );
|
iStartIndex = Quantize( iStartIndex, iWindowStrideRows );
|
||||||
|
|
||||||
// Insert a beat in the middle of every fBeatInterval.
|
FOREACH_NONEMPTY_ROW_ALL_TRACKS_RANGE( inout, i, iStartIndex, iEndIndex )
|
||||||
for( int i=iStartIndex; i<iEndIndex; i+=iWindowStrideRows )
|
|
||||||
{
|
{
|
||||||
|
// Insert a beat in the middle of every fBeatInterval.
|
||||||
|
if( i % iWindowStrideRows != 0 )
|
||||||
|
continue; // even beats only
|
||||||
|
|
||||||
int iRowEarlier = i;
|
int iRowEarlier = i;
|
||||||
int iRowLater = i + iWindowSizeRows;
|
int iRowLater = i + iWindowSizeRows;
|
||||||
int iRowToAdd = i + iInsertOffsetRows;
|
int iRowToAdd = i + iInsertOffsetRows;
|
||||||
|
|||||||
Reference in New Issue
Block a user