Hallo, Anton Woldhek hat gesagt: // Anton Woldhek wrote:
Yeah this is nice!
Thanks for sharing.
Here's another one: Zexy's "demux" cloned with list and route. ;) This is not an abstraction, but what I'd call an "idiom to remember", just like the idiom, how a counter is made out of [f] and [+]
Frank Barknecht _ ______footils.org_ __goto10.org__
i also really like the new messages box of 0.39.
here is a setable send.
cyrille
'Frank Barknecht' a écrit :
Hallo, Anton Woldhek hat gesagt: // Anton Woldhek wrote:
Yeah this is nice!
Thanks for sharing.
Here's another one: Zexy's "demux" cloned with list and route. ;) This is not an abstraction, but what I'd call an "idiom to remember", just like the idiom, how a counter is made out of [f] and [+]
Ciao
#N canvas 0 0 450 300 10; #X obj 131 118 list prepend 0; #X obj 224 95 hradio 15 1 0 4 empty empty empty 0 -6 0 8 -262144 -1 -1 3; #X obj 131 146 route 0 1 2 3; #X obj 131 251 print d1; #X obj 195 177 print d4; #X obj 174 202 print d3; #X obj 152 224 print d2; #X floatatom 131 81 5 0 0 0 - - -; #X text 111 39 "demux" with lists; #X connect 0 0 2 0; #X connect 1 0 0 1; #X connect 2 0 3 0; #X connect 2 1 6 0; #X connect 2 2 5 0; #X connect 2 3 4 0; #X connect 7 0 0 0;
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
#N canvas 136 550 450 300 10; #X obj 131 210 r foo; #X obj 179 210 r bar; #X floatatom 131 232 5 0 0 0 - - -; #X floatatom 179 232 5 0 0 0 - - -; #X msg 212 62 foo; #X msg 213 87 bar; #X floatatom 74 85 5 0 0 0 - - -; #X obj 74 161 set_send toto; #X obj 71 210 r toto; #X msg 22 108 this is a message; #X obj 71 232 print; #X msg 212 112 toto; #X text 254 114 set destination; #X text 39 61 data to send; #X text 116 9 setable send; #X connect 0 0 2 0; #X connect 1 0 3 0; #X connect 4 0 7 1; #X connect 5 0 7 1; #X connect 6 0 7 0; #X connect 8 0 10 0; #X connect 9 0 7 0; #X connect 11 0 7 1;
#N canvas 0 0 622 300 10; #X obj 46 30 inlet; #X obj 249 29 inlet; #X obj 83 192 list; #X msg 100 111 set , addsemi; #X msg 83 216 add2 $1; #X obj 64 139 list prepend add; #X obj 64 165 list trim; #X text 68 54 data to send; #X text 265 54 destination; #X msg 46 249 ; foo2 130 ;; #X obj 242 136 symbol $1; #N canvas 130 426 450 300 fake_loadbang 0; #X obj 27 16 inlet; #X obj 27 121 outlet; #X obj 27 69 t b b; #X msg 128 105 0; #X obj 27 41 spigot 1; #X connect 0 0 4 0; #X connect 2 0 1 0; #X connect 2 1 3 0; #X connect 3 0 4 1; #X connect 4 0 2 0; #X restore 242 109 pd fake_loadbang; #X obj 46 78 t b a b b b; #X text 319 129 allow initialisation for each creation of the abstraction , and not only when the patch is load; #X obj 242 159 route symbol; #X connect 0 0 12 0; #X connect 1 0 2 1; #X connect 2 0 4 0; #X connect 3 0 9 0; #X connect 4 0 9 0; #X connect 5 0 6 0; #X connect 6 0 9 0; #X connect 10 0 14 0; #X connect 11 0 10 0; #X connect 12 0 9 0; #X connect 12 1 5 0; #X connect 12 2 2 0; #X connect 12 3 3 0; #X connect 12 4 11 0; #X connect 14 0 2 1;
Hi Frank,
get your point ... Then again, (and please correct me if I'm wrong), I prefer using specialised (and precompiled) functions available in external libraries to having to reintervent them in an abstraction. Since pd is an interpreting language, this should also make a difference performance-wise ...
with kind regards, thoralf.
How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
Hallo, Thoralf Schulze hat gesagt: // Thoralf Schulze wrote:
get your point ... Then again, (and please correct me if I'm wrong), I prefer using specialised (and precompiled) functions available in external libraries to having to reintervent them in an abstraction. Since pd is an interpreting language, this should also make a difference performance-wise ...
There's always a tradeoff between performance and flexibility. If performance was the only thing important, we'd not use Pd at all.
The list operation I showed as examples in this thread mostly do things, that were not possible inside a single external yet (list-math, list-makefilename) or would use externals which do even more stuff like [nroute] or even [pyext].
And most importantly: A user can modify these operations to his own needs without having to write a new external, just by patching. That's a lot of flexibility for a generally minor performance loss.
And all with just one new object.
Frank Barknecht _ ______footils.org_ __goto10.org__