Selfmade grain algo
Date | 2017-03-14 14:39 |
From | T Lopez |
Subject | Selfmade grain algo |
Hi all! Yet another selfmade grain question, maybe Iain could/would answer, however anyone else who has insight is more than welcome to respond! What is behind the pitch algorithm? I know it's based on a randomiser, however, what I am more interested is how the intervals in pitch are chosen. No matter what it always sound in tune/in key! Are they just fifths and maybe a third across two octaves?? Thanks! 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 |
Date | 2017-03-16 10:24 |
From | Iain McCurdy |
Subject | Re: Selfmade grain algo |
I'm not completely sure to what instrument this is referring - I think a granular synthesis instrument using schedkwhen - but random values can be simply quantised to octaves or semitones by doing:
krnd random -2.5, 2.5 koct = round(krnd) kfreq = ifreq * octave(koct)
or for semitones:
krnd random -12.5, 12.5
ksemi = round(krnd) kfreq = ifreq * semitone(ksemi)
More intricate harmonic lattices can be imposed using tables or arrays. Tendency masks can be implemented by creating weighted means between the quantised and unquantised values. Maybe I'll develop these old instrument further at some time, but a lot of these tricks can be done using partikkel now also. From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of T Lopez <wstlopez@GMAIL.COM>
Sent: 14 March 2017 14:39 To: CSOUND@LISTSERV.HEANET.IE Subject: [Csnd] Selfmade grain algo Hi all! Yet another selfmade grain question, maybe Iain could/would answer, however anyone else who has insight is more than welcome to respond! What is behind the pitch algorithm? I know it's based on a randomiser, however, what I am more interested is how the intervals in pitch are chosen. No matter what it always sound in tune/in key! Are they just fifths and maybe a third across two octaves?? Thanks! 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 |
Date | 2017-03-19 13:13 |
From | T Lopez |
Subject | Re: Selfmade grain algo |
Thanks so much for your response Iain!! Yes, indeed it is that instrument to which I refer!! Specifically I wanted to know about the intervals, you had said they were chosen due to the equally tempered nature of the source material(classguit.wav) Am I to gather that the intervals are evenly spaced? On 16 Mar 2017 11:24, "Iain McCurdy" <i_mccurdy@hotmail.com> wrote:
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
|