Re: [Faudiostream-users] Wavetable oscillator issue

2021-01-13 Thread Dario Sanfilippo
Hi, Alessandro. A couple of hints that might help you track down the issues, specifically the fact that you end up with so many inputs. When you define *counter*, there is a multiplier in the function with no specified operands, which results in the *counter* function to have two inputs.

Re: [Faudiostream-users] Wavetable oscillator issue

2021-01-13 Thread Alessandro Anatrini
Yo, would you have any suggestion on how I could optimise the idxs calculation using the recursion operator? This would be my first step I suppose... Alessandro Il giorno mer 13 gen 2021 alle ore 11:02 Stéphane Letz ha scritto: > Thanks. > > Then I would suggest to simplify the code as much as

Re: [Faudiostream-users] Wavetable oscillator issue

2021-01-13 Thread Stéphane Letz
Thanks. Then I would suggest to simplify the code as much as possibly to understand where those 1344 inputs come from. You can possibly use the « faust2firefox foo.dsp » tool to display the block diagram and better understand what happens. Stéphane > Le 13 janv. 2021 à 10:44, Alessandro

Re: [Faudiostream-users] Wavetable oscillator issue

2021-01-13 Thread Alessandro Anatrini
Hi Stéphane, thanks for the answer. Wow that's definitely too much code. I'll copy paste again the oscillator code and comment each line. I hope this will help, otherwise just let me know :)) > os_wt(freq,wav,len,sr,steps,tab) = 0.5*((2.0*v1) + (-v0+v2)*dv + (2.0*v0 - 5.0*v1 + 4.0*v2 -

Re: [Faudiostream-users] Wavetable oscillator issue

2021-01-13 Thread Stéphane Letz
Hi Alessandro, I’m not sure to follows all the details of your code, but compiling it in C++, it generates a DSP with 1344 inputs (!!), 1 output, and 11884 lines of code. So something is probably wrong. Can you possibly explain it more, and/or comment the code in details ? Thanks. Stéphane