Skip to content

Fix in formula for creating frequency from MIDI note #348

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

x-1xps
Copy link
Contributor

@x-1xps x-1xps commented Jul 11, 2024

The stated formula for converting midi-notes to frequency is wrong – the base and exponent of the second factor should be interchanged

The stated formula for converting midi-notes to frequency is wrong – the base and exponent of the second factor should be interchanged
@CLAassistant
Copy link

CLAassistant commented Jul 11, 2024

CLA assistant check
All committers have signed the CLA.

@JAndrassy
Copy link
Contributor

add more context to the title of the PR. the current title doesn't make sense in the context of the whole Renesas platform repo

@aentinger aentinger changed the title Formula correction Fix in formula for creating frequency from MIDI note Jul 12, 2024
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: documentation Related to documentation for the project labels Jul 12, 2024
Copy link
Collaborator

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The equation is correct as written:

https://en.wikipedia.org/wiki/Piano_key_frequencies

@per1234 per1234 closed this Jul 12, 2024
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Jul 12, 2024
@per1234 per1234 self-assigned this Jul 12, 2024
@x-1xps
Copy link
Contributor Author

x-1xps commented Jul 12, 2024

@per1234 please check again.. my correction reflects the formula stated in the wikipedia article. The formula in the current file does not.

@per1234 per1234 reopened this Jul 12, 2024
Copy link
Collaborator

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @x-1xps

@per1234 per1234 merged commit 0af3cba into arduino:main Jul 12, 2024
13 checks passed
@per1234 per1234 removed the conclusion: invalid Issue/PR not valid label Jul 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants