| Hi everbody,
I just started with the Linux version of Csound and have two questions.
First, is it possible to get output in .au format? Then I could just
'cat' the
output file on /dev/audio. Or is this a property of the OSS driver?
Second, I got the impression that csound-3.44.linux is less stable than
Csound95,
which surprises me - I expected it the other way round. What are your
experiences?
For example, the following runs well with CSound95, but produces a
Segmentation fault with
csound-3.44.linux. Maybe it's my fault, but I can't see it...
; .orc
sr = 44100
kr = 44100
ksmps = 1
nchnls = 1
instr 1
idur = p3
ifrq = p4
iamp = p5
iamp1 = p6 ; Anfangs-Ampl (0..1)
iattck = p7 ; Verhaeltnis Anstiegzeit (0..1)
iamp2 = p8 ; Mittelampl.
iamp3 = p9 ; Endampl.
imxbeg = p10 ; Anfangswert Modindex
imxbrk = p11 ; Breakpoint-Modindex
imxend = p12 ; End-Modindex
kenv expseg iamp1, idur * iattck, iamp2, idur * (1 - iattck),
iamp3
kndx linseg imxbeg, idur * iattck, imxbrk, idur * (1 - iattck),
imxend
ax init 0
arnd rand 1
a1 = kenv * arnd + ax
ax delayr 1 / ifrq
delayw a1
acar oscili kenv * iamp, ifrq + kndx * ifrq * a1, 1
out acar
endin
; -----------------------------------
; .sco
f1 0 16385 10 1
; Start Dur Frq Amp A1 Attack A2 A3 Modx1 ModxB
Modx2
i1 0 2.0 2000 20000 0.01 0.0001 0.01 1 1 1
0
i. + 2.0 3000 20000 1.00 0.0001 1.00 0.01 0.2 0.2
0
i. + 1.0 1600 10000 0.01 0.005 1 0.01 0 0.3
0.0
i. + 0.5 800 . . . . .
i. + . 400 . . . . .
i. + . 200 . . . . .
i. + . 100 . . . . .
e
Regards,
Bernd
--
Bernd Eggink
Regionales Rechenzentrum der Universitaet Hamburg
eggink@rrz.uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html |