Csound Csound-dev Csound-tekno Search About

[Csnd] gausstrig (bug?)

Date2013-11-15 09:15
Frompeiman khosravi
Subject[Csnd] gausstrig (bug?)
gausstrig doesn't seem to work as expected when defined with a krate output. 

The attached CSD outputs 5 notes per second only when ksmps==1.  I would have thought that with a sr of 96000 and ksmps of 10 one should be able to produce a krate variable with a frequency of 5Hz?

If it's a bug I'll go ahead and report it on sourceforge.

Thanks
Peiman 




<CsoundSynthesizer>
<CsOptions>
-odac -d
;-o test.aif -d -A -3
</CsOptions>
; ==============================================
<CsInstruments>

sr = 96000
ksmps = 1
;ksmps = 10
nchnls = 2
0dbfs = 1

instr 1
aenvsmooth linen 1, .01, p3, .01 ;envelope segment
aenv expon 1, p3, .01 ;exponential curve
asig oscil .5*aenv*aenvsmooth, p4, 1 
outs asig, asig
endin

instr 2
kk gausstrig 1, 5, 0
   schedkwhen kk, 0.0001, 1000, 1, 0, .2, 1000
endin

</CsInstruments>
; ==============================================
<CsScore>
f1 0 8192 10 1

i2 0 20

</CsScore>
</CsoundSynthesizer>