[PD] Concatenating two atoms into one?

hans w. koch hansw.koch at gmail.com
Thu Oct 1 01:50:03 CEST 2020


how about just mulitplying source 1 by 10 and then adding to source 2?
or am i missing something? (patch attached)

hth

hans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: combination.pd
Type: application/octet-stream
Size: 639 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20201001/51e5b26e/attachment.obj>
-------------- next part --------------



> Am 01.10.2020 um 00:44 schrieb jayrope <jayrope at gmail.com>:
> 
> 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
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list