%GregorioTeX file.
%
% Copyright (C) 2010-2021 The Gregorio Project (see CONTRIBUTORS.md)
%
% This file is part of Gregorio.
%
% Gregorio is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Gregorio is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Gregorio. If not, see .
% this file contains definitions of spaces and penalties
% version check
\gre@declarefileversion{gregoriotex-gsp-default.tex}{6.0.0}% GREGORIO_VERSION
%% First, the penalties
% penalty to force a break on a new line
\grechangecount{newlinepenalty}{-10001}%
% penalty to prevent a line break
\grechangecount{nobreakpenalty}{10001}%
% penalty at the end of a syllable which is the end of a word
\grechangecount{endofwordpenalty}{-100}%
% penalty at the end of a syllable which is not the end of a word
\grechangecount{endofsyllablepenalty}{-50}%
% penalty at the end of a syllable which is just a bar, with something printed
% under it
\grechangecount{endafterbarpenalty}{-200}%
% penalty right after a bar with nothing printed
\grechangecount{endafterbaraltpenalty}{-200}%
% penalty at the end of the score
\grechangecount{finalpenalty}{0}%
% penalty at the end of a breakable neumatic element (typically at a space
% between elements)
\grechangecount{endofelementpenalty}{-50}%
% hyphenpenalty will be used in discretionaries, in Gregorio this is used for
% a bar with clef change for example. It also set \exhyphenpenalty. It should
% be close to endafterbarpenalty
\grechangecount{hyphenpenalty}{-200}%
% broken penalty is the vertical penalty inserted after a break on a clef change
% I'm not sure it should be set, but it might be useful...
\grechangecount{brokenpenalty}{0}%
%% These macro enable the tuning of linepenalty, tolerance, pretolerance
%% and emergencystretch
\grechangecount{looseness}{-1}%
\grechangecount{tolerance}{9000}%
% Workaround for bug 842 (http://tracker.luatex.org/view.php?id=842)
% see http://tug.org/pipermail/luatex/2013-July/004516.html
% The idea is that we use discretionaries (explicit hyphens, though more than hyphens in our case) for clef changes, and we need to give them a special penalty, which is not taken into account if pretolerance is > -1 on LuaTeX < 0.80. For a more detailed explanation see http://tug.org/pipermail/luatex/2013-July/004516.html.
\ifnum\the\luatexversion < 78\relax %
\grechangecount{pretolerance}{-1}%
\else %
\grechangecount{pretolerance}{\the\pretolerance}%
\fi %
\gre@createdim{emergencystretch}{\the\emergencystretch}{scalable}%
% By default, we don't care if a line of score is alone on the page,
% if you think it is bad, you can modify the two following values. Assigning
% 10000 to them will prevent all orphaned lines (this will certainly improve
% some spacings a lot).
\grechangecount{widowpenalty}{0}%
\grechangecount{clubpenalty}{0}%
% Protrusion factors
% protrusion factor for comma
\gresetprotrusionfactor{,}{0}%
% protrusion factor for semicolon
\gresetprotrusionfactor{;}{0}%
% protrusion factor for colon
\gresetprotrusionfactor{:}{0}%
% protrusion factor for period
\gresetprotrusionfactor{.}{0}%
% protrusion factor for hyphens added automatically in the Lua phase
\gresetprotrusionfactor{eolhyphen}{0}%
% protrusion factor used by without an argument
\gresetprotrusionfactor{default}{1}%
%%%%%%%%%%%%%%%%%%%
%% And finally, all the spacings:
%%%%%%%%%%%%%%%%%%%
%This count tells gregoriotex what \gre@factor the below values correspond to.
%% All the following values correspond to a gre@factor of 17. At this size the scores should be approximately the size usually seen in a gradual.
%% If you’re creating your own space configuration file, you may set this to some other value, should you so desire.
\greconffactor=17%
%How thick the lines should be. When set equal to \greconffactor (above) the staff lines will be their default thickness. Larger numbers result in thicker lines.
\grechangestafflinethickness{17}%
% the additional width of the additional lines (compared to the width of the glyph they're associated with)
\gre@createdim{additionallineswidth}{0.14584 cm}{scalable}%
% width of the additional lines, used only for the custos (maybe should depend on the width of the custos...)
% the width is the one for the custos at end of lines, the line for custos in the middle of a score is the same
% multiplied by 2.
\gre@createdim{additionalcustoslineswidth}{0.09114 cm}{scalable}%
% null space
\gre@createdim{zerowidthspace}{0 cm}{scalable}%
% space between glyphs in the same element
\gre@createdim{interglyphspace}{0.06927 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
% space between an alteration (flat or natural) and the next glyph
\gre@createdim{alterationspace}{0.07747 cm}{scalable}%
% space between a clef and a flat (for clefs with flat)
\gre@createdim{clefflatspace}{0.05469 cm plus 0.00638 cm minus 0.00638 cm}{scalable}%
% space before a choral sign
\gre@createdim{beforelowchoralsignspace}{0.04556 cm plus 0.00638 cm minus 0.00638 cm}{scalable}%
% when bolshifts are enabled, minimal space between a clef at the beginning of the line and a leading alteration glyph (should be larger than clefflatspace so that a flatted clef can be distinguished from a flat which is part of the first glyph on a line, but also smaller than spaceafterlineclef, the distance from the clef to the first notes)
\gre@createdim{beforealterationspace}{0.1 cm}{scalable}%
% half-space between elements
\gre@createdim{halfspace}{0.03463 cm plus 0.00091 cm minus 0.00182 cm}{scalable}%
% space between elements
\gre@createdim{interelementspace}{0.06927 cm plus 0.00182 cm minus 0.00363 cm}{scalable}%
% larger space between elements
\gre@createdim{largerspace}{0.10938 cm plus 0.01822 cm minus 0.00911 cm}{scalable}%
% space between elements in ancient notation
\gre@createdim{nabcinterelementspace}{0.06927 cm plus 0.00182 cm minus 0.00363 cm}{scalable}%
% larger space between elements in ancient notation
\gre@createdim{nabclargerspace}{0.10938 cm plus 0.01822 cm minus 0.00911 cm}{scalable}%
% space between elements which has the size of a note
\gre@createdim{glyphspace}{0.21877 cm plus 0.01822 cm minus 0.01822 cm}{scalable}%
% space before in-line custos
\gre@createdim{spacebeforeinlinecustos}{0.10938 cm plus 0.01822 cm minus 0.00911 cm}{scalable}%
% space before end-of-line custos
\gre@createdim{spacebeforeeolcustos}{0.23 cm plus 0 cm minus 0 cm}{scalable}%
% space before punctum mora and augmentum duplex
\gre@createdim{spacebeforesigns}{0.050 cm plus 0.004 cm minus 0.004 cm}{scalable}%
% when a syllable is shifted left because of a preceding punctum mora, moraadjustmentbar is
% also added. Use it to make the syllable a bit further from the punctum mora if you want.
% This version is the general case.
\gre@createdim{moraadjustment}{0.050 cm}{scalable}%
% This version is for when punctum mora is before a bar.
\gre@createdim{moraadjustmentbar}{0.050 cm}{scalable}%
% space after punctum mora and augmentum duplex
\gre@createdim{spaceaftersigns}{0.08203 cm plus 0.0082 cm minus 0.0082 cm}{scalable}%
% space after a clef at the beginning of a line
\gre@createdim{spaceafterlineclef}{0.23 cm plus 0 cm minus 0.01367 cm}{scalable}%
% space after a clef at the beginning of a line, when the clef and first note are vertically distant
\gre@createdim{shortspaceafterlineclef}{0.18 cm plus 0 cm minus 0.01367 cm}{scalable}%
% minimal space between notes of different words
\gre@createdim{interwordspacenotes}{0.29 cm plus 0.05 cm minus 0.05 cm}{scalable}%
% minimal space between notes of the same syllable.
\gre@createdim{intersyllablespacenotes}{0.24 cm}{scalable}%
% stretching added in the case where the text of two syllables of the same word are
% separated with an automatic hyphen
\gre@createdim{intersyllablespacestretchhyphen}{0cm plus 0.05cm}{scalable}%
% minimal space between letters of different words.
\gre@createdim{interwordspacetext}{0.17 cm plus 0.05 cm minus 0.05 cm}{scalable}%
% Versions of interword spaces for euouae blocks
\gre@createdim{interwordspacenotes@euouae}{0.23 cm plus 0.1 cm minus 0.05 cm}{scalable}%
\gre@createdim{interwordspacetext@euouae}{0.21 cm plus 0.1 cm minus 0.05 cm}{scalable}%
% versions of note spaces when the first note of the second syllable is an alteration
% those are used in euouae blocks
\gre@createdim{interwordspacenotes@alteration}{0.1 cm plus 0.07 cm minus 0.01 cm}{scalable}%
\gre@createdim{intersyllablespacenotes@alteration}{0.1 cm}{scalable}%
% space between notes of a bivirga or trivirga
\gre@createdim{bitrivirspace}{0.06927 cm plus 0.00182 cm minus 0.00546 cm}{scalable}%
% space between notes of a bistropha or tristrophae
\gre@createdim{bitristrospace}{0.06927 cm plus 0.00182 cm minus 0.00546 cm}{scalable}%
%
%%%%%%%%%%%%%%%%%%%%
% puncta inclinata %
%%%%%%%%%%%%%%%%%%%%
%
% space between two descending punctum inclinatum
\gre@createdim{punctuminclinatumshift}{-0.03918 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between two descending or ascending punctum inclinatum at the unison
\gre@createdim{punctuminclinatumunisonshift}{0.05286 cm plus 0.00728 cm minus 0.00455 cm}{scalable}%
% space before descending puncta inclinata
\gre@createdim{beforepunctainclinatashift}{0.05286 cm plus 0.00728 cm minus 0.00455 cm}{scalable}%
% space between a descending punctum inclinatum and a punctum inclinatum deminutus
\gre@createdim{punctuminclinatumanddebilisshift}{-0.02278 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between two punctum inclinatum deminutus
\gre@createdim{punctuminclinatumdebilisshift}{-0.00728 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between descending puncta inclinata, larger ambitus (range=3rd)
\gre@createdim{punctuminclinatumbigshift}{0.07565 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between descending puncta inclinata, larger ambitus (range=4th or 5th)
\gre@createdim{punctuminclinatummaxshift}{0.17865 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between two ascending punctum inclinatum
\gre@createdim{ascendingpunctuminclinatumshift}{-0.03918 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between a punctum inclinatum and a punctum inclinatum deminutus, ascending
\gre@createdim{ascendingpunctuminclinatumanddebilisshift}{-0.02278 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between ascending puncta inclinata, larger ambitus (range=3rd)
\gre@createdim{ascendingpunctuminclinatumbigshift}{0.07565 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between ascending puncta inclinata, larger ambitus (range=4th or 5th)
\gre@createdim{ascendingpunctuminclinatummaxshift}{0.17865 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between a punctum inclinatum and a no-bar glyph one pitch below
\gre@createdim{descendinginclinatumtonobarshift}{-0.00073 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
% space between a punctum inclinatum and a no-bar glyph two pitches below
\gre@createdim{descendinginclinatumtonobarbigshift}{0.10927 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
% space between a punctum inclinatum and a no-bar glyph three or four pitches below
\gre@createdim{descendinginclinatumtonobarmaxshift}{0.23927 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
% space between a punctum inclinatum and a no-bar glyph one pitch above
\gre@createdim{ascendinginclinatumtonobarshift}{-0.02473 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
% space between a punctum inclinatum and a no-bar glyph two pitches above
\gre@createdim{ascendinginclinatumtonobarbigshift}{0.04427 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
% space between a punctum inclinatum and a no-bar glyph three or four pitches above
\gre@createdim{ascendinginclinatumtonobarmaxshift}{0.12927 cm plus 0.00363 cm minus 0.00363 cm}{scalable}%
% space between two descending punctum inclinatum glyphs in an ascent
\gre@createdim{descendingpunctuminclinatumascendingshift}{-0.07918 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between two ascending punctum inclinatum glyphs in an descent
\gre@createdim{ascendingpunctuminclinatumdescendingshift}{-0.07918 cm plus 0.0009 cm minus 0.0009 cm}{scalable}%
% space between two unison punctum inclinatum glyphs (at the unison)
\gre@createdim{uprightpunctuminclinatumshift}{0.05286 cm plus 0.00728 cm minus 0.00455 cm}{scalable}%
%
%%%%%%%%
% bars %
%%%%%%%%
%
% bars inside syllables
%
% short versions are when the notes are very low (virgula, minima, and minimis only)
\gre@createdim{bar@virgula}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@virgula@short}{0.13 cm plus 0.05 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@virgulaparen}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@virgulaparen@short}{0.13 cm plus 0.05 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@minimis}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@minimis@short}{0.12 cm plus 0.05 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@minima}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@minima@short}{0.12 cm plus 0.05 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@minimaparen}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@minimaparen@short}{0.12 cm plus 0.05 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@minor}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
% dominican bars
\gre@createdim{bar@dominican}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@maior}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
\gre@createdim{bar@finalis}{0.1823 cm plus 0.22787 cm minus 0.00469 cm}{scalable}%
% space added before the final divisio finalis (old bar spacing algorithm only)
\gre@createdim{bar@finalfinalis}{0.29169 cm plus 0.07292 cm minus 0.27345 cm}{scalable}%
%
% bars having their own syllable, with text associated (new bar spacing algorithm only)
% plus or minus here will trigger some problems
%
\gre@createdim{bar@virgula@standalone@text}{0.2323 cm}{scalable}%
\gre@createdim{bar@virgula@standalone@text@short}{0.19 cm}{scalable}%
\gre@createdim{bar@minimis@standalone@text}{0.2323 cm}{scalable}%
\gre@createdim{bar@minimis@standalone@text@short}{0.19 cm}{scalable}%
\gre@createdim{bar@virgulaparen@standalone@text}{0.2323 cm}{scalable}%
\gre@createdim{bar@virgulaparen@standalone@text@short}{0.19 cm}{scalable}%
\gre@createdim{bar@minima@standalone@text}{0.2323 cm}{scalable}%
\gre@createdim{bar@minima@standalone@text@short}{0.19 cm}{scalable}%
\gre@createdim{bar@minor@standalone@text}{0.2323 cm}{scalable}%
\gre@createdim{bar@dominican@standalone@text}{0.2323 cm}{scalable}%
\gre@createdim{bar@maior@standalone@text}{0.2323 cm}{scalable}%
\gre@createdim{bar@finalis@standalone@text}{0.2323 cm}{scalable}%
\gre@createdim{bar@minimaparen@standalone@text}{0.2323 cm}{scalable}%
\gre@createdim{bar@minimaparen@standalone@text@short}{0.19 cm}{scalable}%
% actual space before divisio finalis, not additional one
\gre@createdim{bar@finalfinalis@standalone@text}{0.29169 cm}{scalable}%
%
% bars having their own syllable, with no text associated (new bar spacing algorithm only)
%
\gre@createdim{bar@virgula@standalone@notext}{0.2 cm}{scalable}%
\gre@createdim{bar@virgula@standalone@notext@short}{0.19 cm}{scalable}%
\gre@createdim{bar@minimis@standalone@notext}{0.2 cm}{scalable}%
\gre@createdim{bar@minimis@standalone@notext@short}{0.19 cm}{scalable}%
\gre@createdim{bar@virgulaparen@standalone@notext}{0.2 cm}{scalable}%
\gre@createdim{bar@virgulaparen@standalone@notext@short}{0.19 cm}{scalable}%
\gre@createdim{bar@minima@standalone@notext}{0.2 cm}{scalable}%
\gre@createdim{bar@minima@standalone@notext@short}{0.19 cm}{scalable}%
\gre@createdim{bar@minor@standalone@notext}{0.2323 cm}{scalable}%
\gre@createdim{bar@dominican@standalone@notext}{0.2323 cm}{scalable}%
\gre@createdim{bar@maior@standalone@notext}{0.2323 cm}{scalable}%
\gre@createdim{bar@finalis@standalone@notext}{0.2323 cm}{scalable}%
\gre@createdim{bar@minimaparen@standalone@notext}{0.2 cm}{scalable}%
\gre@createdim{bar@minimaparen@standalone@notext@short}{0.19 cm}{scalable}%
\gre@createdim{bar@finalfinalis@standalone@notext}{0.29169 cm}{scalable}%
%
% minimal space between letters of different syllable texts for text around bars
% (new bar spacing algorithm only)
\gre@createdim{interwordspacetext@bars}{0.18 cm}{scalable}%
% minimal space between letters of different syllable texts for text around bars,
% euouae context
\gre@createdim{interwordspacetext@bars@euouae}{0.18 cm}{scalable}%
\gre@createdim{interwordspacetext@bars@notext}{0.19 cm}{scalable}%
% minimal space between letters of different syllable texts for text around bars,
% euouae context
\gre@createdim{interwordspacetext@bars@notext@euouae}{0.18 cm}{scalable}%
% rubber length that will be added around bars in new bar spacing algorithm
\gre@createdim{bar@rubber}{0 cm plus 0.025 cm minus 0.025 cm}{scalable}%
% in the case of an alteration after a bar, the alteration will "protrude" left of this value
% think of it as some kind of moraadjustmentbar
\gre@createdim{alterationadjustmentbar}{0.07 cm}{scalable}%
% additional space that will appear around bars that are preceded by a custos and followed by a key.
\gre@createdim{spacearoundclefbars}{0.03645 cm plus 0.00455 cm minus 0.0009 cm}{scalable}%
% space between the text of previous syllable and text associated with a bar (old bar spacing algorithm only)
\gre@createdim{textbartextspace}{0.24611 cm plus 0.13672 cm minus 0.04921 cm}{scalable}%
% minimal space between a note and a bar (old algorithm only)
\gre@createdim{notebarspace}{0.31903 cm plus 0.27345 cm minus 0.02824 cm}{scalable}%
% Maximum offset between a bar and its associated text when the text goes left of the bar (new bar spacing algorithm only)
\gre@createdim{maxbaroffsettextleft}{0.3 cm}{scalable}%
% Same as maxbaroffsettextleft when text goes right of the bar
\gre@createdim{maxbaroffsettextright}{0.15 cm}{scalable}%
% Maximum offset between a no-bar (i.e. something like `text()` in gabc) and its associated text when the text goes left of the no-bar (new bar spacing algorithm only)
\gre@createdim{maxbaroffsettextleft@nobar}{12 cm}{scalable}%
% Same as maxbaroffsettextleft@nobar when text goes right of the no-bar
\gre@createdim{maxbaroffsettextright@nobar}{12 cm}{scalable}%
% Space between the two bars of a divisio finalis
% Maximum offset between a bar and its associated text when the text goes left of the bar and the bar terminates a line (i.e. something line `text(::z)` in gabc) (new bar spacing algorithm only)
\gre@createdim{maxbaroffsettextleft@eol}{0.0 cm}{scalable}%
% Same as maxbaroffsettextleft@eol when text goes right of the bar
\gre@createdim{maxbaroffsettextright@eol}{0 cm}{scalable}%
\gre@createdim{divisiofinalissep}{0.1094 cm}{scalable}%
%
%
% maximal space between two syllables for which we consider a dash is not needed
\gre@createdim{maximumspacewithoutdash}{0 cm}{scalable}%
% an extensible space for the beginning of lines
\gre@createdim{afterclefnospace}{0 cm plus 0.27345 cm minus 0 cm}{scalable}%
% space between the initial and the beginning of the score
\gre@createdim{afterinitialshift}{0.2 cm}{scalable}%
% space before the initial
\gre@createdim{beforeinitialshift}{0.2 cm}{scalable}%
% when bolshifts are enabled, minimum space between beginning of line and first syllable text
\gre@createdim{minimalspaceatlinebeginning}{0.05 cm}{scalable}%
% space to force the initial width to. Ignored when 0.
\gre@createdim{manualinitialwidth}{0 cm}{scalable}%
% minimum width of the initial. Ignored when manualinitialwidth is non-zero.
\gre@createdim{minimalinitialwidth}{0 cm}{scalable}%
% distance to move the initial up by
\gre@createdim{initialraise}{0 cm}{scalable}%
% Space between lines in the annotation
\gre@createdim{annotationseparation}{0.05 cm}{scalable}%
% Amount to raise (positive) or lower (negative) the annotations from the default position
\gre@createdim{annotationraise}{-0.2 cm}{scalable}%
% Space between lines in the commentary
\gre@createdim{commentaryseparation}{0.05 cm}{scalable}%
% Amount to raise (positive) or lower (negative) the commentary from the default position (base line of bottom commentary aligned with top line of staff)
\gre@createdim{commentaryraise}{0.2 cm}{scalable}%
% space at the beginning of the lines if there is no clef
\gre@createdim{noclefspace}{0.1 cm}{scalable}%
% space around a clef change
\gre@createdim{clefchangespace}{0.27345 cm plus 0.14584 cm minus 0.01367 cm}{scalable}%
% When \gre@clivisalignment is 2, this distance is the maximum length of the consonants after vowels for which the clivis will be aligned on its center.
\gre@createdim{clivisalignmentmin}{0.3 cm}{scalable}%
%%%%%%%%%%%%%%%%%%
% vertical spaces
%%%%%%%%%%%%%%%%%%
% the amount to shift down:
% (a) low choral signs that are not lower than the note, regardless of whether
% it's on a line or in a space
% (b) high choral signs and low choral signs that are lower than the note which
% are in a space
\gre@createdim{choralsigndownshift}{0.00911 cm}{scalable}%
% the amount to shift up:
% (a) high choral signs and low choral signs that are lower than the note which
% are on a line
\gre@createdim{choralsignupshift}{0.04556 cm}{scalable}%
% the space for the translation
\gre@createdim{translationheight}{0.5 cm}{scalable}%
%the space above the lines
\gre@createdim{spaceabovelines}{0 cm}{scalable}%
% this counter is the threshold above which we start accounting notes above
% lines for additional space above lines. For instance with a threshold of
% 2 and a staff of 4 lines, notes with a pitch of k and l will not interfere
% with the space above lines
\grechangecount{additionaltopspacethreshold}{2}%
% same, for notes taken into account for alt text vertical position
\grechangecount{additionaltopspacealtthreshold}{0}%
% same, for notes taken into account for nabc vertical position
\grechangecount{additionaltopspacenabcthreshold}{4}%
%the space between the lines and the bottom of the text
\gre@createdim{spacelinestext}{3.48471ex}{fixed}%
%the per-note additional space between lines and the bottom of the text
\gre@createdim{noteadditionalspacelinestext}{0.14413 cm}{scalable}%
% this counter is the number of low notes which will add on the
% noteadditionalspacelinestext. For instance, with a threshold of 2, every
% note below c will add noteadditionalspacelinestext space for each pitch needed
% below c, accounting for the various signs.
\grechangecount{noteadditionalspacelinestextthreshold}{2}%
%the space beneath the text
\gre@createdim{spacebeneathtext}{0 cm}{scalable}%
% height of the text above the note line
\gre@createdim{abovelinestextraise}{-0.1 cm}{scalable}%
% height that is added at the top of the lines if there is text above the lines (it must be bigger than the text for it to be taken into consideration)
\gre@createdim{abovelinestextheight}{0.3 cm}{scalable}%
% an additional shift you can give to the brace above the bars if you don't like it
\gre@createdim{braceshift}{0 cm}{scalable}%
% a shift you can give to the accentus above the curly brace
\gre@createdim{curlybraceaccentusshift}{-0.05 cm}{scalable}%
% the amount to shift the over slur up
\gre@createdim{overslurshift}{0.05000 cm}{scalable}%
% the amount to shift the under slur up
\gre@createdim{underslurshift}{0.01000 cm}{scalable}%
% shift for a horizontal episema over a note in a low position in the space
\gre@createdim{overhepisemalowshift}{0.02287 cm}{scalable}%
% shift for a horizontal episema over a note in a high position in the space
\gre@createdim{overhepisemahighshift}{0.10066 cm}{scalable}%
% shift for a horizontal episema under a note in a low position in the space
\gre@createdim{underhepisemalowshift}{0.02763 cm}{scalable}%
% shift for a horizontal episema under a note in a high position in the space
\gre@createdim{underhepisemahighshift}{0.10981 cm}{scalable}%
% shift for a horizontal episema in the middle of a space
\gre@createdim{hepisemamiddleshift}{0.07206 cm}{scalable}%
% shift for a vertical episema in a low position in the space
\gre@createdim{vepisemalowshift}{-0.01262 cm}{scalable}%
% shift for a vertical episema in a high position in the space
\gre@createdim{vepisemahighshift}{0.06634 cm}{scalable}%
% shift for a punctum mora for a note on a line
\gre@createdim{linepunctummorashift}{-0.06314 cm}{scalable}%
% shift for a punctum mora for a note in a space
\gre@createdim{spacepunctummorashift}{-0.02013 cm}{scalable}%
% shift for a punctum mora for the second note (in a space) of a pes with ambitus one
\gre@createdim{spaceamonepespunctummorashift}{0.00183 cm}{scalable}%
% shift for a punctum mora for the second note in a porrectus, on a line
\gre@createdim{lineporrectuspunctummorashift}{0.04575 cm}{scalable}%
% shift for a punctum mora for the second note in a porrectus, in a space
\gre@createdim{spaceporrectuspunctummorashift}{0.00000 cm}{scalable}%
% shift for a rare sign
\gre@createdim{raresignshift}{0.18302 cm}{scalable}%
% up-shift for a bracket
\gre@createdim{bracketupshift}{0.03000 cm}{scalable}%
% down-shift for a bracket
\gre@createdim{bracketdownshift}{0.04000 cm}{scalable}%
%
%%%%%%%%%%
%% Line spacings
%%%%%%%%%%
\gre@createdim{parskip}{1pt plus 1pt}{scalable}%
\gre@createdim{lineskip}{0pt plus 1pt}{scalable}%
\gre@createdim{baselineskip}{55pt plus 5pt minus 5pt}{scalable}%
\gre@createdim{lineskiplimit}{0pt}{scalable}%