Skip to content

Commit

Permalink
The AEG skips block zero if attack is zero
Browse files Browse the repository at this point in the history
Closes #1328
  • Loading branch information
baconpaul committed Sep 16, 2024
1 parent c278c8b commit cda3b06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/sst/sst-basic-blocks
5 changes: 3 additions & 2 deletions src/voice/voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,15 @@ void Voice::voiceStarted()
}
}

aeg.attackFrom(0.0); // TODO Envelope Legato Mode
auto &aegp = endpoints->aeg;
aeg.attackFrom(0.0, *(aegp.aP) == 0.0); // TODO Envelope Legato Mode
if (egsActive[1])
{
eg2.attackFrom(0.0);
}
if (forceOversample)
{
aegOS.attackFrom(0.0);
aegOS.attackFrom(0.0, *(aegp.aP) == 0.0);
}

zone->addVoice(this);
Expand Down

0 comments on commit cda3b06

Please sign in to comment.