Skip to content

Commit

Permalink
Initialize previous_position_ prior to use in rings/elements resonators.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher A. Oliver committed Apr 29, 2020
1 parent 3555b2d commit 43b9c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions elements/dsp/resonator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ void Resonator::Init() {
set_brightness(0.5f);
set_damping(0.3f);
set_position(0.999f);
previous_position_ = 0.0f;
set_resolution(kMaxModes);

bow_signal_ = 0.0f;
Expand Down
1 change: 1 addition & 0 deletions rings/dsp/resonator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ void Resonator::Init() {
set_brightness(0.5f);
set_damping(0.3f);
set_position(0.999f);
previous_position_ = 0.0f;
set_resolution(kMaxModes);
}

Expand Down

0 comments on commit 43b9c9f

Please sign in to comment.