Skip to content

Commit

Permalink
Fix an AHDRSSC release stage bug
Browse files Browse the repository at this point in the history
In 8196b9a I optimized the AHDSR
to not generate the full block if not needed. This broke the
release stage. In SC we only saw this in EG2 which is why it lingered.
Anyway fix that.
  • Loading branch information
baconpaul committed Nov 9, 2024
1 parent ee4a750 commit 12efd10
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion include/sst/basic-blocks/modulators/AHDSRShapedSC.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,14 @@ struct AHDSRShapedSC : DiscreteStagesEnvelope<BLOCK_SIZE, RangeProvider>
else
{
stage = base_t::s_release;
releaseStartValue = this->outputCache[0];
if (needsCurve)
{
releaseStartValue = this->outputCache[0];
}
else
{
releaseStartValue = this->outBlock0;
}
phase = 0;
}
}
Expand Down

0 comments on commit 12efd10

Please sign in to comment.