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

is there a way to lookup notes given a frequency? #4

Open
MaxPleaner opened this issue May 24, 2017 · 2 comments
Open

is there a way to lookup notes given a frequency? #4

MaxPleaner opened this issue May 24, 2017 · 2 comments

Comments

@MaxPleaner
Copy link

I am trying to write a tuner that can take an arbitrary frequency in hz and suggest a note for it.

I realize that the "note" suggested would be dependent on which scale I'm using. Although it'd be possible to have the user declare which scale they want to use, it'd be better if the software could check amongst multiple scales and show all the matches. This project seems like the most promising resource to do this which is why I'm asking.

@abbernie
Copy link
Owner

abbernie commented May 24, 2017

The specific frequencies of each scale degree will depend on what the root frequency of the scale is. The specific frequencies of each scale are determined by ratios relative to the root. Once you have set the root frequency (with the tune.tonicize() method), you could loop through the scale archive (in tunings.js) and return the scales that feature that frequency (or a close by one) in that particular key.

Hope that helps!

@MaxPleaner
Copy link
Author

@abbernie it does help. To save memory, seems like the best thing to do would be to do that denormalization server-side (map note values to frequency keys) and use API requests from the client.

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

No branches or pull requests

2 participants