Pass global krate to irate at instrument Init
Date | 2017-02-05 16:35 |
From | Emmett Palaima |
Subject | Pass global krate to irate at instrument Init |
Hi, is there a way for an instrument to initialize an i-rate variable to the value of a global k-rate variable when the instrument turns on? I've succeeded in getting this effect with p-fields, but this is kind of a round-about way, and I was wondering if there was a method for doing it more directly.
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
I'm looking to do something like: gkvar init 0 instr 1 ivar init gkvar [etc...] endin instr 2 [calculations involving gkvar] endin Thanks! |
Date | 2017-02-05 16:46 |
From | Victor Lazzarini |
Subject | Re: Pass global krate to irate at instrument Init |
i( )
Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|
Date | 2017-02-05 20:45 |
From | Tarmo Johannes |
Subject | Re: Pass global krate to irate at instrument Init |
Hi,
ivar init i(gkvar)
should work
tarmo
On Sunday 05 February 2017 11:35:50 you wrote: instr 1 ivar init gkvar [etc...] endin |
Date | 2017-02-06 00:42 |
From | Emmett Palaima |
Subject | Re: Pass global krate to irate at instrument Init |
Thanks, that's exactly what I was looking for. On Sun, Feb 5, 2017 at 3:45 PM, Tarmo Johannes <trmjhnns@gmail.com> wrote:
|