Skip to content

Commit

Permalink
Two very small floaty param fixes (#143)
Browse files Browse the repository at this point in the history
- playrate gets a formatter so gets typein
- warp rate is non temposync
  • Loading branch information
baconpaul authored Sep 26, 2024
1 parent 56583b1 commit ddaf2d2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions include/sst/effects/FloatyDelay.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* https://github.com/surge-synthesizer/sst-effects
*/

#ifndef INCLUDE_SST_EFFECTS_FLOATY_DELAY_H
#define INCLUDE_SST_EFFECTS_FLOATY_DELAY_H
#ifndef INCLUDE_SST_EFFECTS_FLOATYDELAY_H
#define INCLUDE_SST_EFFECTS_FLOATYDELAY_H

#include <cstring>
#include <cmath>
Expand Down Expand Up @@ -101,7 +101,12 @@ template <typename FXConfig> struct FloatyDelay : core::EffectTemplateBase<FXCon
.withName("Time");

case fld_playrate:
return pmd().asFloat().withRange(-5, 5).withName("Playrate").withDefault(1);
return pmd()
.asFloat()
.withRange(-5, 5)
.withName("Playrate")
.withDefault(1)
.withLinearScaleFormatting("x");

case fld_feedback:
return pmd().asPercent().withDefault(.5f).withName("Feedback");
Expand All @@ -113,7 +118,7 @@ template <typename FXConfig> struct FloatyDelay : core::EffectTemplateBase<FXCon
return pmd().asPercent().withName("Resonance").withDefault(.5f);

case fld_warp_rate:
return pmd().asLfoRate(-3, 4).withName("Rate");
return pmd().asLfoRate(-3, 4).withName("Rate").temposyncable(false);

case fld_warp_width:
return pmd().asPercent().withDefault(0.f).withName("Width");
Expand Down

0 comments on commit ddaf2d2

Please sign in to comment.