Skip to content

Instantly share code, notes, and snippets.

@identity2
Created June 8, 2019 12:50
Show Gist options
  • Save identity2/7383818f3fafbb7a622012b4ed6a9114 to your computer and use it in GitHub Desktop.
Save identity2/7383818f3fafbb7a622012b4ed6a9114 to your computer and use it in GitHub Desktop.
rhythm game
//the current position of the song (in seconds)
float songPosition;
//the current position of the song (in beats)
float songPosInBeats;
//the duration of a beat
float secPerBeat;
//how much time (in seconds) has passed since the song started
float dsptimesong;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment