[PD] symbols and route

Damian Stewart damian at frey.co.nz
Sun Nov 23 11:41:55 CET 2008


this has probably been discussed before, but i don't have internet right
now and so cannot check.

i'm trying to build a generic store-anything object. see attached. but i'm
having some trouble getting around the weird way Pd seems to handle
symbols, particularly with [route].

according to the help patch for [route]:

'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? this isn't what's happening.
in fact, the 3rd outlet is sending out just 'mysym'. if i send in

[symbol mysym (

then the 1st outlet sends out 'symbol mysym'. but, if i want to route the
'mysym' message somewhere:

[route mysym]

it never gets picked up on if it is being sent out as 'symbol mysym'

... so. it seems i need to use [select] and not [route] in this case. if
i'm not mistaken, the help patch for [route] needs updating.

chur
d

-- 
damian stewart | skype: damiansnz | damian at frey.co.nz
frey | live art with machines | http://www.frey.co.nz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: d-a-help.pd
Type: application/puredata
Size: 1350 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20081123/8c5ed118/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d-a.pd
Type: application/puredata
Size: 1788 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20081123/8c5ed118/attachment-0001.bin>


More information about the Pd-list mailing list