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

Change default octave for clefs in heuristic pitch finding #1208

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

lucasmarchd01
Copy link
Contributor

@lucasmarchd01 lucasmarchd01 commented Sep 16, 2024

Resolves DDMAL/heuristic_pitch_finding#12

  • I passed the docker hub test, and images can be built successfully.
  • I passed the GitHub CI test, so rodan functionalities and jobs work.

This fix addresses an issue with octave calculation in the PitchFinding.py file, where the octave was being calculated incorrectly for C clefs. The algorithm previously treated all non-C clefs as positioned above the C clef, which caused incorrect default octave in the MEI file output.

Introduced a clef_octave_map to define canonical base octaves for C, F, and G clefs. This fix simplifies the handling of clefs, focusing only on C, F, and G clefs as they are the primary use cases.

Also fixed logger import.

@homework36
Copy link
Contributor

I tested locally. Everything is great.

@lucasmarchd01 lucasmarchd01 merged commit a851c6f into develop Sep 23, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Nov 6, 2024
2 tasks
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.

5 participants