-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactors for safety and ability to use different curve for float parameters #49
Conversation
@@ -539,18 +539,20 @@ void ReverbDelayModule::SetTempo(uint32_t bpm) { | |||
UpdateLEDRate(); | |||
} | |||
|
|||
float ReverbDelayModule::GetBrightnessForLED(int led_id) { | |||
float ReverbDelayModule::GetBrightnessForLED(int led_id) const { | |||
float value = BaseEffectModule::GetBrightnessForLED(led_id); | |||
|
|||
float osc_val = led_osc.Process(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't really know how to refactor this/want to test it so I just made led_osc mutable since it seems to only be used for the LED
@@ -253,9 +262,29 @@ void BaseEffectModule::SetParameterAsMagnitude(int parameter_id, float value) { | |||
return; | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this chunk is the main implementation change
…int of the knob when using logarithmic
Fixes #48