mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-27 06:35:04 +00:00
Ensure all channels begin in 'release' phase, which is currently code for 'off' in conjunction with attenuation of 511.
This commit is contained in:
parent
ea42fe638a
commit
75315406bb
@ -186,7 +186,7 @@ template <int envelope_precision, int period_precision> class EnvelopeGenerator
|
|||||||
private:
|
private:
|
||||||
enum class Phase {
|
enum class Phase {
|
||||||
Attack, Decay, Sustain, Release, Damp
|
Attack, Decay, Sustain, Release, Damp
|
||||||
} phase_ = Phase::Attack;
|
} phase_ = Phase::Release;
|
||||||
int attenuation_ = 511, tremolo_ = 0;
|
int attenuation_ = 511, tremolo_ = 0;
|
||||||
|
|
||||||
bool key_on_ = false;
|
bool key_on_ = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user