Skip to content

Commit

Permalink
fix: freeverbのパラメータ初期化忘れ
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiyukiOkayasu committed Jan 25, 2022
1 parent 29d23da commit 9d6419e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/ame_Reverb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Freeverb
explicit Freeverb (const FloatType sampleRate)
{
setSampleRate (sampleRate);
setRoomSize (0.5, 0.5);
}
~Freeverb() = default;

Expand Down Expand Up @@ -121,8 +122,8 @@ class Freeverb
for (uint_fast32_t ch = 0; ch < block.getNumChannels(); ++ch)
{
const FloatType input = block.view[i];
FloatType output = 0.0;

FloatType output {};
for (int cmb = 0; cmb < numCombs; ++cmb) //accumulate the comb filters in parallel
{
output += comb[ch][cmb].process (input, damping, feedback);
Expand Down

0 comments on commit 9d6419e

Please sign in to comment.