On Sat, 27 Jun 1998, Jan Doumen wrote:

> 1) How can I prevent the repeat bars to be automatically extended over all
>    instruments? I'd like to have the thick bar without the two dots for the
>    lower three lines

I have also needed "special" repeat behaviour.  I thought that my solution
was too messy to post, but since M Taupin has said it cannot be done,
maybe this will be better than nothing:)

First, I define the repeat characters:

%%%
\def\keychar#1{{\musickeyfont\char#1}}%         from later versions of
MusiX
%
%       first a ``normal'' left-right repeat symbol
%
\def\lrrpt{\hbox{\keychar{126}\kern1pt%                 two dots
        \vrule height20pt width 3.2pt\kern1.8pt%        heavy rule
        \vrule height20pt width 3.2pt\kern1pt%          heavy rule, and
        \keychar{126}}}                                 two dots
%
%       then a version without the dots
%       use \phantom{dots} to keep same width as \lrrpt
%       
\def\lrrptx{\hbox{\phantom{\keychar{126}\kern1pt}%
        \vrule height20pt width 3.2pt\kern1.8pt%
        \vrule height20pt width 3.2pt\kern1pt%
        \phantom{\keychar{126}}}}
%
%       and an extra tall version for F clef
%
\def\lrrptt{\hbox{\phantom{\keychar{126}\kern1pt}%
        \vrule height36pt width 3.2pt\kern1.8pt%
        \vrule height36pt width 3.2pt\kern1pt%
        \phantom{\keychar{126}}}}
%%%

and then, immediately after the \xbarre, add

%%%
\addspace{-1.7\afterruleskip}%
\znotes\lrrptx&\lrrptx&\lrrptt&\lrrpt\enotes
\addspace{1.7\afterruleskip}%
%%%


This gave me successful results with your example, but will probably not
align properly in the general case without changing some of the constants.

:laird pruiksma



Reply via email to