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:
parent
afef4f05fe
commit
64c62c16fb
@ -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_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user