[PD] Concatenating floats

IOhannes m zmoelnig zmoelnig at iem.at
Mon Oct 1 14:45:40 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2012-10-01 13:23, Rick T wrote:
> Thanks for the info but two issues that pop up when I try this are 
> 1) when I use zexy date and time object there's no option for
> leading zeros

so you can hook the [makefilename %02d] directly to [date]/[time].

> if I split everything out as floats. 2) when I pipe the messagebox 
> [ $1$2$3$4$5$6$7$8$9$10$11$12$13$14 ] into the | add $1 | textfile
> 

i'm a bit confused what exactly you mean here.

i'd suggest to use the "standard" ascii-rendering of Pd's graphical
elements:
[foo] <-- object-box with "foo"
[bar( <-- message-box with "bar"
[...\ <-- number/symbol-box
|     <-- connection line


so your patch should look something like:

[$1$2$3$4$5$6$7$8$9$10$11$12$13$14(
|
[add $1(
|
[textfile]

this basically does not work, because the first message-box (with all
those dollars), will create a message with a _selector_
"19780729093021" and no atoms.
now "$1" in [add $1( will get replaced by the 1st atom of the incoming
message. since your message does not have any atoms, it will be
replaced by "0" (and you should get an error on the Pd-console)

the proper way to fix this, is by providing an explicit selector, e.g.
[symbol $1$2$3$4$5$6$7$8$9$10$11$12$13$14(
(which will create a message with the selector "symbol" and one atom
"19780729093021")

mcfgarsd
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlBpkHEACgkQkX2Xpv6ydvTZgwCg7Xr8jV+q7M9n+rFxz8H0Uzun
12wAmgJCavcRCwkyYBsFI0sSDLKIhIu1
=yEsQ
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2320 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121001/c3d55535/attachment-0001.bin>


More information about the Pd-list mailing list