Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. void Update()
  2. {
  3. //calculate the position in seconds
  4. songPosition = (float) (AudioSettings.dspTime - dsptimesong);
  5.  
  6. //calculate the position in beats
  7. songPosInBeats = songPosition / secPerBeat;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement