<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Chuckers,<br>
    <br>
    I just tried the PowerADSR chugins.<br>
    When used like a classical ADSR with function set() it works fine.<br>
    But when I add the setCurves() function after the sustain part of my
    sound disapear.<br>
    I checked the  PowerADSR.cpp file and found something suspect line
    235:<br>
    <br>
        float setDecayCurve( t_CKFLOAT dc) <br>
        {<br>
            m_decayCurve = dc;<br>
    <br>
    <b>        m_sustainLevel = m_currentLevel;</b><br>
            m_decayCount = 0;<br>
    <br>
            return dc;<br>
        }<br>
    <br>
    When setting the Decay curve, the function set sustain to current
    level. When the ADSR is off it reset it to zero.<br>
    When I comment this line 235 PowerADSR works like I expect. <br>
    I don't know what is the goal of this line so maybe it is not a
    propper fix.<br>
    <br>
    Note there is the same kind of action line 192 in the setDecay
    function. Some can also experiments problem with that, I think.<br>
    <br>
    Cheers,<br>
    <br>
    Julien<br>
    <br>
    <br>
  </body>
</html>