Matching BPM

Blitz3D Forums/Blitz3D Programming/Matching BPM

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

- Find out the BPM of the tune (you can get software that will do this - often by tapping the spacebar to the beat)
- Turn this into a millisecs value bpm/60/1000 = number of beats per millisec
- Keep a constant record of how many millisecs have passed since the VERY first BEAT of the song.
- Program a script for each song something like :
16423 millisecs = up arrow
37446 millisecs = 'D' button
- As each event passes, based on a threshold value decide if the user pushed the button in time - this would also allow you to get 'perfect' presses (if abs(cuurent_millisecs-time_from_script)<10 then you_have_pressed_the_button_within_10_millisecs_of_the_correct_time()

Using this method you can also get quarter-notes / eigth notes (crotchets and quavers) to make the game harder.

:)