Implement issue #4121 CMN notes within tabgrp#4285
Implement issue #4121 CMN notes within tabgrp#4285paul-bayleaf wants to merge 7 commits intorism-digital:develop-tabfrom
Conversation
|
Thanks. At this point we can update to MEI 6. I will do it and you can rebase once this is done. I wonder if the alignment of the tablature glyphs with the note heads is what was expected by @reinierdevalk since the example he gave had the glyph centered on top of the note head. |
|
Thanks. The horizontal alignment is a bit off - I not sure why that is, with tablature the flags and beams are centred over the notes. I'll investigate. |
|
The fermata is not correctly aligned either, perhaps a common cause. |
|
I updated to MEI 6.0-dev. Could you rebase? |
|
|
||
| if (staff->IsTabStaffLike()) { | ||
| // move note left half a note width to be central under the tablature rhythm sign or beam stem etc | ||
| note->SetDrawingXRel( |
There was a problem hiding this comment.
It is not appropriate to change the drawing position while drawing. This should be done in the alignment functors. I'll have a look where that should be done
There was a problem hiding this comment.
Thinking about it, moving the position of the note will be problematic when staff-like notation will be displayed together with staff notation. So it seems that it would be better to align the tablature glyph with the notes, wouldn't it?
There was a problem hiding this comment.
Thanks. Yes it would. I did attempts to align the tablature glyph with the centre of its note by adjusting the position in View::DrawTabDurSym - as this is where the vertical positioning is done. Although this worked for the tablature glyphs and for the vertical beam stems, it didn't work for the horizontal beams nor for the fermata. Can this be done properly in the alignment functors?
|
Thanks @paul-bayleaf, this is starting to look very nice! You are probably well aware of this, but the stems for the beamed rhythm symbols, as well as the beams themselves, are much lighter (thinner) than the stems and flags for the unbeamed rhythm symbols. Is this something that will be addressed too? |
|
Thanks @reinierdevalk I'll take a look at the beam and stem thickness for tablature and tab.staff-like. Also the beams are rather close together. |
|
For the record, this is how guitar tabs are currently aligned with staff notation
In comparison, MuseScore align them with a head (whole?) note head
I now have pushed an adjustment that aligns them with the centre of a quarter note head verovio/src/calcchordnoteheadsfunctor.cpp Lines 108 to 117 in 4c8940b
|




Implements issue #4121 CMN notes within tabgrp
Important: This needs libmei to be updated to MEI 6 so that NOTATIONTYPE_tab_staff_like is included. As a temporary kludge I have edited attconverted.cpp and atttypes.h but these will, of course, be overwritten whenever libmei is re-generated. Please tell me how to proceed, thanks.
Examples of tab.staff-like notation
Example. Taken from issue #4121 but rendered with this PR.

Example. A full piece, the MEI has been generated with a modified luteconv - please excuse the missing key signature and enharmonic note spelling, this information not available in the original tablature and luteconv is not equipped to synthesize it.
