Chore/implement pitch helpers#5869
Conversation
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
375adbd to
1db2ce1
Compare
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
1db2ce1 to
fea6ab5
Compare
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
|
✅ All Jest tests passed! This PR is ready to merge. |
|
browser test passes Here's my concern:
Fix these and this should be good to go. |
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
f191ee2 to
b0c0224
Compare
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
|
✅ All Jest tests passed! This PR is ready to merge. |
4970fcf to
b11ff8e
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
b11ff8e to
317a633
Compare
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
1 similar comment
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
603ded1 to
5a3ef85
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
5a3ef85 to
b7c35be
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
|
LGTM now |
Overview
The
getPitchInfofunction in MusicBlocks has been refactored and enhanced to correctly handle a wide range of pitch strings, including multi-digit octaves, negative octaves, and double accidentals, including Unicode symbols.A new helper
_parse_pitch_stringwas introduced to modularize parsing logic, making the code cleaner, more maintainable, and robust.Key Changes
ACCIDENTAL_MAPConstant_parse_pitch_stringHelper"C4","A#10","F𝄪5".{ name, octave, pitchNumber }._calculate_pitch_numberUpdateBug Fixes
Tests
Verification
To test the fix locally: