fix skippy, etc. taking a long time

This commit is contained in:
Glenn Maynard
2005-02-01 01:02:55 +00:00
parent 57f5c487bc
commit 741018a842
+5 -2
View File
@@ -968,9 +968,12 @@ void NoteDataUtil::InsertIntelligentTaps(
/* Start on a multiple of fBeatInterval. */
iStartIndex = Quantize( iStartIndex, iWindowStrideRows );
// Insert a beat in the middle of every fBeatInterval.
for( int i=iStartIndex; i<iEndIndex; i+=iWindowStrideRows )
FOREACH_NONEMPTY_ROW_ALL_TRACKS_RANGE( inout, i, iStartIndex, iEndIndex )
{
// Insert a beat in the middle of every fBeatInterval.
if( i % iWindowStrideRows != 0 )
continue; // even beats only
int iRowEarlier = i;
int iRowLater = i + iWindowSizeRows;
int iRowToAdd = i + iInsertOffsetRows;