| Hi Francesco,
Thanks! Yes, you are correct about ntrpol:
https://csound.com/docs/manual/ntrpol.html
It does a linear interpolation between two values. It becomes something like:
ival = 0.4
asig = (ival * al) + ((1 - ival) * alr)
or:
asig = (0.4 * al) + (0.6 * alr)
if you were to write the calculations manually. I think ntrpol is a
bit easier to use though, especially when live coding. :)
All best!
steven
On Fri, Jul 20, 2018 at 4:49 AM Francesco Porta
wrote:
>
> Thanks Steven for this.
> As always your work is inspiring and really nice.
> May i ask about this code:
>
> outc(ntrpol(al, alr, 0.4), ntrpol(ar, arr, 0.4))
>
> is this the same as
>
> al level to 0.4
> alr level to 0.6
>
> or i am wrong?
>
> Thanks,
> ciao,
> francesco
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |