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

Allow reversal of hook flags within Inspector: Chord #742

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

worldwideweary
Copy link

Resolves: https://musescore.org/en/node/109706

Provides chord inspector checkbox to reverse hooks.
Didn't "hand-roll" the .ui changes but used Qt Creator so there may be some extra changes in there not absolutely necessary.

To test:

  1. Select a note head
  2. Make sure it's of the flag duration type 1/8th or lesser in value
  3. Enable "reversed hook"

image

Kind of a gimmick, but so long as it doesn't hurt anything I suppose it might fulfill little niche use cases for some people.

Testing appreciated

@Jojo-Schmitz
Copy link
Owner

I've tried to port it to Mu4, see musescore#25938, doesn't (yet) work though

@@ -78,6 +78,7 @@ static constexpr PropertyMetaData propertyList[] = {
{ Pid::DIRECTION, false, "direction", P_TYPE::DIRECTION, DUMMY_QT_TRANSLATE_NOOP("propertyName", "direction") },
{ Pid::STEM_DIRECTION, false, "StemDirection", P_TYPE::DIRECTION, DUMMY_QT_TRANSLATE_NOOP("propertyName", "stem direction") },
{ Pid::NO_STEM, false, "noStem", P_TYPE::INT, DUMMY_QT_TRANSLATE_NOOP("propertyName", "no stem") },
{ Pid::HOOK_REVERSED, false, "hookReverse", P_TYPE::BOOL, DUMMY_QT_TRANSLATE_NOOP("propertyName", "reverse hook") },
Copy link
Owner

Choose a reason for hiding this comment

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

Probably better "hookReversed" or even "reversedHook" (requires changes elsewhere too) and "reversed hook"

@Jojo-Schmitz
Copy link
Owner

Please add HOOK_REVERSED to ...mscore/plugin/api/elements.h too

@worldwideweary worldwideweary force-pushed the 3.7-AllowFlaghookReversal branch from 9479993 to 4bfd2ea Compare December 30, 2024 03:04
@Jojo-Schmitz Jojo-Schmitz force-pushed the 3.x branch 2 times, most recently from 9326c7c to 88927e8 Compare January 6, 2025 11:42
@Jojo-Schmitz Jojo-Schmitz force-pushed the 3.x branch 16 times, most recently from d7bdf01 to 1c178b8 Compare January 10, 2025 17:27
@Jojo-Schmitz Jojo-Schmitz force-pushed the 3.x branch 4 times, most recently from e03471a to a4d9423 Compare January 10, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement strings Affects translatable strings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants