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

Add voice assignment to MEI support #24735

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rettinghaus
Copy link
Contributor

This PR adds basic support for voiceAssignment in MEI import/export. For this to some control elements the recommended @staff attribute is added, and additionally the voice is exported to the @layer attribute, if a danymic or hairpin is assigned to a specific voice.

Resolves: #24471

src/importexport/mei/internal/meiconverter.cpp Outdated Show resolved Hide resolved
src/importexport/mei/internal/meiconverter.cpp Outdated Show resolved Hide resolved

libmei::xsdPositiveInteger_List staffList;
staffList.push_back(item->staff()->idx() + 1);
// TODO: add staff number if centered between staves
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the 'discriminating factor' really be whether the number is centered between staves, or should it be when the voice assignment is set to ALL_VOICE_IN_INSTRUMENT?
It might be relatively easily to implement using item->part()->staveIdxList().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Information in the @staff attribute is more of a visual nature, i.e. staff="2 3" means something appears on staff 2 and staff 3, and has to be accompanied by a pleace="between". I'll look into this later.

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.

Add support for Voice assignment to MEI import/export
2 participants