mirror of
https://github.com/airwindows/airwindows.git
synced 2026-05-15 06:05:55 -06:00
[PR #49] [CLOSED] Fix sweetBits switch logic #64
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/airwindows#64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/airwindows/airwindows/pull/49
Author: @chmaha
Created: 1/7/2024
Status: ❌ Closed
Base:
master← Head:master📄 Description
I noticed that the sweetBits switch logic has two issues. First, the logic doesn't allow for a sweet value of 0 (if the sweeten slider is at 0.0, I'd argue that there should be no change in the sound) so I added a case 12:
case 12: sweet = 0.0; break;. Second, we can never arrive at a sweetBits value of -1 with the lineint sweetBits = 10-floor(A*10.0);. So in order to allow for case values of 12 and -1 we needint sweetBits = 12-floor(A*13.0);.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.