[MusicXML] Do not export accidentals on tablature#34257
Conversation
📝 WalkthroughWalkthroughMusicXML chord export now checks whether a note has an associated staff and suppresses 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsLinked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/importexport/musicxml/internal/export/exportmusicxml.cpp`:
- Around line 4442-4444: Update the isTabStaff() call in the accidental-writing
condition around note->staff() to use the note’s actual tick instead of
Fraction(0, 1), matching nearby time-dependent staff-type checks and preventing
accidentals on notes after a tablature change.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 92ef4a6d-d40c-4d40-a48f-bc6c96a7db15
📒 Files selected for processing (2)
src/importexport/musicxml/internal/export/exportmusicxml.cppsrc/importexport/musicxml/tests/data/testTapping.xml
💤 Files with no reviewable changes (1)
- src/importexport/musicxml/tests/data/testTapping.xml
Backport of musescore#34257 Co-Authored-By: Klaus Rettinghaus <rettinghaus@users.noreply.github.com>
As tablatures do not show accidentals, they should not be exported, as seen e.g. on https://www.w3.org/2021/06/musicxml40/tutorial/tablature/.