%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) [originale 16000]
\greadditionallineswidth = 16000sp
% null space
\grezerowidthspace=0pt plus 0pt minus 0pt
% space between glyphs in the same element [originale 7600+400-400]. spazio relativo alle note intra-sillaba
\greinterglyphspace = 7600 sp plus 400 sp minus 400 sp
% space between an alteration (flat or natural) and the next glyph [originale 8500+1400-500]
\grealterationspace = 8500 sp plus 1400 sp minus 500 sp
% space between a clef and a flat (for clefs with flat) [originale 6000+700-700]
\greclefflatspace = 6000 sp plus 700 sp minus 700 sp
% space before a choral sign [originale 5000+700-700]
\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 [originale -36000+1200-1200]
\grebeforealterationspace = -36000 sp plus 1200 sp minus 1200 sp
% space between elements [originale 7600+200-400]
\greinterelementspace = 7600 sp plus 200 sp minus 400 sp
% larger space between elements [originale 12000+2000-1000]
\grelargerspace = 12000 sp plus 2000 sp minus 1000 sp
% space between elements which has the size of a note [originale 24000+2000-2000]
\greglyphspace = 24000 sp plus 2000 sp minus 2000 sp
% minimum space between two notes of different syllables [originale 28000+35000-0]
\greintersyllablespace= 20000 sp plus 30000 sp minus 0 sp 
% space before custo [originale 20000+35000-7000]
\grespacebeforecusto = 20000 sp plus 35000 sp minus 7000 sp
% space before punctum mora and augmentum duplex [originale 6000+500-500]
\grespacebeforesigns= 6000 sp plus 500 sp minus 500 sp
% space after punctum mora and augmentum duplex [originale 9000+900-900]
\grespaceaftersigns= 9000 sp plus 900 sp minus 900 sp
% space after a clef at the beginning of a line [originale 30000+16000-1500]
\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 [originale 32000+9600-6000]
\greinterwordspacenotes = 30000 sp plus 6000 sp minus 6000 sp
% space after at the end of a word when the last written symbol is a note and the first is text [originale 30000+30000-8000]
\greinterwordspacenotestext = 20000 sp plus 8000 sp minus 8000 sp
% space after at the end of a word when the last written symbol is text and the first is a note [originale 30000+30000-8000]
\greinterwordspacetextnotes = 20000 sp plus 8000 sp minus 8000 sp
% space after at the end of a word when the last written symbol is text and the first is text [originale: 25000+45000-8000]
\greinterwordspacetext = 22000 sp plus 8000 sp minus 8000 sp
% space between notes of a bivirga or trivirga [originale 7600+200-600]
\grebitrivirspace = 7600 sp plus 200 sp minus 600 sp
% space between notes of a bistropha or tristrophae [originale 7600+200-600]
\grebitristrospace = 7600 sp plus 200 sp minus 600 sp
% space between two punctum inclinatum [originale -4300+100-100]
\grepunctuminclinatumshift= -4300 sp plus 100 sp minus 100 sp
% space before puncta inclinata [originale 5800+800-500]
\grebeforepunctainclinatashift= 5800 sp plus 800 sp minus 500 sp
% space between a punctum inclinatum and a punctum inclinatum deminutus [originale -2500+100-100]
\grepunctuminclinatumanddebilisshift= -2500 sp plus 100 sp minus 100 sp
% space between two punctum inclinatum deminutus [originale -800+100-100]
\grepunctuminclinatumdebilisshift= -800 sp plus 100 sp minus 100 sp
% space between puncta inclinata, larger ambitus (range=3rd) [originale 8300+100-100]
\grepunctuminclinatumbigshift= 8300 sp plus 100 sp minus 100 sp
% space between puncta inclinata, larger ambitus (range=4th -or more?-) [originale 19600+100-100]
\grepunctuminclinatummaxshift= 19600 sp plus 100 sp minus 100 sp
% space for the bars (inside syllables)
% first for virgula and divisio minima [originale per tutti 20000+25000-6000]
\grespacearoundsmallbar = 14000 sp plus 6000 sp minus 6000 sp
%then divisio minor
\grespacearoundminor = 14000 sp plus 6000 sp minus 6000 sp
%divisio major
\grespacearoundmaior = 14000 sp plus 6000 sp minus 6000 sp
%divisio finalis [originale 20000+20000-6000]
\grespacearoundfinalis = 14000 sp plus 6000 sp minus 6000 sp
%a special space for finalis, for when it is the last glyph [originale: 32000+8000-30000]
\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. [originale 4000+500-100]
\grespacearoundclefbars= 4000 sp plus 500 sp minus 100 sp
% space between the text and the text of the bar [originale 27000+15000-5400]
\gretextbartextspace = 20000 sp plus 5400 sp minus 5400 sp
% minimal space between a note and a bar [originale 35000+30000-3100]
\grenotebarspace = 28000 sp plus 3100 sp minus 3100 sp
% maximal space between two syllables for which we consider a dash is not needed [originale 2200]
\gremaximumspacewithoutdash = 0 sp
% an extensible space for the beginning of lines [originale 0+30000-0]
\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. [originale 10000]
\greadditionallineswidth = 10000 sp
% space between the initial and the beginning of the score [originale 0.6em +0 em-0 em]
\greafterinitialshift=0.6 em plus 0em minus 0em
% space before the initial and the beginning of the score [originale 1mm]
\greminimalspaceatlinebeginning=1mm
% this space is the one between the bottom of the first anotation line and the top
% of the second anotation line (above the initial) [originale 0.5mm]
\greaboveinitialseparation = 0.5mm
% space at the beginning of the lines if there is no clef [originale 1mm]
\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
