Csound Csound-dev Csound-tekno Search About

Re: [Csnd] rand with cubic interpolation?

Date2019-09-24 02:54
FromPartev Barr Sarkissian
SubjectRe: [Csnd] rand with cubic interpolation?
Sounds like the randomness is propagating onto itself, crescendo 
and undulating. Very good. 


-PBS 


========================================= 


--- stevenyi@GMAIL.COM wrote:

From:         Steven Yi 
To:           CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] rand with cubic interpolation?
Date:         Mon, 23 Sep 2019 14:48:05 -0400

Hi Mauro,

I implemented a UDO for randcubic to generate bipolar cubically
interpolated random line with kamp and kfreq arguments.  The code,
example CSD, and audio example are available here:

https://kunstmusik.com/2019/09/23/randcubic-glissandi-random-line-with-cubic-interpolation/

Just a note that cubic interpolation can overshoot boundaries.

Hope this helps!
steven


On Mon, Sep 23, 2019 at 12:50 PM Mauro Giubileo
 wrote:
>
> I'm playing with randomic sound generation. I noticed two useful opcodes that makes me set the frequency of the generation of the numbers: randh, randi. That's very nice.
>
> The first (randh) generates some horizontal lines between the generated points, so you'll have a "step"-style random sequence.
>
> The second opcode (randi) is similar but it produces straight-line interpolation between each new number and the next, instead of just holding the values.
>
> Now I'm wondering: is it possible to make something similar to the two above opcodes but with a cubic interpolation between every two points instead of a linear interpolation? I would like to generate a smoothly interpolated curve from the generated random points, instead of a step-style curve or a linear-interpolated curve... How can I do that?
>
> ---
> Mauro
>
>
> 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




_____________________________________________________________
Netscape.  Just the Net You Need.

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