| Ruggero Andrea Ruschioni wrote:
> ... it seems that the kfreq argument on all waveguide opcodes is in
> fact not
> accepting kvalues. Example:
>
> kfreq line 220,2,440
> aflute wgflute 30000, kfreq, 0.32, 0.1, 0.1, 0.15, 5.925, 0.05, 1
> ^^^^
>
> This doesn't work for me, my csound gets stucked forever. If I
> substitute kfreq for an i-value it works.
> I tried winsound 3.473, RTsound1.9 and csound.exe 3.473 on a
> pentium133.
> Our Unix machines commited suicide today (friday 13th) so I didn't
> test
> this on SGIs, Linux or SUNs.
Try to initalize kfreq :
kfreq init 220 ;***** initialization of k-var
kfreq line 220,2,440
aflute wgflute 30000, kfreq, 0.32, 0.1, 0.1, 0.15, 5.925, 0.05, 1
> Also, on RTsound1.9 I was trying the following to test moscil:
> ------------------------------------------
> instr 1
> kchn = int (rnd(16))
> knum = int (rnd(127))
> kvel = int (rnd(127))
> kdur = rnd(2)
> kpause = rnd(1)
> moscil kchn, knum, kvel, kdur, kpause
> endin
> ------------------------------------------
>
> compiled with:
> csound -odevaudio -Q[x] orc sco
>
> with many serious and non-seriou experimantal values for [x]: it
> always
> crashes! (this program performed an illegal
> operation...blah...blah...)
>
> Whats the catch?
You must modify the instr in the following way:
;******** begin ********
;sinus.orc
sr=100
kr=100
ksmps=1
nchnls=1
instr 1
k1 init 16
k2 init 127
k3 init 127
kchn = int (rnd(k1))
knum = int (rnd(k2))
kvel = int (rnd(k3))
kdur = rnd(2)
kpause = rnd(1)
moscil kchn, knum, kvel, kdur, kpause
endin
;********* end ************
... and call RTsound with the following command line:
csound.exe -eYKQq file.orc file.sco
(also study carefully the RTsound readme file next time!!!)
I hope this will help you
--
Gabriel Maldonado
mailto:g.maldonado@agora.stm.it
http://www.agora.stm.it/G.Maldonado/home2.htm
http://www.geocities.com/SiliconValley/Way/7041/home2.htm
|