negative values for linsegr

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

negative values for linsegr

Stefan Thomas-2
Dear community,
I've looked into the ModalAddSyn-opcode, that I've found here on of Iain McCurdys site.
Within the code a found the lines:
if isus==1 then
      adec    linsegr    0,iattScl*iatt,0,(p3*idur)-(iattScl*iatt),-98,(p3*idur)-(iattScl*iatt),-98    ;AMPLITUDE DECAY ENVELOPE
    else
      adec    linsegr    0,iattScl*iatt,0,(p3*idur)-(iattScl*iatt),-98,idur*0.4,-98        ;AMPLITUDE DECAY ENVELOPE
    endif
   
What I don't understand is: what do those negative values (-98) mean in linsegr?
I would have assumed, that the p-fields of linsegr can only be positive!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: negative values for linsegr

joachim-3
hi stefan -
the *durations* in linseg(r) can just be positive, but not the *values*.
so, it's possible to write
kbla linseg -1, p3, -5
but not
knono linseg 1, -1, 5

        joachim

Am 18.02.2012 17:00, schrieb Stefan Thomas:

> Dear community,
> I've looked into the ModalAddSyn-opcode, that I've found here
> <http://iainmccurdy.org/csound.html#ModalAddSyn.csd> on of Iain McCurdys
> site.
> Within the code a found the lines:
>
>     if isus==1 then
>           adec    linsegr  
>     0,iattScl*iatt,0,(p3*idur)-(iattScl*iatt),-98,(p3*idur)-(iattScl*iatt),-98  
>     ;AMPLITUDE DECAY ENVELOPE
>         else
>           adec    linsegr  
>     0,iattScl*iatt,0,(p3*idur)-(iattScl*iatt),-98,idur*0.4,-98      
>     ;AMPLITUDE DECAY ENVELOPE
>         endif
>
>    
> What I don't understand is: what do those negative values (-98) mean in
> linsegr?
> I would have assumed, that the p-fields of linsegr can only be positive!


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email [hidden email] with body "unsubscribe csound"

Loading...