-
Song time tracker/timer help
I have a bit of a problem, I mean, I got it to work semi-automatically, I’m making a time elapsed / end time timer for songs, so example: “01:23 / 03:21”.
I’ve been able to make the “current time” track automatically, but I’d like the “end time” to be defined based on the end point of the layer length, would that be possible?
Current expression:
endtime = " / 02:30" //end time;
slider = Math.round(effect("Slider Control")("Slider")) //Treat slider numbers as rounded up;
sec = slider%60 //When the slider hits 60;
min = Math.floor(slider/60) //reset and add a number to the minute counter;
function addZero(n){ if (n<10) return "0" + n else return n } //convert 0:00 to 01:23 or current time counter;
addZero(min) + ":" + addZero(sec) + endtime //Show 01:23 / 03:21;
And the slider only has:
time;
But yeah, as you can see, I have to set endtime myself, but it would be more convenient if it could just do everything automatically. If it’s not possible, setting the endtime manually isn’t the end of the world.