Tuplets misaligned

• Mar 15, 2018 - 08:57

Please see attached score. The triplets on pages 15 to 17 have all gone for a sixer.
I don't know how this happened.
While writing the score it was correct. I tried to re-align the bar numbers by shifting them a little to the right. That was when I observed that the number '3' in the tuplet bracket also got shifted.
How can I rectify this? Would I have to re-write the tuplets all over again?


Comments

Did you somehow just select the "3" part of the triplets when you adjusted the measure numbers? That would clearly be a bug. But I can't seem to reproduce that action.

So on inspection of the mscx file, I notice that for these Tuplets, the Number element "3" for each of them has an xpos and and ypos:

and deleting those lines for each tuplet seems to fix it.

So I opened the .mscx (uncompressed) in a text editor and manually removed all lines for elements which had "xpos" or "offset". Try the attached file, and let me know if that is corrected.

I am very curious about your exact steps (keyboard and mouse) you took which got these "3" numbers out of position... If you can remember exactly...ideally would like reproduction steps starting from a blank score.

In reply to by ericfontainejazz

Dear Sir,
Thank you. Yes your manually edited score is correct.
To answer your queries:
I'm using 2.1 version on Windows 10.

As requested I'm reproducing below the sequence :
I’m reproducing below the sequence of steps that led to the mis-alignment of the tuplet brackets.
• Create a new score sheet
• Go to Style --- General --- Numbers --- Interval --- 5 --- Apply --- ok
• Select a Bar number --- select All Similar elements
• Open Inspector ---- increase Horizontal Offset to bring bar number to middle of bar.
• Select a Bar number ---- select Text Style --- remove Frame
• Start entering the score for all voices

I have also attached a score sheet where this has been reproduced.

To my knowledge I think the mistake I made was selecting bar numbers universally and shifting their horizontal position.
I did not notice that when I selected bar numbers even the tuplet number (3) also got selected and got shifted.
This is my assumption.

Attachment Size
Testing.mscz 21.93 KB

In reply to by johnbhasme0315

"I did not notice that when I selected bar numbers even the tuplet number (3) also got selected and got shifted. This is my assumption."
True.
And so, don't use the Inspector for changing the horizontal/vertical offsets of the bar numbers, but do it in menu "Style" -> Text -> Bar numbers.

In reply to by cadiz1

This is interesting. If you use right click and Select >All similar elements on:

Tuplets - you will only select tuplets
Measure numbers - you will select measure numbers, tuplets and the Title
The Title - you will select measure numbers, tuplets and the Title

...and the inspector doesn't realize you have different items selected.

If you select the Title and a measure number (using ctrl+click) the inspector thinks you have similar items selected, if you add a tuplet number the inspector realized there are different items selected.

Very strange behavior.

In reply to by Marc Sabatella

Interesting.

If I select a measure number, the inspector says it is "Frame Text" element with "Substyle" combo-box set to empty.
If I select a title text, the inspector says it is "Frame Text" element with "Substyle" set to "title".
If I select a coposer text, the inspector says it is "Frame Text" element with "Substyle" set to "Composer"

So I'm gonna try changing the select all logic to select Frame Text only of matching substyle. That will differentiate between Title text vs Composer text vs any other text.

I'm a bit curious why Measure Numbers are treated as "Frame Text" to begin with, and not some other new type of text. Because to me they aren't associated with a Frame.

In reply to by ericfontainejazz

Interestingly for measure numbers, if instead of "Selecting All", if I instead select the "More..." option, I see the type listed as "Text", but the Substyle is greyed out. However when doing the same with Title Text, I can check the "Same subtype" checkbox, in which case it only selects title text.

So basically i think I will redefine "Select All" for these text elements to match the substyle.

In reply to by ericfontainejazz

I'm modifying both functions:

void Score::selectSimilar(Element* e, bool sameStaff)
void Score::selectSimilarInRange(Element* e)

with additional case:
else if (type == ElementType::TEXT) {
pattern.subtype = e->subtype();
pattern.subtypeValid = true;
}

I'm noting that for measure number, the subtype is -1. Hard to say exactly what -1 means (maybe "unspecified"?), but that would explain why the inspector's SubStyle combo-box is empty, and would explain why in "More..." popup, the substyle is greyed out.

But turns out selecting by subtype isn't enough. This change does cause Title & Composer texts to not be selected when selecting Meausure Number text. However there is still the problem that the text of the number of tuplets still get selected as well.

So I'm thinking maybe there needs to be an additional subtype "Measure Number". That way selecting all for measure numbers won't select tuplet text as well. And wondering if should maybe also have a separate subtype for tuplets as well, instead of -1.

In reply to by ericfontainejazz

That fixed the selection problem, so now selecting all measure numbers only select measure numbers.

I'm figured out why the Inspector doesn't have anything listed in SubStyle when Measure Numbers were selected. That is because InspectorText::InspectorText() didn't add substyle for MEASURE_NUMBER. So I've added measure number to that combo box, and now when I select a measure number, I see the Substyle in inspector correctly indicate it is a measure number.

Do you still have an unanswered question? Please log in first to post your question.