Re: [Faudiostream-users] Calling functions using arguments taken from lists?

2016-05-22 Thread jimbo1qaz
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

Re: [Faudiostream-users] Calling functions using arguments taken from lists?

2016-05-21 Thread Bart Brouns
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.

[Faudiostream-users] Calling functions using arguments taken from lists?

2016-05-20 Thread jimbo1qaz
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?