Hi Jimbo,

I think you are looking for subseq in math.lib.

Usage example:

process = seq(i, 2, f(subseq((val1,val2),i,1)));

Hope that helps,
Bart.

On Fri, May 20, 2016 at 09:45:30PM -0700, jimbo1qaz wrote:
>New user of Faust here. I'm trying to call a function using arguments taken
>from a list.
>
>So far, I've tried:
>
>val1 = 0; val2 = 0;
>geti = take(_, (val1, val2));
>
>seq(i, 2, f(val%i));
>seq(i, 2, f(geti(i));
>seq(i, 2, f(geti(%i));
>
>None of these work. Is list/array looping implemented in FAUST?
>
>---- PROPOSED SOLUTION ----
>
>Python has a "zip" function to pick the first element out of each argument,
>then the second.... For example, zip((1,2), (a,b)) == ((1,a), (2,b)).
>
>In Python, I'd implement such a thing as:
>for value, vol, pan in zip(stereo, vols, pans): func(value, vol, pan)
>
>This would "almost" works with the "<:" operator, but it doesn't really
>work well when passing the same value into all function calls.
>
>Workaround for this issue: You can declare this unchanging value in a with
>statement, then use the variable name.

>------------------------------------------------------------------------------
>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


------------------------------------------------------------------------------
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