Csound Csound-dev Csound-tekno Search About

[Cs-dev] Turnoff is curious

Date2007-05-30 11:31
Fromjpff
Subject[Cs-dev] Turnoff is curious
In Victor's example, it I add a printks to all instruments, and
simplify to version below it seems that at the 4s call to turnoff the
output instruments are indeed not called as I suspected.  However,
what is worse in the other two earlier times the printks "in2\n",0 is
not obeyed; when it is the problem occurs.  At present this confuses
me beyond believe.  Looks like a quantisation problem?  Anyone any
ideas?  Just off to mark so will not attack again until tonight.
==John ffitch




sr=44100
ksmps=10
nchnls=2

ga0 init 0
ga1 init 0

         instr 1 ;player
printks "in1\n", 0
asig1 oscili 10000,440,1
ga0 = ga0 +  asig1
ga1 = ga1 +  asig1

         endin

         instr 2
printks "in2\n", 0
turnoff
         endin

         instr 5
printks "in5\n", 0
outs1 ga0
ga0 = 0
         endin

         instr 6
outs2 ga1
ga1 = 0
         endin





f1 0 32768 10 1
i2 1.234375 .0001
i2 2.515625 .0001
i2 4.421875 .0001
i1 0.0 20.0625
i5 0 20.0625
i6 0 20.0625
e





-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net