| Hi Joe,
removing the zacl gives the problem that new samples are constanly
accumulated in the zak space but adding a zacl after every zar (only for it) do
the trick... I think that I'll have a delay of at least 1 kr but it seems to
work..
Thank you
>----Messaggio originale----
>Da: joe@bbeikaiwa.com
>Data: 23/02/2009 13.49
>A:
>Ogg: [Csnd] Re: zak and instruments order
>
>Hi there,
>
>Yes, the instrument order is important. Every ksmps samples, csound
>reads each instrument in turn, in numerical order. At the moment, in
>your non-working example:
>
>instr 1: writes to zak 1
>instr 2: reads from zak 3 (nothing there yet), writes to zak 5
>instr 3: reads from zak 1, writes to zak 3
>instr 4: reads from zak 5 (nothing!), then zacl clears zak variables to
>0 again.
>
>If you take out the zacl statement in instr 4 then it might work (I
>think) but you would introduce a delays as there would be ksmps samples
>between using zaw in instr 3 and zar in instr 2 (in your example at the
>bottom of the page).
>
>I hope this explanation is clear (and I hope it's correct, for that matter)
>
>Joe
>
>vallste@libero.it wrote:
>> Hello,
>> one (stupid) question regarding the zak opcodes and the instruments
order,
>> I'm writing an orchestra that looks more or less like this:
>>
>> instr 1
>> --some code--
>> zaw aout, 1
>> endin
>>
>> instr 2
>> ain zar 1
>> --some code--
>> zaw aout, 3
>> endin
>>
>> instr 3
>> ain zar 3
>> --some code--
>> zaw aout, 5
>> endin
>>
>> instr 4
>> aout zar 5
>> outs aout, aout
>> zacl 0, 5
>> endin
>>
>> If I run it it works, but if i change za location only in instruments 2
and 3
>> (to have instr 3 before instr 2 in the signal path) like this:
>>
>> instr 2
>> ain zar 3
>> --some code--
>> zaw aout, 5
>> endin
>>
>> instr 3
>> ain zar 1
>> --some code--
>> zaw aout, 3
>> endin
>>
>> No sound is produced.
>> It's the normal behaviour of zak patching system, so I've to keep the
>> instruments in the same order of "signal path"...
>> or I'm missing (messing) something else in my code?
>>
>> Ciao
>>
>> Stefano
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"
>>
>>
>
>--
>Joseph Sanger
>
>Blueberry Eikaiwa
>www.bbeikaiwa.com
>joe@bbeikaiwa.com
>
>
>Send bugs reports to this list.
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"
>
|