dangerous floating point math
-
AdmiralQuality AdmiralQuality https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=83902
- Banned
- 6657 posts since 10 Oct, 2005 from Toronto, Canada
camsr wrote:Very wise AQ, the release rate needs to be scaled as a function of the sustain level.
(Also, not just the sustain level. The note may have been released before it reached the sustain level. So you need to grab the current level when the note is released and scale from there.)
You're going to want to implement curves next, and having a 0 to 1 range for each segment will help there as well.