       0        0
  8   ?ˆl–äY>”TÊ:”Ê‚Æ…p©‹Fÿ�þ_z6VnQ�=� ?Þ„eð>ÝÐÂÛ ?÷     ?%% PostScript slurs, ties and crescendos
%   Coded by Stanislav Kneifl
%   RDT added \psRslurskip \iRslur \tRslur \psRtieskip \tRtie \psLtieskip \tLtie 2019/06/17
%   RDT added \iRtieu \iRtied 2020/09/07
%   RDT modified /DC to produce thicker hairpins   2022/12/29

\ifx\undefined\startpiece\errmessage{Input musixtex.tex before musixps.tex}\fi
\ifx\undefined\liftcresc\else\endinput\fi

\immediate\write16{MusiXPS PostScript slurs, ties and crescendos 0.94 (07.09.2020)}%

\catcode`\@=11


%%%% remove the next line if you include this file into a format (see endnotes!).

\special{header=psslurs.pro}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\font\mxsk=mxsk

% you can change these values if you want...
% Offsets are in \internotes measured vertically from the center and
%   horizontally from the left edge of the notehead.
% see the doc at the end for (short) explanation

\def\psslurraise{1.6}      % vertical offset of the slur beginnings/endings
\def\psbslurraise{2}       % vert. offset for slurs on beams

\def\psLslurskip{-0.2}     % horiz. offset of slurs shifted more to the left
\def\psRslurskip{4}        % horiz. offset of slurs shifted more to the right
\def\pslslurskip{0.4}      % horiz. offset of slurs shifted to the left
\def\psislurskip{1.4}      % horiz. offset of the slur beginnings
\def\pstslurskip{1.2}      % horiz. offset of the slur endings
\def\psrslurskip{2.8}      % horiz. offset of slurs shifted to the right

\def\psfslurhgt{0.7}       % height coeficient of the 'f'lat slurs
\def\psslurhgt{1}          % height coeficient of normal slurs
\def\pshslurhgt{1.6}       % height coeficient of 'h'igh slurs
\def\psHslurhgt{2.2}       % height coeficient of 'H'igh slurs
\def\psHHslurhgt{2.8}      % height coeficient of 'HH'igh slurs
\def\psslurmaxhgt{40}      % maximal height of the slur
                           %  (before multiplication by \...slurhgt !!)

\def\psslurangul{0.17}     % angularity of normal, flat and high slurs
\def\psHslurangul{0.15}    % angularity of High slurs
\def\psHHslurangul{0.13}   % angularity of HHigh slurs

\def\pstieraise{1.3}       % vertical offset of the ties
\def\psitieskip{2.6}       % horiz. offset of the tie beginnings
\def\psttieskip{0.3}       % horiz. offset of the tie endings
\def\psltieskip{-0.2}      % horiz. offset of ties shifted to the left
\def\psrtieskip{3}         % horiz. offset of ties shifted to the right
\def\psLtieskip{-0.4}      % horiz. offset of ties shifted more to the left
\def\psRtieskip{4}         % horiz. offset of ties shifted more to the right

\def\pstiehgt{0.7}         % height coeficient of the ties
\def\pstiemaxhgt{30}       % maximal height if the ties
\def\pstieflathgt{20}      % maximal height if the ties between staff lines
\def\pstieangul{0.14}      % angularity of the ties

%%%%

\def\d@nh{-5}              % default altitude of the crescendos in \internote
\def\setcrescheight{\def@it\d@nh}

\def\sl@space{-3pt}			% neg. space before continued slurs, ties and crescs.
\def\h@tielim{15pt}			% limit for drawing half continued ties

\def\nohalfties{\def\h@tielim{\z@}}
\def\halfties{\def\h@tielim{15pt}}
\newif\ifslopebrkslurs
\slopebrkslursfalse

\def\dotted{\def\d@sh{1}}  % the '1' is important!
\def\solid{\def\d@sh{0}}
\def\Dotted{\def\D@sh{1}}
\def\Solid{\def\D@sh{0}}
\Solid\solid

\def\nosluradjust{\gdef\s@adj{0}}
\def\sluradjust{\gdef\s@adj{1}}
\def\Nosluradjust{\gdef\S@adj{0}\gdef\s@adj{0}}
\def\Sluradjust{\gdef\S@adj{1}\gdef\s@adj{1}}
\Sluradjust

\def\notieadjust{\gdef\t@adj{0}}
\def\tieadjust{\gdef\t@adj{1}}
\def\Notieadjust{\gdef\T@adj{0}\gdef\t@adj{0}}
\def\Tieadjust{\gdef\T@adj{1}\gdef\t@adj{1}}
\Notieadjust

\newif\ifdangermessages\dangermessagestrue

\def\@clr#1{\let#1\empty}
\def\def@it#1#2{\def#1{#2}}
\def\slurtext{\def@it\s@tx}
\let\s@tx\empty
\def\lr@lap#1{\rlap{\hss#1}}

% how many slurs will be stored into the TeX's registers?
% => how many slurs can go across the page break?
% determines also the needed amount of the following registers.