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

Feb 23, 2012 at 8:32pm

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

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!

Feb 23, 2012 at 10:39pm

Maybe use zl.slice

Feb 25, 2012 at 1:57am

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

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

Feb 27, 2012 at 8:54pm

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


You must be logged in to reply to this topic.