Csound Csound-dev Csound-tekno Search About

Re: [Csnd] syntax

Date1999-11-23 18:57
FromOeyvind Brandtsegg
SubjectRe: [Csnd] syntax
Hi everybody,
this is my first posting to the list

I think this should work better:

    k1    linen    iamp,0,idur,1
    kans    =      rnd(100)
    kcond1 = rnd(770)+110
    kfrq = (kans >= 80 ? kcond1 : 0 )
    a1    oscil    iamp, kfrq, 1

Oeyvind Brandtsegg
Trondheim, Norway

dkampman@xs4all.nl wrote:

> Why do I get the error "Segmentation fault"
> while csounding the following .orc-file and
> .sco-file?
> A problem is located in the formulation
> "(kans>=80 ? kfrq=rnd(770)+110 : kfrq=0)",
> and the problem remains when writing
> "(kans>=80 ? kfrq=1 : kfrq=0)".
> I thought the syntax was ok.



--