Hi Oleg,

I'm not sure that answers your question, but you can do that, for instance:

dsBus2int(1) = >(0);
dsBus2int(N) = dsBus2int(N-1) << 1, dsBus2int(1) :> _;

encode2int(P) = P : dsBus2int(outputs(P));

process = encode2int((1,0,1,0));

Yann


*Yann Orlarey*
Directeur scientifique/Scientific director


orla...@grame.fr <x...@grame.fr> T : +33 (0) 4 72 07 37 00
GRAME - Centre national de création musicale
11 cours de Verdun Gensoul | 69002 Lyon
www.grame.fr | facebook <https://www.facebook.com/Gramelyon/> | instagram
<https://www.instagram.com/grame_cncm/> | twitter
<https://twitter.com/GRAME_LYON>


Le ven. 17 juil. 2020 à 20:23, Oleg Nesterov <o...@redhat.com> a écrit :

> Hi Yann,
>
> On 07/17, Yann Orlarey wrote:
> >
> > Hi Till,
> >
> > What about :
>
> but is there a generic solution?
>
> IOW. Suppose you have a wants_list() function and a constant N. How can you
> turn N inputs into the N-ary list and pass it to wants_a_list ?
>
> wants_list(sig.bus(N)) won't work.
>
> Oleg.
>
>
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to