[Csnd] How can I display a k time variable that is the result of multiplying two function tables
Date | 2019-01-25 23:51 |
From | Prent Rodgers |
Subject | [Csnd] How can I display a k time variable that is the result of multiplying two function tables |
I use function tables to describe things like trills and glissandi. I combine multiple function tables to simulate things like a guitar player pulling on a string while trilling. Do do this, I have two different function tables that I allow to control the pitch. At one point in my instrument I derive a pitch from some input variables call ioct and ipitch, then multiply them by each function table that represents the pitch modifier. kcps = cpspch(ioct + ipitch) ; convert oct.fract to Hz at krate kcpsm oscili 1, 1/p3, i10 ; create an set of shift multiplicands from function table - glissandi ; I'd like to see what this kpsm looks like in a graphical display from 0 to the end of it kcps1 = kcps * kcpsm ; shift the frequency by values in glissando table kcpsm2 oscili 1, 1/p3, i13 ; create a 2nd set of shift multiplicands from table - trill ; I'd like to see what this kspm2 looks like in a graphical display from 0 to the end of it ; I'd also like to see what kpsm * kpsm2 looks like, which is the combination of both kcps2 = kcpsm2 * kcps1 ; shift the frequency by values in 2nd glissando table I then call loscil with a sample set that creates the output. Is there a way I can see the shift vectors with display, printk, or other command? I'd like to say display kcpsm,0 display kpsm2,0 then multiply them kpsm3 = kpsm * kpsm2 display kpsm3,0 And somehow show that graphically. I've tried variations of printk, display and table functions, but none seem to do what I want. Prent Rodgers 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 | 2019-01-26 13:26 |
From | john |
Subject | Re: [Csnd] How can I display a k time variable that is the result of multiplying two function tables |
Do ypu want to viewthis fdisplay while the piece is rendering or is it sufficient to view at te end? If the later you could write it as a spund file and view with audacity or similar system. ==John ff On Sat, 26 Jan 2019, Prent Rodgers wrote: > I use function tables to describe things like trills and glissandi. I combine multiple function tables to simulate things like a guitar player pulling on a string while trilling. Do do this, I have two different function tables that I allow to control the pitch. > > At one point in my instrument I derive a pitch from some input variables call ioct and ipitch, then multiply them by each function table that represents the pitch modifier. > > kcps = cpspch(ioct + ipitch) ; convert oct.fract to Hz at krate > kcpsm oscili 1, 1/p3, i10 ; create an set of shift multiplicands from function table - glissandi > ; I'd like to see what this kpsm looks like in a graphical display from 0 to the end of it > kcps1 = kcps * kcpsm ; shift the frequency by values in glissando table > kcpsm2 oscili 1, 1/p3, i13 ; create a 2nd set of shift multiplicands from table - trill > ; I'd like to see what this kspm2 looks like in a graphical display from 0 to the end of it > ; I'd also like to see what kpsm * kpsm2 looks like, which is the combination of both > kcps2 = kcpsm2 * kcps1 ; shift the frequency by values in 2nd glissando table > > I then call loscil with a sample set that creates the output. > > Is there a way I can see the shift vectors with display, printk, or other command? > > I'd like to say > display kcpsm,0 > display kpsm2,0 > > then multiply them > > kpsm3 = kpsm * kpsm2 > > display kpsm3,0 > > And somehow show that graphically. I've tried variations of printk, display and table functions, but none seem to do what I want. > > Prent Rodgers > > 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 |
Date | 2019-01-29 02:21 |
From | Pete Goodeve |
Subject | Re: [Csnd] How can I display a k time variable that is the result of multiplying two function tables |
Attachments | None |