translate object > ms to hh:mm:ss > how to get of the hours?

shaar's icon

i'm using this to show the length of soundfiles i'm working with, both as a static display as well as with elapsed time/remaing time counters that change while the files are playing.

how can i get rid of the hours displayed in the message boxes for the timers (in other words, the first zeros)?

none of my soundfiles are longer than 15 minutes, so the hours are irrelevant.

i'm assuming i could unpack the message, and then repack it leaving the first section by the wayside, but i'm just wondering it there's a simpler way to strip the first digit (and a space i guess) from a message that i don't know about. might very well be a max basic i just never had a use for.

many thanks in advance!

AudioLemon's icon

Maybe use zl.slice

shaar's icon

thanks grizzle! will try this and report back when i have

oh and i meant "how to get rid of the hours" of course

shaar's icon

[zl slice] did the trick, thanks very much for pointing me in the right direction!