[PD] Dev question
finnendahl at folkwang-hochschule.de
Wed Jan 30 14:41:34 CET 2002
Am Dienstag, den 29. Januar 2002 um 14:46:26 Uhr (-0800) schrieb Miller Puckette:
> Oh, so perhaps all you have to do is make the inlet take "list". "float"
> is automatically converted to "list" if necessary anyway. Maybe it's as
> easy as that...?
Not really, as this whole list-ops thing is mainly intended for
message constructing and passing. I would like to be able to use a
list as something, which doesn't get evaluated by the list object
(like a quoted list in lisp) and just append, join and prepend
("cons") in a very rudimentary form. I would be happy, if both inlets
could take A_ANYTHING and the different objects would take care of the
rest. The prepend object already exists, but you can't change the
argument at runtime.
In a way, I have some difficulty with the fact, that in pd the
distinction of lists and anything else is implemented by defining
that lists start with floats and use the message "list" as an implied
quote operator (and not "quote").
So I guess, the "pd-ish" solution would be, to have a general object,
(called list-ops or similar) which takes messages like "append blah
foo bang" and appends this to any list, which gets sent to its inlet.
Other messages could be "prepend foo bar", "sublis 2 3" (or "sublis 2"
for the rest of the list), "nth 2", etc.
Does anybody have any other ideas for additional functionality?
More information about the Pd-list