EDIT: Use par(), not seq().
The problem in my case was that par(i...) has zero-indexed "i", but
take(i...) has one-indexed i. Additionally, the error message was very
confusing and didn't which line of code, and which variable access was bad.
Instead, it spit out a long and confusing template matc
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.
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?