Skip to content

Commit

Permalink
Looper - Updated Frip Decay value to use explicit value instead of si…
Browse files Browse the repository at this point in the history
…n constexpr (electro-smith#170)

* fixes electro-smith#169 - change constant value for frip decay from std::sin to fixed value.

* style fix.

Co-authored-by: stephenhensley <stephen.p.hensley@gmail.com>
  • Loading branch information
stephenhensley and stephenhensley authored Nov 19, 2021
1 parent 99c6616 commit 4263388
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Utility/looper.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ class Looper

private:
/** Constants */
static constexpr float kFripDecayVal = std::sin(PI_F / 4.f);

/** Decay value for frippertronics mode is sin(PI / 4) */
static constexpr float kFripDecayVal = 0.7071067811865476f;
static constexpr int kNumModes = 4;
static constexpr int kNumPlaybackSpeeds = 3;
static constexpr int kWindowSamps = 1200;
Expand Down

0 comments on commit 4263388

Please sign in to comment.