| Dear CSounders.
I've been having a few problems with
locsig opcode and I would like someone
could help me.
I created a very simple instrument
using locsig (and locsend). I run CSound
(version 3.491 for both Mac and PC) and
I can't notice any problem. A quad sound
is generated but the result is quite strange.
The channel 1 has a very high amplitude, the
second one has a very low amplitude and the
other channels have no amplitude.
I'm not an expert therefore it's possible
that my script is wrong.
Anyway I can't find it.
The files are here:
;releasenn.orc
sr=44100
kr=4410
ksmps=10
nchnls=4
ga1 init 0
ga2 init 0
ga3 init 0
ga4 init 0
instr 1
idist=p6
kshape linen p4,p3/200,p3,p3/8
asig oscili kshape,p5,2
kvel linseg .1,3*(p3/5),13,2*(p3/5),.5
kdeg oscili 1,kvel,1
kdist linseg idist,3*(p3/5),idist/15,2*(p3/5),idist
a1,a2,a4,a3 locsig asig,kdeg,kdist,.3
ar1,ar2,ar4,ar3 locsend
ga1=ga1+ar1
ga2=ga2+ar2
ga3=ga3+ar3
ga4=ga4+ar4
outq a1,a2,a4,a3
endin
instr 99
a1 reverb2 ga1,1.12,.2
a2 reverb2 ga2,1.12,.2
a3 reverb2 ga3,1.12,.2
a4 reverb2 ga4,1.12,.2
outq a1,a2,a4,a3
ga1=0
ga2=0
ga3=0
ga4=0
endin
;releasenn.sco
f1 0 512 07 0 512 360 ;degree
f2 0 4096 10 1 .8 .6 .4 .2 .05
i1 0 30 30000 760 15
i99 0 30
e
Thanks a lot!
Ignacio de Campos
--
Ignacio de Campos/Gloria Cunha
Rua Helenita Aparecida Bassan de Sa' n792
13083-723 - Campinas, SP
glocunha@turing.unicamp.br
http://www.geocities.com/SiliconValley/Way/9619/musicanova.html
http://www.geocities.com/SoHo/Gallery/7055/bimesp98.html |