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
avoid dots for notes which may result in 256th notes/rests or shorter #544
Conversation
What about disabling the dot and dotdot buttons (and actions) when a short note is selected instead? |
Well... That's what I first wanted to do, but I couldn't find the right place where to disable the button. getAction("pad-dot")->setChecked(is.duration().dots() == 1);
getAction("pad-dotdot")->setChecked(is.duration().dots() == 2); with: if (is.duration() == TDuration::V_128TH) {
getAction("pad-dot")->setChecked(false);
getAction("pad-dot")->setEnabled(false);
getAction("pad-dotdot")->setChecked(false);
getAction("pad-dotdot")->setEnabled(false);
}
else if (is.duration() == TDuration::V_64TH) {
getAction("pad-dotdot")->setChecked(false);
getAction("pad-dotdot")->setEnabled(false);
getAction("pad-dot")->setEnabled(true);
getAction("pad-dot")->setChecked(is.duration().dots() == 1);
}
else {
getAction("pad-dot")->setEnabled(true);
getAction("pad-dotdot")->setEnabled(true);
getAction("pad-dot")->setChecked(is.duration().dots() == 1);
getAction("pad-dotdot")->setChecked(is.duration().dots() == 2);
} That is not a really elegant implementation, maybe the code can be written better. |
Just to precede @Jojo-Schmitz in asking: should be PR be closed? :-) |
:-) |
Updated and rebased the PR. It now seems to work as expected (i.e. it disables double dot for 1/64 and 1/128 notes and dot for 1/128 notes). |
avoid dots for notes which may result in 256th notes/rests or shorter
I merged but it doesn't work I expected. See http://musescore.org/en/node/50386 |
…s or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR musescore#544
…ests or shorter based on @AntonioBL's PR #544
This is just a tentative implementation to avoid problems such as:
http://musescore.org/node/23473
http://musescore.org/en/node/9077
I don't know if there may be other possible extreme cases in which these short-notes-problems may arise.