hi [list], think this came up here already but can't manage to find it in the archive. so how do I get the length of a [list]? and how can I [pipe] a [list] of arbitrary length?
thanks, sven.
Hallo, Georg Holzmann hat gesagt: // Georg Holzmann wrote:
Hallo!
so how do I get the length of a [list]?
[length] in zexy ...
and how can I [pipe] a [list] of arbitrary length?
hm ... I think I would store the list in a fifo and then use pipe with a "normal" number ... (but that's a hack of course ... ;)
I've actually used your PDContainer objects to do something like this, but basically all it did was reimplementing qlist without the global sender at the start of each qlist entry. It would be great if qlist would not automatically send to the first element in an entry, but instead have an outlet like [textfile] has.
Frank Barknecht _ ______footils.org_ __goto10.org__
Hallo, sven hat gesagt: // sven wrote:
think this came up here already but can't manage to find it in the archive. so how do I get the length of a [list]?
Check [list-len] in the [list]-abs collection for a pure Pd example, or use [length] from zexy.
and how can I [pipe] a [list] of arbitrary length?
[pipe] cannot delay variable length lists. [qlist] can.
Or you can for example concat the list into a single symbol and un-concat it later, you can try to use pointers instead of list - [pipe] can delay pointers - or you can build something similar to pipe on your own using [del] and [list] etc.
Frank Barknecht _ ______footils.org_ __goto10.org__
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
or you can build something similar to pipe on your own using [del] and [list] etc.
To clarify what I mean here see attached little patch. Note that the delay times are "inter onset times", that is, delay times between every event, and not absolute delays like [pipe] uses. You can convert between these two kinds of delay times for example by substraction of successive times, if you have absolute delays in the beginning, but you need to sort the events first in that case.
Frank Barknecht _ ______footils.org_ __goto10.org__
hi chukk and frank, thanks for your suggestions. but as I needed an object with the original [pipe] behaviour i've found the combination of [list2symbol]---[pipe]---[symbol2list] most suitable. it doesn't work with pointers, though. [list2symbol] and [symbol2list] are part of zexy.
sven.
This is a compromise way you could use.
-Chuckk
On 5/30/06, sven ml.sven@subscience.de wrote:
and how can I [pipe] a [list] of arbitrary length?