[PD] Fw: Mail delivery failed: returning message to sender

Mathieu Bouchard matju at sympatico.ca
Sat Nov 8 19:09:24 CET 2003


On Sat, 8 Nov 2003, B. Bogart wrote:

>  Hey all,
>  I can't seem to find a for loop for PD. Abstraction or external.
>  Ideally it would be nested so that you could loop through n number of
>  dimentions. You just tell it the start end and step for each dimention:
>  Or something the like...
>  Yes I'm doing too much matrix stuff!

Hi, GridFlow/PD supports:

[for] as jMax emulation :
  [for 0 3 1] produces 3 messages: 0, 1, 2

[@for] in scalar mode :
  [@for 0 3 1] produces 1 message, a Grid of size 3: 0 1 2

[@for] in vector mode :
  [@for {0 0} {4 3} {1 1}] produces 1 message, a Grid of size 4*3*2:
    (0,0) (0,1) (0,2)
    (1,0) (1,1) (1,2)
    (2,0) (2,1) (2,2)
    (3,0) (3,1) (3,2)

the latter can be chunked into individual messages using [@import] to
reframe the data and [@export_list] to produce a list per grid.

________________________________________________________________
Mathieu Bouchard                       http://artengine.ca/matju





More information about the Pd-list mailing list