%GregorioTeX file.
%Copyright (C) 2007-2010 Elie Roux <elie.roux@telecom-bretagne.eu>
%
%This program 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.
%
%This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.

% this file contains definitions of spaces

% the additional width of the additional lines (compared to the width of the glyph they're associated with)
\greadditionallineswidth = 16000sp
% null space
\grezerowidthspace=0pt plus 0pt minus 0pt
% space between glyphs in the same element
\greinterglyphspace = 7600 sp plus 400 sp minus 400 sp
% space between an alteration (flat or natural) and the next glyph
\grealterationspace = 8500 sp plus 1400 sp minus 500 sp
% space between a clef and a flat (for clefs with flat)
\greclefflatspace = 6000 sp plus 700 sp minus 700 sp
% space before a choral sign
\grebeforechoralsignspace = 5000 sp plus 700 sp minus 700 sp
% negative space, difference between the normal space between two notes and the space between a note and a flat
\grebeforealterationspace = -36000 sp plus 1200 sp minus 1200 sp
% space between elements
\greinterelementspace = 7600 sp plus 200 sp minus 400 sp
% larger space between elements
\grelargerspace = 12000 sp plus 2000 sp minus 1000 sp
% space between elements which has the size of a note
\greglyphspace = 24000 sp plus 2000 sp minus 2000 sp
% minimum space between two notes of different syllables
\greintersyllablespace= 28000 sp plus 35000 sp minus 0 sp
% space before custo
\grespacebeforecusto = 20000 sp plus 35000 sp minus 7000 sp
% space before punctum mora and augmentum duplex
\grespacebeforesigns= 6000 sp plus 500 sp minus 500 sp
% space after punctum mora and augmentum duplex
\grespaceaftersigns= 9000 sp plus 900 sp minus 900 sp
% space after a clef at the beginning of a line
\grespaceafterlineclef = 30000 sp plus 16000 sp minus 1500 sp
% space after at the end of a word when the last written symbol is a note and the first is a note
\greinterwordspacenotes = 15000 sp plus 21000 sp minus 5000 sp
% space after at the end of a word when the last written symbol is a note and the first is text
\greinterwordspacenotestext = 15000 sp plus 21000 sp minus 5000 sp
% space after at the end of a word when the last written symbol is text and the first is a note
\greinterwordspacetextnotes = 15000 sp plus 21000 sp minus 5000 sp
% space after at the end of a word when the last written symbol is text and the first is text
\greinterwordspacetext = 15000 sp plus 21000 sp minus 5000 sp
% space between notes of a bivirga or trivirga
\grebitrivirspace = 7600 sp plus 200 sp minus 600 sp
% space between notes of a bistropha or tristrophae
\grebitristrospace = 7600 sp plus 200 sp minus 600 sp
% space between two punctum inclinatum
\grepunctuminclinatumshift= -4300 sp plus 100 sp minus 100 sp
% space before puncta inclinata
\grebeforepunctainclinatashift= 5800 sp plus 800 sp minus 500 sp
% space between a punctum inclinatum and a punctum inclinatum deminutus
\grepunctuminclinatumanddebilisshift= -2500 sp plus 100 sp minus 100 sp
% space between two punctum inclinatum deminutus
\grepunctuminclinatumdebilisshift= -800 sp plus 100 sp minus 100 sp
% space between puncta inclinata, larger ambitus (range=3rd)
\grepunctuminclinatumbigshift= 8300 sp plus 100 sp minus 100 sp
% space between puncta inclinata, larger ambitus (range=4th -or more?-)
\grepunctuminclinatummaxshift= 19600 sp plus 100 sp minus 100 sp
% space for the bars (inside syllables)
\grespacearoundsmallbar = 25000 sp plus 10000 sp minus 1000 sp
%then divisio minor
\grespacearoundminor = 20000 sp plus 10000 sp minus 6000 sp
%divisio major
\grespacearoundmaior = 20000 sp plus 10000 sp minus 6000 sp
%divisio finalis
\grespacearoundfinalis = 20000 sp plus 10000 sp minus 6000 sp
%a special space for finalis, for when it is the last glyph
\grespacebeforefinalfinalis= 0 sp plus 0 sp minus 0 sp
% the space that will appear around bars that are preceded by a custo and followed by a key.
% well... actually it's the difference between the normal space around bars and the space described previously.
\grespacearoundclefbars= 4000 sp plus 500 sp minus 100 sp
% space between the text and the text of the bar
\gretextbartextspace = 25000 sp plus 15000 sp minus 5400 sp
% minimal space between a note and a bar
\grenotebarspace = 25000 sp plus 30000 sp minus 3100 sp
% maximal space between two syllables for which we consider a dash is not needed
\gremaximumspacewithoutdash = 2200 sp
% an extensible space for the beginning of lines
\greafterclefnospace = 0 pt plus 30000 sp minus 0 pt
% width of the additional lines, used only for the custos (maybe should depend on the width of the custo...)
% 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.
\greadditionallineswidth = 10000 sp
% space between the initial and the beginning of the score
\greafterinitialshift=0.6 em plus 0em minus 0em
% space before the initial and the beginning of the score
\greminimalspaceatlinebeginning=1mm
% this space is the one between the bottom of the first annotation line and the top
% of the second annotation line (above the initial)
\greaboveinitialseparation = 0.5mm
% space at the beginning of the lines if there is no clef
\grenoclefspace = 1mm

%%%%%%%%%%%%%%%%%
% vertical spaces
%%%%%%%%%%%%%%%%%

% first, we have two spaces for the chironomic signs
\greabovesignsspace = 8mm
\grebelowsignsspace = 0mm
% the shift for the low choral sign and the high choral signs on totally free interlines
\grelowchoralsignshift = 1000sp
% the shift for the high choral sign
\grehighchoralsignshift = -5000sp
% the space for the translation
\gretranslationheight = 0.5cm
%the space above the lines
\grespaceabovelines = 50000 sp plus 40000 sp minus 10000 sp
%the space between the lines and the bottom of the text
\grespacelinestext = 66500 sp plus 0 sp minus 0 sp
%the space beneath the text
\global\grespacebeneathtext = 0 sp plus 0 sp minus 0 sp
% height of the text above the note line
\global\greabovelinestextraise=-0.365mm%
% 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)
\global\greabovelinestextheight=3mm%
% an additional shift you can give to the brace above the bars if you don't like it
\global\grebraceshift = 0pt
% a shift you can give to the accentus above the curly brace
\global\grecurlybraceaccentusshift = -0.5mm
