djphazer / O_C-Phazerville

The kitchen sink of O_C firmware - do all the things!
http://firmware.phazerville.com/
243 stars 37 forks source link

ADSREG decay stage skipped when sustain is lowest #88

Closed charonme closed 3 months ago

charonme commented 4 months ago

when sustain is the lowest only the attack part is generated - probably caused by this line in DecayAmplitude() that was there since hemisphere

djphazer commented 4 months ago

Good call! It looks like that line was supposed to be if (sustain == 255) so it will only skip the decay stage if sustain is maxed.

Just tested it out, seems good. Fix pushed - https://github.com/djphazer/O_C-Phazerville/commit/db2c9e10a8ecbfad7e90150bcf6074d695bb99df

djphazer commented 3 months ago

Fixed in v1.8