never store NoteRows in floats
This commit is contained in:
@@ -174,9 +174,8 @@ bool IsNoteOfType( int row, NoteType t );
|
||||
CString NoteTypeToString( NoteType nt );
|
||||
|
||||
inline int BeatToNoteRow( float fBeatNum ) { return lrintf( fBeatNum * ROWS_PER_BEAT ); } // round
|
||||
inline int BeatToNoteRowNotRounded( float fBeatNum ) { return (int)( fBeatNum * ROWS_PER_BEAT ); };
|
||||
inline float NoteRowToBeat( float fNoteIndex ) { return fNoteIndex / (float)ROWS_PER_BEAT; }
|
||||
inline float NoteRowToBeat( int row ) { return NoteRowToBeat( (float)row ); }
|
||||
inline int BeatToNoteRowNotRounded( float fBeatNum ) { return (int)( fBeatNum * ROWS_PER_BEAT ); }
|
||||
inline float NoteRowToBeat( int iRow ) { return iRow / (float)ROWS_PER_BEAT; }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user