adjustable portamento, fixed adsr

This commit is contained in:
michalcourson
2025-10-30 20:00:55 -04:00
parent 098bd49cb5
commit 3645e38dd5
4 changed files with 25 additions and 5 deletions

View File

@ -21,8 +21,8 @@ void ShifterVoice::Init(float sample_rate) {
portamento_.Init(sample_rate, 0.05f); //default portamento time
amplitude_envelope_.Init(sample_rate);
amplitude_envelope_.SetAttackTime(0.2f);
amplitude_envelope_.SetDecayTime(0.2f);
amplitude_envelope_.SetReleaseTime(1.0f);
amplitude_envelope_.SetDecayTime(0.1f);
amplitude_envelope_.SetReleaseTime(.1f);
onoff_ = false;
overflow_ = false;
current_midi = 60;