Time clock/Countdown effect issue. Ahead of real time
So I put a time icon in my song so it can have a little more visual appearance. Just one issue...It's a few seconds ahead of how long the song actually is. I put in the code
amtOfDigits = 2;
seconds = Math.round( time % 59 );
minutes = Math.floor( time / 59 );
function addLeadingZeroes( v ){
for( i = 0; i < Math.abs( amtOfDigits - (v + "").length ); i++)
v = "0" + v;
return v;
} addLeadingZeroes(minutes) + ":" + addLeadingZeroes(seconds)
Notice the song is on 3 minutes but the time says 3:03


