I found another problem, this time with split composition. The problem here
is that I don't have a clean workaround. Make sure to uncomment one line
only. Then run "faust -svg" to view the results.

Why does it seem like function calls and named arguments are horribly
buggy? Are those mostly untested, and not considered "idiomatic" Faust?...
Does Faust even have idioms, given how obscure the language is?

import("music.lib");

// WORKS
// fir_delay(i, val) = i+val;

// WORKS
// fir_delay(i, val) = delay(32, i, val);

// DOESN'T
// fir_delay(i, val) = fdelay(32, i, val);


process = _ <: par(i, 2,
    fir_delay(3-i, _)
);

On Sun, May 22, 2016 at 3:08 AM, jimbo1qaz <[email protected]> wrote:

>
> ---------- Forwarded message ----------
> From: jimbo1qaz <[email protected]>
> Date: Sat, May 21, 2016 at 4:54 PM
> Subject: Re: [Faudiostream-users] Incorrect argument order with recursive
> composition and named parameters
> To: Bart Brouns <[email protected]>
>
>
> I solved Bug 1 by referencing "_" before "x".
> Anyway, I had to rewrite that section of the program due to a logic bug.
>
> I suspect the problem is that Faust translates named parameters into Block
> Diagram Normal Form, but fails to preserve the mapping between named
> parameters and underscores. In other words, it forgets which variable is
> which.
>
> Bug 2: Both of your suggested solutions.
>
>
>
> On Sat, May 21, 2016 at 3:19 PM, Bart Brouns <[email protected]> wrote:
>
>> On Fri, May 20, 2016 at 10:25:54PM -0700, jimbo1qaz wrote:
>>
>>> Another bug related to handling named parameters:
>>>
>>> func(x) = x^2 + x + 1;
>>> process = func(_); // I didn't test "process=func"
>>>
>>
>> I suggest you test that! ;)
>>
>> or:
>>
>> process(y) = func(y);
>>
>> I used y here, but I could just as well have called it x.
>> It doesn't matter what the parameter is called, only what it's value is
>> in the context that you use it in.
>>
>> Does that clear up your previous question as well?
>>
>>
>> Cheers,
>> Bart.
>>
>
>
>
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to