Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Tape Loops

Date2018-07-20 09:49
FromFrancesco Porta
SubjectRe: [Csnd] Tape Loops
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

Date2018-07-20 14:53
FromSteven Yi
SubjectRe: [Csnd] Tape Loops
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

Date2018-07-20 15:23
Fromfra
SubjectRe: [Csnd] Tape Loops
On 20/07/2018 15:53, Steven Yi wrote:
> if you were to write the calculations manually. I think ntrpol is a
> bit easier to use though, especially when live coding.:)

And you say that only now?
Ah, so many lines of code for nothing!
:-))

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