[PD] Prime limit sliders

Mathieu Bouchard matju at artengine.ca
Mon Apr 4 16:59:05 CEST 2005


On Thu, 31 Mar 2005, Mathieu Bouchard wrote:
> On Tue, 29 Mar 2005, Chuckk Hubbard wrote:
> | [#for (-4 5) (-1 2) (-1 2) (-1 2) (0 1) (0 1)] <-- make indices
> |  |
> | [#cast f] <-- convert to float (from int)
> |  |
> [# **] <-- raise primes to all possible power combinations
> |
> [#fold *, seed 1] <-- multiply prime powers together

Michal Seta made me notice that I made a huge typo here. The arguments of 
#for are organised the other way around, so that it's instead:

[#for (-4 -1 -1 -1 0 0) (5 2 2 2 1 1) (1 1 1 1 1 1)]

With all the start-indices first, all the end-indices next (the ends are 
always excluded), and then the index-steps (all ones because you want them 
to increment one by one)

    .-----------------------------------------------------------------.
   /  The Diagram is the Program (TM) ,--------------------------------}
  {----------------------------------"     http://artengine.ca/matju  /
   `-----------------------------------------------------------------'




More information about the Pd-list mailing list