Csound Csound-dev Csound-tekno Search About

Re: Help with loscil

Date1997-09-22 15:47
FromJean Piche
SubjectRe: Help with loscil
Nathan,

Your problem seems to be in the pitch conversion area.
you were converting from pitch-class to cps-class and converting the
result (in cps) as if it was an oct-class to cps again... which would
yeild an extremely high cps value...
Keep in mind that in some versions, loscil optional parameters (loop
control) are *not* optional and have to be given...

Try this:


> 
> sr              =        44100
> kr              =        4410
> ksmps   =        10
> nchnls  =        1
> 
> instr 1
>  ilen  =    p3               ; length
>  iamp  =    ampdb(p4)        ; amplitude
>  ioct  =    cpspch(7.03)
> 
>  kskamp     linseg    .4, .008, 1, .008, .95, .02, .35, .044, 0
>  ask        loscil     iamp, ioct, 2, 155.6                             
> 
>  aski       gain       ask, kskamp, 20
>  out        aski

> endin

> f1      0  4096 10      1
> f2      0       0       1       "Clank"         0       0       1
> 
> ;in     st      ln      amp     pch
> i1      0       1       90

-- 
________________________________________________________
Jean Piche
Universite de Montreal
http://mistral.ere.umontreal.ca/~pichej
http://www.musique.umontreal.ca/electro/CEC/