Hi Davide,

Not sure if that's what you want to do but here's a solution:

import("stdfaust.lib");
a = hslider("a", 0.001, 0.0, 1.0, 0.001);
b = hslider("b", 0.0011, 0.0, 1.0, 0.001);

aN = *(0-a);
bN = *(0-b);

in = _;
dV =  (aN,bN:+);
process = dV ~ _;

Let me know if that helps.

Cheers,

Romain

On Fri, Nov 23, 2018 at 11:16 PM Davide Gagliardi <d.gaglia...@kug.ac.at>
wrote:

> dear list,
>
> I’m a beginner and I’m struggling getting the:
> "The number of outputs 1 of the first expression should be greater or
> equal  to the number of inputs 2 of the second expression"
>
> here is my code with no error:
>
> import("stdfaust.lib");
> a = hslider("a", 0.001, 0.0, 1.0, 0.001);
> b = hslider("b", 0.0011, 0.0, 1.0, 0.001);
>
> aN = *(0-a);
> bN = *(0-b);
>
> in = _;
> dV =  (aN,bN:+);
> process = _:(dV) ~ +(1);
>
> now how can I send dV back to the input of aN? basically how can I
> substitute 1 with an incoming signal?
> I tried an insane amount of different combination, but I can get rid of
> the error.
> Could you help me?
> thank you very much
>
> ddgg
>
>
>
>
> _______________________________________________
> Faudiostream-users mailing list
> Faudiostream-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>


-- 

Romain Michon
+33 (0)7 67 39 72 40http://grame.fr/~michon
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to