Forums > MaxMSP

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

Feb 23 2012 | 8:32 pm

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 | 10:39 pm

Maybe use zl.slice

Feb 25 2012 | 1:57 am

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 | 8:54 pm

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

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP