Skip to content

Commit

Permalink
fix up tests for modified ahdsr
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Sep 16, 2024
1 parent 42d3d72 commit 3877777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/run_envelopes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ std::vector<float> runEnv(T &mod, int gsteps, int rsteps, Args... a)
mod.attackFrom(0.f);
for (int i = 0; i < gsteps; ++i)
{
mod.processBlock(a..., true);
mod.processBlock(a..., true, true);
res.push_back(mod.outBlock0);
}
for (int i = 0; i < rsteps; ++i)
{
mod.processBlock(a..., false);
mod.processBlock(a..., false, true);
res.push_back(mod.outBlock0);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/smoketest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int main(int argc, char **argv)
auto dahd = sst::basic_blocks::modulators::DAHDEnvelope<SampleSRProvider, 16>(srp.get());
adsr.process(0, 0, 0, 0, 0, 0, 0, 0);
auto ahsc = sst::basic_blocks::modulators::AHDSRShapedSC<SampleSRProvider, 16>(srp.get());
ahsc.processBlock(0, 0, 0, 0, 0, 0, 0, 0, false);
ahsc.processBlock(0, 0, 0, 0, 0, 0, 0, 0, false, true);
auto ad = sst::basic_blocks::modulators::ADAREnvelope<SampleSRProvider, 16>(srp.get());
ad.processScaledAD(0, 0, 0, 0, false);
auto lf = sst::basic_blocks::modulators::SimpleLFO<SampleSRProvider, 16>(srp.get());
Expand Down

0 comments on commit 3877777

Please sign in to comment.