Hi Miller,
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?
Yours, Orm
hi Orm,
have a look at zexy, there are nice list-processing objects, like glue, packel, etc.
Krzysztof
Btw. in a previous post I meant append as in Max, not Pd's append.
Orm Finnendahl wrote: ...
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.
Hi Krzysztof,
Am Mittwoch, den 30. Januar 2002 um 15:12:37 Uhr (+0100) schrieb Krzysztof Czaja:
hi Orm,
have a look at zexy, there are nice list-processing objects, like glue, packel, etc.
thanks! That saves some time. I remember having seen them before, but obviously forgot about them (I'm getting old...)
Yours Orm