Album::createScore now tries to append all excerpts (parts) for each score. #2138
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If want to create joined mscz of an album of scores that all already contain pregenerated parts (called "excerpts" interally), then this fixes bug #70836 where only part excerpts from the first score are copied to joined score. Album::createScore now iterates over every part excerpt for every album item and appends it to the corresponding part excerpt of the joined score. That means that any part specific edits (e.g. part-specific spacings) are now copied over to the joined score. Note: for simplicity sake, I am assuming user has identical ordering of parts in each score. I am only testing to make sure that there are an equal number of part excerpts in each score and am testing that each part excerpt actually exists before trying to append, or else I display a meaningful qDebug message, and return failure so that the user gets presented with error popup. Any more testing (e.g. that the parts are named the same, use the same instruments, and have the same number of staves, etc.) I think is beyond of the scope of this bug as it would have made this fix much more complicated.