Csound Csound-dev Csound-tekno Search About

RE: Bug in linseg (recent versions)

Date1999-05-13 16:07
FromDavid Boothe
SubjectRE: Bug in linseg (recent versions)
RE: Bug in linseg (recent versions)

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.

> -----Original Message-----
> From: Tobias Kunze [mailto:tkunze@ccrma.stanford.edu]
> Sent: Thursday, May 13, 1999 9:39 AM
> To: Riccardo Bianchini
> Cc: csound@maths.ex.ac.uk
> Subject: Re: Bug in linseg (recent versions)
>
>
> > sr=44100
> > kr=44100    ;<-----!
> > ksmps=1
> > nchnls=1
> > instr    1
> > aecc    linseg    0,1/kr,1,2/k3,-1,1/k3,0,p3-4/kr,0
> > out    a1
> > endin
>
> This certainly is a hall of famer!  Your orchestra causes
> 5 compilation errors in 2 lines of active code.  That is
> an mind-boggeling Sustained Error Rate of 2.5 per line...
>
> Not bad for a public post!
>