Skip to content
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

Merged
merged 7 commits into from
Dec 31, 2024

Conversation

xconverge
Copy link
Collaborator

@xconverge xconverge commented Dec 31, 2024

Fixes #48

@@ -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();
Copy link
Collaborator Author

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

@xconverge xconverge changed the title [DRAFT] Refactors for safety and ability to use different curve for float parameters Refactors for safety and ability to use different curve for float parameters Dec 31, 2024
@@ -253,9 +262,29 @@ void BaseEffectModule::SetParameterAsMagnitude(int parameter_id, float value) {
return;
}

Copy link
Collaborator Author

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

@xconverge xconverge merged commit 8922b7d into main Dec 31, 2024
1 check passed
@xconverge xconverge deleted the adjustParameterCurve branch January 1, 2025 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameter knob adjustment curve options besides linear
1 participant