\input fetdefs
\def\musixtwentyfonts{
        \font\normaltextfont=cmr10 %\textfont is a primitive
        \font\smalltextfont=cmr8
        \font\meterfont=cmbx15
        \font\slurufont=xslu20
        \font\slurdfont=xsld20
        \font\slurhfont=xslz20
        \font\hslurufont=xslhu20
        \font\hslurdfont=xslhd20
        \font\hslurhfont=xslhz20
        \font\musicfnt=musix20
        \font\musicdraw=musixsps
        \font\italicfont=cmti10
        \font\dynfont=dyn10 scaled \magstep2
        \font\musicmathfont=cmsy10
        \fettwentydefs
}


\def\musixsixteenfonts{
        \font\normaltextfont=cmr8 %\textfont is a primitive
        \font\smalltextfont=cmr6
        \font\meterfont=cmbx12
        \font\italicfont=cmti8
        \font\slurufont=xslu16
        \font\slurdfont=xsld16
        \font\slurhfont=xslz20 % sigh
        \font\hslurufont=xslhu16
        \font\hslurdfont=xslhd16
        \font\hslurhfont=xslhz20
        \font\musicfnt=musix16
        \font\dynfont=dyn10 scaled \magstep1
        \font\musicdraw=musixsps
        \font\musicmathfont=cmsy8
        \fetsixteendefs
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% provide interface to musixtex fonts 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \musicdef\breveball{'040}
% \musicdef\longaball{'047}
% \musicdef\quartball{'007}
% \musicdef\halfball{'010}
% \musicdef\wholeball{'011}
\musicdef\halfrest{'074}
\musicdef\wholerest{'075}
\musicdef\breverest{'072}
\musicdef\longarest{'073}

%% hmm
\musicdef\outsidehalfrest{10}
\musicdef\outsidewholerest{11}
% \musicdef\quartrest{62}
% \musicdef\eighthrest{63}
% \musicdef\sixteenthrest{64}
% \musicdef\thirtysecondrest{65}
% \musicdef\sixtyfourthrest{66}
% \musicdef\hundredtwentyeighthrest{67}
\musicdef\sharp{52}
\musicdef\flat{50}
\musicdef\natural{54}
\musicdef\sharpsharp{53}
\musicdef\flatflat{51}

\musicdef\singledot{'00}
\musicdef\doubledot{'01}
\musicdef\tripledot{'02}
\musicdef\mussepline{155}

\musicdef\violinclef{71}
\musicdef\bassclef{73}
\musicdef\altoclef{75}
\musicdef\cviolinclef{72}
\musicdef\cbassclef{74}
\musicdef\caltoclef{76}

\musicdef\deighthflag{45}
\musicdef\dsixteenthflag{46}
\musicdef\dthirtysecondflag{47}
\musicdef\dsixtyfourthflag{48}
\musicdef\dhundredtwentyeighthflag{49}

% pointing up
\musicdef\ueighthflag{40}
\musicdef\usixteenthflag{41}
\musicdef\uthirtysecondflag{42}
\musicdef\usixtyfourthflag{43}
\musicdef\uhundredtwentyeighthflag{44}

\maccentdef\repeatcolon{55}{2/1}
\def\eighthflag{\topalign{\ueighthflag}}
\def\sixteenthflag{\topalign{\usixteenthflag}}
\def\thirtysecondflag{\topalign{\uthirtysecondflag}}
\def\sixtyfourthflag{\topalign{\usixtyfourthflag}}
\def\hundredtwentyeighthflag{\topalign{\uhundredtwentyeighthflag}}

\def\cquartrest{\vertcenter\quartrest}
\def\ceighthrest{\vertcenter\eighthrest}
\def\csixteenthrest{\vertcenter\sixteenthrest}
\def\cthirtysecondrest{\vertcenter\thirtysecondrest}
\def\csixtyfourthrest{\vertcenter\sixtyfourthrest}
\def\chundredtwentyeighthrest{\vertcenter\hundredtwentyeighthrest}

\def\lsingledot{\kern-\notewidth\singledot}
\def\ldoubledot{\kern-\notewidth\doubledot}
\def\ltripledot{\kern-\notewidth\tripledot}

\musicdef\turn{67}
\maccentdef\sforzato{30}{-3/2}
\maccentdef\marcato{20}{-1/1}
\maccentdef\imarcato{21}{1/1}
\maccentdef\staccato{24}{-1/1}
\maccentdef\istaccato{25}{1/1}
\maccentdef\staccatissimo{28}{-5/5}
\maccentdef\istaccatissimo{29}{2/5}
\maccentdef\portato{18}{-6/5}
\maccentdef\iportato{19}{3/5}
\maccentdef\tenuto{26}{-1/1}
\maccentdef\itenuto{27}{1/1}
\maccentdef\fermata{80}{-1/1}
\maccentdef\ifermata{81}{1/1}

\musicdef\spicato{28}
\musicdef\ispicato{29}
\musicdef\upbow{23}
\musicdef\downbow{22}

\def\tr{{\it tr}}

\def\beamuslope#1#2{{\count0=#2\advance\count0 by#1
        \advance\count0 by 122
        \musicfnt\char\count0}}
\def\beamdslope#1#2{{\count0=#2\advance\count0 by#1
        \advance\count0 by 186
        \musicfnt\char\count0}}

