You need to generate a symbol, then Pd won't strip the zeros off. You can do that with:
[makefilename %02d] That will give you just hh. You could do one of those per hh mm ss SSS, then combine them into a list and feed it thru [zexy/list2symbol :] .hc On Nov 2, 2011, at 9:45 PM, Mikael Fernstrom wrote: > I need to generate live timecode to overlay on a video of a cinema projection > screen. > > So far PD/GEM works fine, but does anybody have a quick-and-easy suggestion > for formatting numbers/strings fed into [text2d] to get leading zeros? > > My desired format is hh:mm:ss:SSS > > Cheers! > > /Mikael > > > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list ---------------------------------------------------------------------------- The arc of history bends towards justice. - Dr. Martin Luther King, Jr. _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list