1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Adjusts tremolo scale.

This commit is contained in:
Thomas Harte 2020-05-10 00:43:46 -04:00
parent afef4f05fe
commit 64c62c16fb

View File

@ -84,7 +84,8 @@ template <int envelope_precision, int period_precision> class EnvelopeGenerator
@returns The current attenuation from this envelope generator. This is independent of the envelope precision. @returns The current attenuation from this envelope generator. This is independent of the envelope precision.
*/ */
int attenuation() const { int attenuation() const {
return (attenuation_ + tremolo_) << 3; // TODO: if this envelope is fully released, should tremolo still be able to vocalise it?
return (attenuation_ << 3) + tremolo_;
} }
/*! /*!