|
|||
nastyfingers wrote: I tried storing a previous sample like with filters and mixing the 2 however this just causes signal overload. currentSamp = prevSamp + (currentSamp * (1.0f / attack)); You're accumulating more than you should. Keep track of the current adsr level, separately: ... envLevel = envLevel + increment; ... return envLevel; Leave currentSamp out of the ADSR class and multiply it by the value returned by the ADSR::process method. |
|||
| ^ | Joined: 18 Mar 2012 Member: #277127 | ||
|
|||
| ^ | Joined: 11 Jan 2013 Member: #296245 Location: Sheffield, UK | ||
|
|||
I replied ages ago guys but it just doesn't seem to want to appear on the thread. When I go to edit it all my text is there, just not on the thread. Can anyone see what I wrote? |
|||
| ^ | Joined: 11 Jan 2013 Member: #296245 Location: Sheffield, UK |
| KVR Forum Index » DSP and Plug-in Development | All times are GMT - 8 Hours |
|
Printable version |
Disclaimer: All communications made available as part of this forum and any opinions, advice, statements, views or other information expressed in this forum are solely provided by, and the responsibility of, the person posting such communication and not of kvraudio.com (unless kvraudio.com is specifically identified as the author of the communication).
Powered by phpBB © phpBB Group





