Commit graph

9 commits

Author SHA1 Message Date
Joachim Schmitz
1486642de2 Fix #272241: allow tab to go beyond 24 frets 2018-09-10 14:24:28 +02:00
Maurizio M. Gavioli
b54152874b TAB: New historical English fret style
Reference: https://musescore.org/en/node/82061 (forum thread)

Upon user request, adds a new character style for fret marks taken from a type used in several prints by different publishers in London between the last years of 16th c. and the beginning of 17th c.

Among them:
- Corkine's two lute books
- Some works by J. Dowland
- R. Dowland's _Varietie of Lute Lessons_
- Pilkington's _Ayres_
- Robinson's _Schoole of Musicke_
2015-11-25 10:39:13 +01:00
Werner Schweer
cc44d190fc Merge pull request #2235 from mgavioli/TAB_historic_beam_grid
TAB - Mixing mensural value symbols and beaming in historic tablatures
2015-10-27 17:13:17 +01:00
Maurizio M. Gavioli
c5bb238180 TAB - More French styles for frets and duration symbols
__Reference__: discussion, screen-shots and background on style selection in the forum thread https://musescore.org/en/node/76561

__Data-wise__ changes:

Adds __4 new styles of fret marks__ for French tablatures:
- "Phalèse" from mid-XVI c. Phalèse prints (replaces the "Late Renaissance" style which was unsuccessful)
- "Bonneuil-de Visée" from 1686 print by Bonneuil of de Visée "Livre de pièces pour la guittarre"
- "Bonneuil-Gaultier" from late XVII prints by bonneuil of Gaultier works
- "Lute Didactic", exampled on Yisrael's well-known methods for lute, an 'abstract' style familiar to lutenists

Adds __two new styles of duration symbols_ of French origin:
- "French Baroque" which goes well with the "Bonneuil-de Visée" fret mark style;
- "French Baroque (headless)" which goes well with the "Bonneuil-de Visée" style.

__Code-wise__ changes:

Converts legacy names into newer ones.
2015-09-30 01:17:55 +02:00
Maurizio M. Gavioli
6cab2d0f3b TAB - Mixing mensural value symbols and beaming in historic tablatures
__References__: Technology Preview forum post with discussion, screen-shots and links to additional threads https://musescore.org/en/node/81051

Implements the possibility to mix, in TAB's with note symbols at staff side, mensural value symbols (discreet glyphs) with the 'grid'-shaped beaming found in historical sources and commonly used in lute literature.

The beaming is implemented by special drawing of the `TabDurationSymbol` element holding the note value symbol, using drawing primitives instead of the relevant font glyph.

The user may choose between the two renderings (discreet glyph or beaming grid), on a chord-by-chord basis, by setting the chord `BeamMode` (via for instance the relevant palette): `AUTO` selects the glyph rendering, `beam start` the start of the grid and `beam middle` the continuation of the grid beamed to the previous element.

Typographic features of the grid (stem width, stem height and beam thickness) depend on the glyph style and are hard-coded in the style definition. As well as the number of beams for note value, which also depends on the note value style.

Also:
- Implements to possibility to force the display of a note value which would not be rendered by the current note value repetition setting, by setting the chord beam mode to any other value.
- Implements the 'no stem' chord setting for this TAB style, allowing to remove a note value symbol otherwise generated by the current repetition setting.
- Improves the detection of note value font metrics (still not perfect, though, as Qt `QFontMetricsF::tightboundingRect()` returns very approximated results)
- Fixes note value glyph scaling, when the staff scale is modified.
2015-09-27 13:33:05 +02:00
Maurizio M. Gavioli
8e0aeaa579 TAB: Support for input and display of bass string notations
Supports 'standard' configuration for bass string notations in historic tablatures (lutes and other plucked instruments, as well as viols), both of the French and of the Italian style. This should fill the last 'big hole' in historic TAB support.

Bass strings (or bourdons) are extra strings in addition to the 6 'standard' strings, which are not represented by tab lines and were indicated by other typograhic devices in historic sources. Among the innumerable variations shown in sources, this implementation supports the following styles, chosen to be general enough to suit the majority of cases, without requiring new parameters in the TAB style dialogue box:

- French: the first 4 bass courses are indicated by a fret mark in the 'seventh' TAB position (below bottom string) with 0, 1, 2 or 3 slashes prefixed; other bass courses are indicated, also in the 'seventh' TAB position, by the string number (from 4 on) and cannot contain a fret mark (as they didn't in historic sources).
- Italian: the first 2 bass courses are indicated by a fret mark in the 'seventh' TAB position (abover top string) with 1 or 2 'ledger lines' underneath; other bass courses are indicated, also in the 'seventh' TAB position, by the string number (from 9 on) and cannot contain a fret mark (as they didn't in historic sources). Rhythm marks above these indication are raised to leave room for them.

Both styles do not blindly assume that French style is top-to-bottom and Italian is 'upside-down' -- as historic sources are -- but adapt to the actual string order of the TAB. The choice between the two styles depends on the TAB using numbers or letters for the fret marks.

The implementation does not try to detect if the TAB is really of a historic style and applies either bass string notation whenever more strings are used than there are TAB lines. If this proves unsuitable to modern usage, some better heuristics can probably be found.

For a discussion and some screen shots, see: https://musescore.org/en/node/67261

**Note entry**

During TAB note entry, if the instruments has more strings than the TAB has lines, the string cursor can be moved outside of the TAB body, one position below for 'top-to-bottom' TAB's and one position above for 'upside-down' TAB's.

Further up or down movements add, to the 'blue cursor rectangle', markers indicating which is the actual target string (the cursor does not actually move), equal to the marks a note in that string will receive (slashes, ledger lines or string ordinal, according to the style and the string); during input the user will then receive the same info as when reading entered notes.

Other Notes:

- the `InputStatus::_string` variable, holding the current target TAB string in TAB note entry, changed meaning from the __visual__ string index to the __physical__ string index: this allows a better containment of the peculiarities of the individual TAB styles within the `StaffStyle` class, leaving other classes somehow freer of concern about TAB visual order and other peculiarities. As this variable is only used with TAB's, this change should not affect other functions.

- Some calculation for rhythm symbols have been moved from `TabDurationSymbol::draw()` to `TabDurationSymbol::layout()`, hopefully speeding up the drawing process.

- In fonts for historic styles, '10' has been replaced by 'X' both in fret numbers and in string ordinals, as this is more common in historic sources. Currently, this is not configurable; an additional style parameter could be added in future, if there will be enough request for it.
2015-08-17 10:52:05 +02:00
Maurizio M. Gavioli
5baa496e6c Small cosmetic changes to mscoreTAB fonts 2014-08-15 14:06:10 +02:00
Maurizio M. Gavioli
ac17a8cf99 TAB: improvements to fonts and presets
*) Add a serif font for fret marks (built-in FreeSerifMscore)
*) Use built-in FreeSans as fret mark sans font instead of special font
*) Split generic 6-str and 4-str presets into "simple" and "full" each
*) Remove "Bandurria" preset (now equal to 6-str full)
2013-03-11 20:21:04 +01:00
lasconic
4f5d638413 fix typo in fonts_tablature.xml filename 2012-08-27 15:53:46 +02:00
Renamed from fonts/fonts_tabulature.xml (Browse further)