This commit is contained in:
Glenn Maynard
2005-01-22 19:25:05 +00:00
parent cd9b66220a
commit a769bc7c41
4 changed files with 15 additions and 24 deletions
+7 -1
View File
@@ -1564,7 +1564,13 @@ void NoteDataUtil::AddTapAttacks( NoteData &nd, Song* pSong )
float fBeat = pSong->GetBeatFromElapsedTime( sec );
int iBeat = (int)fBeat;
int iTrack = iBeat % nd.GetNumTracks(); // deterministically calculates track
nd.SetTapAttackNote( iTrack, BeatToNoteRow(fBeat), szAttacks[rand()%ARRAYSIZE(szAttacks)], 15 );
TapNote tn(
TapNote::attack, TapNote::original,
szAttacks[rand()%ARRAYSIZE(szAttacks)],
15.0f,
false,
0 );
nd.SetTapNote( iTrack, BeatToNoteRow(fBeat), tn );
}
}