Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Zak Solved

Date1999-11-12 06:18
FromRobin Whittle
SubjectRe: [Csnd] Zak Solved
Ken Locarnini wrote:

> I realized through experimentation that the Zak clearing opcodes 
> zacl zakl were not working in my orchestra.  I thought it was a bug 
> but it turned out that the clearing opcodes needed to be the last 
> instrument in the orchestra!  Is this a bug?

zacl and zkcl clear a range of "a" and "k" rate zak variables
respectively.  What you do with them is up to you.

If you are using zak variables as mixing points - adding multiple
values to them - then the typical idea is to get the total after you
have finished adding things in, do something useful with that total,
and then set the zak values to zero, ready for the next run of the
instruments.  

Instruments are run in their numeric order. (One handy thing is giving
the same instrument multiple instument numbers, so by using various
numbers in the score, you can control when it is executed.)

I use the highest numbered instrument and make it run for the duration
of the piece.  That instrument does the final mix and audio out work,
and then uses zacl and zkcl to clear those zak variables I am using as
mixing points.  

There probably should be a note added to the manual to explain this.


- Robin



===============================================================

Robin Whittle    rw@firstpr.com.au  http://www.firstpr.com.au
                 Heidelberg Heights, Melbourne, Australia 

First Principles Research and expression: Consulting and 
                 technical writing. Music. Internet music 
                 marketing. Telecommunications. Consumer 
                 advocacy in telecommunications, especially 
                 privacy. M-F relationships. Kinetic sculpture.
                  
Real World       Electronics and software for music including:
Interfaces       Devil Fish mods for the TB-303, Akai sampler 
                 memory and Csound synthesis software. 

===============================================================
--