Hallo, Luke Iannini (pd) hat gesagt: // Luke Iannini (pd) wrote:
Here're two new list-abs, list-range and list-zip.
list-range spits out sequences from n1 to (n2 - 1), optionally separated by a positive or negative "step" interval m. It's based on Python's range() function[1]. You can either use it as a shortcut by specifying creation arguments and [bang(ing it, or send in one, two or three arguments to get a new sequence (n1 (for 0...n1-1), n1 n2, or n1 n2 m).
Nice one. (RTC-lib has some similar ones like [make-scale] and [make-trans-scale], but I guess, "range" is a good name.) I'll include it if you don't mind, though I'll remove the pddplink. All [list]-abs including help files have to work with pd-vanilla withour error messages.
Regrettably[2] list-zip requires [initbang] for its dynamic inlet creation, but list-range is a purely vanilla affair, requiring only the existing list-abs from Frank's library.
This is probably better kept out of [list]-abs as it uses a non-vanilla object but also because I'm very cautious about dynamic patching and [namecanvase]. I'd rather not use these in the library.
Frank Barknecht _ ______footils.org__