Frank Barknecht a écrit :
Hallo,
attached is a little assignment for aspiring Pd users. The most elegant (e.g. shortest) solution gets a free handshake! ;)
Ciao
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
#N canvas 499 263 626 380 10; #X floatatom 142 286 5 0 0 0 - - -; #X floatatom 75 286 5 0 0 0 - - -; #X msg 75 122 1 2; #X obj 75 235 unpack 0 0; #X msg 116 151 3; #X text 166 151 but this should set the number boxes to "3" and "100". ; #X text 112 121 this should set the number boxes to "1" and "2".; #X text 42 29 Assignment 1:; #X text 67 58 Print the second element from a list. If there is no second element in the list because the list is too short , send 100 instead.; #X obj 142 314 print Second_Element; #N canvas 0 0 450 300 ???????? 0; #X obj 89 47 inlet; #X obj 89 240 outlet; #X text 178 52 Fill in this part.; #X obj 88 78 t a b; #X obj 89 105 unpack f f; #X msg 139 134 100; #X obj 88 159 pack f f; #X connect 0 0 3 0; #X connect 3 0 4 0; #X connect 3 1 5 0; #X connect 4 0 6 0; #X connect 4 1 6 1; #X connect 5 0 6 1; #X connect 6 0 1 0; #X restore 75 193 pd ????????; #X text 176 193 <== fill in this part.; #X connect 0 0 9 0; #X connect 2 0 10 0; #X connect 3 0 1 0; #X connect 3 1 0 0; #X connect 4 0 10 0; #X connect 10 0 3 0;