[Gridflow-dev] [PD] jMax Phoenix

Jonathan Wilkes jancsika at yahoo.com
Wed Sep 22 16:09:46 EDT 2010



--- On Wed, 9/22/10, Mathieu Bouchard <matju at artengine.ca> wrote:

> From: Mathieu Bouchard <matju at artengine.ca>
> Subject: Re: [PD] jMax Phoenix
> To: "Jonathan Wilkes" <jancsika at yahoo.com>
> Cc: pd-list at iem.at, gridflow-dev at artengine.ca
> Date: Wednesday, September 22, 2010, 8:46 PM
> On Wed, 22 Sep 2010, Jonathan Wilkes
> wrote:
> > --- On Wed, 9/22/10, Mathieu Bouchard <matju at artengine.ca>
> wrote:
> >> Btw I started coding [#expr] last week... but I
> think that
> >> it will take a long time to finish coding it.
> > 
> > Great!
> > * [#expr 3 / 2] ?
> 
> At this point 1.5, and I think I will keep it that way,
> unless I require everything to default to being a grid. I
> wondered whether I ought to split between a float-centric
> version called [gf/expr] and a grid-centric version called
> [#expr], or have everything together in the same version. At
> this point, though, I only have plain floats.

I prefer your current way to the Max/MSP-oriented way that 
[expr] does it.  I find the [expr] way particularly ill-suited to 
Pd since Pd strips away unnecessary decimals and decimal places, 
thus making it look like it's Max-compatible when, depending on 
where the user puts whitespace, it may not be:
[expr 2.0/3] is the same in Max/Pd
[expr 2.0 /3] is not

> 
> GridFlow's grids default to int32 (This is because this is
> the int type in jMax. It's also the int type in Max and
> others except Pd)
> 
> > * [#expr if $f1 < 3 then $f1 goes to the left
> outlet else $f1 goes to the right outlet] ?
> 
> I don't know how this would work. In [expr], the number of
> outlets depends on the number of semicolon-separated
> expressions, and each triggering of [expr] causes them to be
> evaluated right-to-left. There's no syntax for not
> outputting on an outlet. What do you suggest ?

It's tricky.  You could add a function that takes 
no arguments which means, "Don't output."  But then I think it 
would be more useful to have a flexible if, then, else syntax 
where you can specify the outlet explicitly.  Maybe that means 
this is a separate object than expr.

I read the Max 5 documentation and they have if and else 
functions where you specify the outlet with out1, out2, etc.  

http://cycling74.com/docs/max5/refpages/max-ref/if.html


> 
> > * [#expr $0-array[$f1] ] ?
> 
> I suppose so, but we're far from that.
> 
> At this point, [#expr 1000-100-10-1] = 909, and I'm trying
> to make it so that it's 889. It's because
> (1000-(100-(10-(1)))) = 909 and ((((1000)-100)-10)-1) =
> 889.
> 
> The only supported method is bang and even $f1 doesn't even
> exist yet.
> 
> 
> _______________________________________________________________________
> | Mathieu Bouchard ------------------------------ Villeray,
> Montréal, QC


      



More information about the Gridflow-dev mailing list