Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update()
- {
- //calculate the position in seconds
- songPosition = (float) (AudioSettings.dspTime - dsptimesong);
- //calculate the position in beats
- songPosInBeats = songPosition / secPerBeat;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement