[PD] Concatenating two atoms into one?

jayrope jayrope at gmail.com
Thu Oct 1 00:44:57 CEST 2020


Hello list,
I want to combine integer values from two sources into ONE new value,
preferably a number, just like

Source 1 sends 1, source 2 sends 1, result = 11
Src 3 sends 3, src 2 sends 8, result = 38

and so on.

Example patch below. A resulting message combines two values, but
doesn't forward anything to a subsequent float or number object.
(OSX 10.9.5, PD 0.50-2)


#N canvas 405 254 606 341 12;
#X obj 31 23 hsl 128 15 1 4 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 1200 0;
#X obj 178 23 hsl 128 15 1 4 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 3900 0;
#X obj 204 133 pack 1 1;
#X obj 28 73 f;
#X obj 28 43 i;
#X obj 175 43 i;
#X floatatom 186 229 5 0 0 0 - - -;
#X msg 204 181 11;
#X msg 204 157 set \$1\$2;
#X obj 186 205 float;
#X obj 175 79 t b b f;
#X connect 0 0 4 0;
#X connect 1 0 5 0;
#X connect 2 0 8 0;
#X connect 3 0 2 0;
#X connect 4 0 3 0;
#X connect 5 0 10 0;
#X connect 7 0 9 0;
#X connect 8 0 7 0;
#X connect 9 0 6 0;
#X connect 10 0 9 0;
#X connect 10 1 3 0;
#X connect 10 2 2 1;


would appreciate a hint. Thanx very much in advance!

-- 
jayrope
+++
jayrope.com
aircushionfinish.com
kliklak.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20201001/64fe9c06/attachment.sig>


More information about the Pd-list mailing list