[PD] RFC: "list split" abstraction for negative indices

Frank Barknecht fbar at footils.org
Wed Nov 2 11:04:39 CET 2005


Hallo,
Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:

> I don't know which of those two outputs should be the main one, but it 
> should mirror a subsequent "unsplit" or "unslice" so that e.g.:
> 
> [list slice   2 2]
>  |              |
> [list unslice 2 2]

This no-op in Pd would be done as:

  [list split]
  |   |
  [list]

To keep this working using neg. indices would also require the tail
being at the second outlet.

> > (Note: I tend to prefer sendign "3 4"  to the first outlet, as it's
> > technically easier, 
> 
> I don't know. What's technically easier about it?

Actually it's no big deal: To keep the order of execution right to
left, I just need to use an additional trigger and a [list] for
intermediate storing.

Thanks to yours and IOhannes comments I see a bit clearer now and I
decided to use the niagara way of splitting at negative indices. 

I now did it that way. The abstraction is called [list-splat]
(advanced list split) and is in SF-CVS or GOTO10-SVN at:
http://royalrabbit.goto10.org/svn/goto10/pd-patches/fbar/list-abs/

It requires [list-rev] which has a little bug fixed.

Some more new [list]-abs: list-sieve, list-idx, list-equalize,
list-normalize and, finally, list-abs. ;)

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__




More information about the Pd-list mailing list