On Nov 23, 2008, at 8:01 AM, Frank Barknecht wrote:
Hallo, Damian Stewart hat gesagt: // Damian Stewart wrote:
'To avoid confusion between, say, the number 5 and the list
contining only the number 5, both messages match "float", and ditto for symbols.
An empty list matches "bang". In Pd these are all considered special cases
of lists.'so, by my reading of this, in particular, the bit that says "and
ditto for symbols", if i go[route symbol float]
and then send in
[mysym (
the 1st outlet should send out 'mysym', yes?
No.
Well, It's confusing, I admit, but "ditto for symbols" means: If you have a *list* containing only a symbol like "mysym" and a symbol containing "mysym" as data part ("symbol mysym") they are treated
the same.So "list mysym" and "symbol mysym" are equivalent. However a message of just "mysym" is neither a list- nor a symbol-message, instead it is a "mysm"-message. You can use [route mysym] to grab mysym-messages.
Look here: http://puredata.info/dev/PdMessages/ for a broader explanation.
As a general hint: Quite often it is useful to prepend [route] with [list trim] and stop worrying about the bomb, err, the list-messages:
[list trim] | [route freq pitch note]
You might also want to check the collection of instances where things
break down:
Help -> Browser -> manuals -> MessageOddness
.hc
Ciao
Frank Barknecht Do You RjDj.me? _
______footils.org__
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Man has survived hitherto because he was too ignorant to know how to
realize his wishes. Now that he can realize them, he must either
change them, or perish. -William Carlos Williams