Csound Csound-dev Csound-tekno Search About

Re: Bug in linseg (recent versions)

Date1999-05-13 17:21
FromRiccardo Bianchini
SubjectRe: Bug in linseg (recent versions)
David Boothe wrote:
Riccardo-

>There seems to be some code missing in the orc. Could you supply the
rest of
>the instrument so that k3 and a1 are defined?

>To get it to compile, I changed k3 to kr and a1 to aecc. Then multiply
aecc
>by 10000 to get a visible output. I say visible instead of audible,
because
>it looked like a control signal: a stair-stepped straight line decaying
from
>+25000 to 0 and taking 1 second to do so.

>-David.

Sure I put a lot of typos in this orc! The original orchestra is fairly
complex, so I "extracted" the fragment regarding the (supposed?) bug in
linseg.
The orchestra shoud be:
 sr=44100
 kr=44100    ;<-----!
 ksmps=1
 nchnls=1
 instr    1
 a1    linseg    0,1/kr,1,2/kr,-1,1/kr,0,p3-4/kr,0
 out    a1*10000
 endin

;score
i1 0 1

As David Boothe reports, the result is not what the orchestra is
intended to produce.
I can confirm that it works well with Csound versions up to 3.48.
Sorry again for the typos.
Riccardo
--
*************************************
Riccardo Bianchini, composer
Professor, Scuola di Musica Elettronica
Conservatorio "S.Cecilia", Roma
http://www.fabaris.it/bianchini
http://www.geocities.com/Heartland/Acres/4768

Conservatorio: http://space.tin.it/musica/ilipc
*************************************