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

Fix stem direction on drumset XML import #22908

Merged
merged 1 commit into from
May 21, 2024

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented May 20, 2024

Resolves: see images - an issue with incorrect stem directions after importing drumkit parts from an XML file
Screenshot 2024-05-20 at 11 00 21
Screenshot 2024-05-20 at 11 00 59

@miiizen miiizen marked this pull request as ready for review May 20, 2024 10:01
@oktophonie oktophonie requested a review from mike-spa May 20, 2024 12:47
static void xmlSetDrumsetPitch(Note* note, const Chord* const chord, const Staff* const staff, int step, int octave,
NoteHeadGroup headGroup, const Instrument* const instrument)
static void xmlSetDrumsetPitch(Note* note, Chord* const chord, const Staff* const staff, int step, int octave,
NoteHeadGroup headGroup, DirectionV& stemDir, const Instrument* const instrument)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it really necessary to have all these const-pointer to const-object definitions? Can't it just be const Chord* const Staff* const Instrument*?

@mike-spa mike-spa merged commit 9f8076b into musescore:master May 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants