-
Notifications
You must be signed in to change notification settings - Fork 36
expose the id attribute of credit in mx::api #407
Copy link
Copy link
Open
Labels
aiIssues opened by, or through, a coding agent.Issues opened by, or through, a coding agent.apiAffects the mx::api layerAffects the mx::api layerdesignNot a simple fix. Requires design decisions.Not a simple fix. Requires design decisions.featurenew feature requestnew feature request
Description
Activity
Metadata
Metadata
Assignees
Labels
aiIssues opened by, or through, a coding agent.Issues opened by, or through, a coding agent.apiAffects the mx::api layerAffects the mx::api layerdesignNot a simple fix. Requires design decisions.Not a simple fix. Requires design decisions.featurenew feature requestnew feature request
MusicXML 3.1 gives many elements an optional
idattribute.mx::apiexposes theidof elements that have a matchingmx::apitype (#399).<credit>was left out.Today the value is dropped. Reading a file loses it, and there is no way to author one.
<credit>has anid, and so does each of its children<credit-words>,<credit-symbol>and<credit-image>. That is twoidvalues on one credit, or more.mx::apiholds a credit as one object:ScoreData::pageTextItemsholdsPageTextDataandScoreData::pageImageItemsholdsPageImageData(src/include/mx/api/PageTextData.h,src/include/mx/api/PageImageData.h). Each one stands for a<credit>and its child together.A
<credit>may also hold more than one<credit-words>or<credit-symbol>.PageTextFunctions.cppreads only the first one.