Hi,
I collected my [list] abstractions into attached archive. None of these abstractions require any externals, but of course they need pd-0.39 at least.
Currently the most recent version always is to be found in my pwd~ at http://royalrabbit.goto10.org/svn/goto10/pd-patches/fbar/list-abs/ but later I will check these into CVS as well. (Btw: Does anyone have a decent script to sync svn and CVS?)
They don't have a proper license, as they are so simple, consider them public domain or released under the Pd license.
Here's the README:
These are abstractions implementing common list operations. Included are in alphabetical order:
last-x.pd
get a list containing the last x atoms received.
list-demux.pd
route lists to different outlets (like demux in zexy).
list-drip.pd
serialize a list automatically (like drip in zexy).
list-drip2.pd
serialize two lists in sync as long as first list lasts.
list-dripslow.pd
serialize a list on demand: each bang will output the next element.
list-makefilename.pd
apply [makefilename] on list elements, if they are symbols.
list-math.pd
apply [expr OP] with OP in (+,-,*,/) on list elements, if they are floats.
list-rev.pd
reverse a list.
list-rot.pd
rotate a list (move X elements from front to back)
sroute.pd
a settable [route] object for a single selector.
take-two.pd
take a list as input and print all combinations of length two without repetition.
triple-scale.pd
this actually is not using [list]: Interpolate between two (x,y,z)-points.
Have fun, ignore externals.
Frank Barknecht _ ______footils.org_ __goto10.org__
Frank Barknecht wrote:
Hi,
list-abs
These are abstractions implementing common list operations. Included are in alphabetical order:
last-x.pd
get a list containing the last x atoms received.
seems like you are using "-" as separator between "list" and the function-name.
it would be very nice if this would be compatible with the "standard" list-objects. since there is no way to make an abstraction [list x] which behaves fundamentally different from [list y], i would suggest to alias the core functions to names without backslashes. (no matter whether the separator is "." or "-" or anything else _but_ space)
this way we could have a consistant(ly named) set of objects operating on lists, no matter whether they are built-ins, external C-objects or abstractions.
(what again was the reason to not do it like that in the first place??)
mfg.asd.r IOhannes
Hallo, IOhannes m zmoelnig hat gesagt: // IOhannes m zmoelnig wrote:
Frank Barknecht wrote:
list-abs
These are abstractions implementing common list operations. Included are in alphabetical order:
last-x.pd
get a list containing the last x atoms received.
Actually "last-x" is not following my naming convetion (yet). Maybe it should be renamed to "list-lastx"? The same for "take-two".
seems like you are using "-" as separator between "list" and the function-name.
it would be very nice if this would be compatible with the "standard" list-objects. since there is no way to make an abstraction [list x] which behaves fundamentally different from [list y], i would suggest to alias the core functions to names without backslashes. (no matter whether the separator is "." or "-" or anything else _but_ space)
btw: I named my [list split] [list-splat] instead of [list-split] to be prepared for such a change.
this way we could have a consistant(ly named) set of objects operating on lists, no matter whether they are built-ins, external C-objects or abstractions.
I agree. Now is the time to do just that. [list] is such a powerful object, it is getting an important role in all my patches (not just the [list]-abs) at breakneck speed, so if we wait much longer, I will need to do a hell of search-and-replacing. And a lot of others will need to do that, too.
Btw. IOhannes: If you have some ideas for and want to add some [list]-abs objects yourself, feel free to do so in CVS. And tell me, so we don't do duplicate work. My [list] frenzy of the last couple of days will have to come to a temporary halt for now anyways because of Real-Life-issues.
Frank Barknecht _ ______footils.org_ __goto10.org__
Frank Barknecht wrote:
Hallo, IOhannes m zmoelnig hat gesagt: // IOhannes m zmoelnig wrote:
Frank Barknecht wrote:
list-abs
These are abstractions implementing common list operations. Included are in alphabetical order:
last-x.pd
get a list containing the last x atoms received.
Actually "last-x" is not following my naming convetion (yet). Maybe it should be renamed to "list-lastx"? The same for "take-two".
obviously i didn't read carefully enough to notice that a!=i i just took one (by chance the first) of your abstractions to demonstrate what i meant (and by chance i took the only one which doesn't illustrate what i mean)
mfg.ads.r IOhannes