Csound Csound-dev Csound-tekno Search About

[Csnd] zak increments k-type channels

Date2014-02-28 07:26
FromEnrico Francioni
Subject[Csnd] zak increments k-type channels
Hi, 
someone tell me what is the meaning of the use of this patch code on zak,
and that I could take advantage of the increase that you use? Could I have
an example of a practical application?
Thanks, enrico




sr = 44100
ksmps = 256
nchnls = 1

; Initialize the ZAK space.
; Create 3 a-rate variables and 5 k-rate variables.

zakinit 3, 5

instr 3  ;increments k-type channels
	k0 zkr 0
	k1 zkr 1
	k2 zkr 2

	zkw k0+1, 0
	zkw k1+5, 1
	zkw k2+10, 2
endin

instr 4 ;displays values from k-type channels
	k0 zkr 0
	k1 zkr 1
	k2 zkr 2

; The total count for k0 is 30, since there are 10
; control blocks per second and intruments 3 and 4
; are on for 3 seconds.
	printf "k0 = %i\n",k0, k0
	printf "k1 = %i\n",k1, k1
	printf "k2 = %i\n",k2, k2
endin




; Table #1, a sine wave.
f 1 0 16384 10 1

i 3 0 3
i 4 0 3
e






--
View this message in context: http://csound.1045644.n5.nabble.com/zak-increments-k-type-channels-tp5732849.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-02-28 16:48
FromJim Aikin
Subject[Csnd] Re: zak increments k-type channels
It has no practical application, or at least none that I can think of
offhand. It simply shows how to write a changing value to zak-space. Also,
this comment in the code is wrong:

; The total count for k0 is 30, since there are 10
; control blocks per second and intruments 3 and 4
; are on for 3 seconds. 

With ksmps=256, there are a lot more than 10 control blocks per second.

--JA



--
View this message in context: http://csound.1045644.n5.nabble.com/zak-increments-k-type-channels-tp5732849p5732875.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-02-28 20:01
FromEnrico Francioni
Subject[Csnd] Re: zak increments k-type channels
in original:

ksmps = 4410

[extract of example written by Kevin Conder]


:-)

e



--
View this message in context: http://csound.1045644.n5.nabble.com/zak-increments-k-type-channels-tp5732849p5732877.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-02-28 21:35
FromForrest Cahoon
SubjectRe: [Csnd] Re: zak increments k-type channels
If you're asking what one can do with a continuously increasing zk channel in general, well, you can slowly change the timbral parameters of another instrument independently of how that instrument is used -- e.g. slowly increase the reverb; slowly pan from left to right; all sorts of stuff.


On Fri, Feb 28, 2014 at 2:01 PM, Enrico Francioni <francioni61021@libero.it> wrote:
in original:

ksmps = 4410

[extract of example written by Kevin Conder]


:-)

e



--
View this message in context: http://csound.1045644.n5.nabble.com/zak-increments-k-type-channels-tp5732849p5732877.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-03-01 00:16
FromJustin Smith
SubjectRe: [Csnd] Re: zak increments k-type channels
I have more than one score where a value on a zk channel gets incremented each k cycle, and then instruments use that value to look up parameters from automation tables (the equivalent of parameter automation by line segments in your typical DAW).


On Fri, Feb 28, 2014 at 1:35 PM, Forrest Cahoon <forrest.cahoon@gmail.com> wrote:
If you're asking what one can do with a continuously increasing zk channel in general, well, you can slowly change the timbral parameters of another instrument independently of how that instrument is used -- e.g. slowly increase the reverb; slowly pan from left to right; all sorts of stuff.


On Fri, Feb 28, 2014 at 2:01 PM, Enrico Francioni <francioni61021@libero.it> wrote:
in original:

ksmps = 4410

[extract of example written by Kevin Conder]


:-)

e



--
View this message in context: http://csound.1045644.n5.nabble.com/zak-increments-k-type-channels-tp5732849p5732877.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"