Is there some easy way of generating the epoch time in pd?
I know about Zexy's [date] and [time] objects ..... they could do it with a bit of work.
or ..... does anyone know of a way to generate some unique string (or number) .... its just so that I can hit a bang at anytime and record the current audio output into a file, without having to worry about the file name.
Etienne
e deleflie wrote:
Is there some easy way of generating the epoch time in pd?
I know about Zexy's [date] and [time] objects ..... they could do it with a bit of work.
or ..... does anyone know of a way to generate some unique string (or number) .... its just so that I can hit a bang at anytime and record the current audio output into a file, without having to worry about the file name.
in this case i definitely would use [date]+[time]+[random].
the problem with a real epoch time is, that Pd cannot handle it as a number (due to restrictions of 32bit float which is Pd's internal numeric format), so it would have to be a symbol, which actually limits the usefulness to generating UID.
gfmsdr IOhannes
On Fri, 23 Jan 2009, IOhannes m zmoelnig wrote:
the problem with a real epoch time is, that Pd cannot handle it as a number (due to restrictions of 32bit float which is Pd's internal numeric format), so it would have to be a symbol, which actually limits the usefulness to generating UID.
Any number can be split in a way that two or more numbers will express the same. For something "naturally fixed-point" as those time values are, you could divide by 10000 or 100000 or 1000000 and transmit both the result and reminder. For the particular case of long spans of time in seconds, you may find that 86400 is a good divisor, for babylonian reasons. That's the divisor I use in my external [unix_time].
Granted it would be easier if we had just the same int32 type that jMax had. I still miss it... I mean int32, not jMax.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec
I just saw this. if you have pd-ext, try rec-name from my abs in jmmmp.
or, in case you're on windows, I send here the files (the last windows
build is from last summer).
Is there some easy way of generating the epoch time in pd?
I know about Zexy's [date] and [time] objects ..... they could do it with a bit of work.
or ..... does anyone know of a way to generate some unique string (or number) .... its just so that I can hit a bang at anytime and record the current audio output into a file, without having to worry about the file name.
Etienne
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list