remove traces

This commit is contained in:
Glenn Maynard
2003-10-27 04:29:45 +00:00
parent d7e040923c
commit 52af769bdb
-4
View File
@@ -726,18 +726,14 @@ void NoteDataUtil::SnapToNearestNoteType( NoteData &in, NoteType nt1, NoteType n
// iterate over all TapNotes in the interval and snap them
for( int i=iNoteIndexBegin; i<=iNoteIndexEnd; i++ )
{
LOG->Trace("index %i", i);
int iOldIndex = i;
float fOldBeat = NoteRowToBeat( iOldIndex );
float fNewBeat1 = froundf( fOldBeat, fSnapInterval1 );
float fNewBeat2 = froundf( fOldBeat, fSnapInterval2 );
LOG->Trace("oldbeat %.2f, nb1 %.2f, nb2 %.2f", fOldBeat, fNewBeat1, fNewBeat2);
bool bNewBeat1IsCloser = fabsf(fNewBeat1-fOldBeat) < fabsf(fNewBeat2-fOldBeat);
float fNewBeat = bNewBeat1IsCloser ? fNewBeat1 : fNewBeat2;
int iNewIndex = BeatToNoteRow( fNewBeat );
LOG->Trace("closer %i, newbeat %.2f, index %i",
bNewBeat1IsCloser, fNewBeat, iNewIndex);
for( int c=0; c<in.GetNumTracks(); c++ )
{