|
When I run the csd below I get a 9 second gap before instrument 1 begins to trigger instrument 2. It seems to work appropriately after that. It seems like it is cycling once through the sequence before it actually starts to trigger instrument 2. If I use printk2 on ktrig it shows that it is triggering during the first 9 seconds. Does anyone have any idea why this might be happening?
Mark
-odac
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2
0dbfs = 1
;FUNCTION TABLE FOR SEQUENCER
gi1 ftgen 0,0,32,-2, 0, 1, 0.1,\
0, 2, 0.1,\
0, 3, 0.1,\
0, 4, 0.1,\
0, 5, 0.1,\
0, 6, 0.1,\
0, 7, 0.1,\
0, 8, 0.1,\
-1, 9, -1,-1,-1,-1,-1,-1
; Sine Wave, GEN 10
gi_sine ftgen 0, 0, 32768, 10, 1
instr 1 ;Sequence Trigger instrument
kp1 init 0
kp2 init 0
kp3 init 0
kp4 init 0
kphs phasor 1
kphs = kphs*8
ktrig timedseq kphs, gi1, kp1, kp2, kp3
schedkwhen ktrig, 0, 0, 2, kp2, kp3
;printk 0.1, kphs
endin
instr 2 ;Note Generator
a1 oscil 1,400,gi_sine
kclick linen 1,0.01,p3,0.01
aout = a1 * kclick
outs a1,a1
endin
i1 0 30
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|