Hi Yann,

On 09/02, Yann Orlarey wrote:
>
> In Faust 2.48.0, the necessary changes have been made so that par, seq,
> sum, and prod can now accept 0 iterations.

Very nice!!!

so... now both sum(i,0,expr) and sum(i,0,expr) have zero inputs and zero
outputs... to be honest, "zero outputs" doesn't match my intuition, I'd
expect them to output "0" and "1" respectively. Nevermind, please forget.

> We have (neglecting the variable i) :
>
>    - par(i,0,F),F = F
>    - seq(i,0,F):F = F
>
> where par(i,0,F) = route(0,0) and seq(i,0,F) = _,_,... are the neutral
> elements for parallel and sequential composition. The neutral element for
> sequential composition depends on the number of inputs and outputs of F.

Aaah, now I see what did you mean, thanks!

Hmm... but I don't understand what exactly the new neutralExpSeq() function
does... Say,

        f = _,_;
        seq0 = seq(i,0,f);
        process = inputs(seq0), outputs(seq0);

outputs 2,2. Good. However,

        f = _,_ :> _;
or
        f = +;

results in 1,1 and this doesn't look consistent to me...

And with
        f(x,y) = x+y;

I get

        boxType() internal error : unrecognized box expression 
closure[\x.(\y.(x,y : +)), genv = {}, lenv = {}]

Thanks Yann!

Oleg.



_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to