Lukasz Makowski OP wrote:
> how can i provide shorter bar rules in gregorian staff? In our tradition
> we use 3 lengths of bar rules which are relative to lengths of
> pauses. And whats more, these bars should start on different staff
> lines.

I'd suggest to replace MusiXTeX's built-in bar rule writing routine by a
non-standard one. The example below demonstrates this; the parameters
\raisebarrule and \barruleheight are to be used to deliberately set the
vertical offset and height of subsequent bar rules in units of
\Internotes.

However, this quick-and-dirty solution does not work with multi-staff
instruments - but for Gregorianic chant, this should be no problem. :-)

Regards,

Rainer

8<------------------------------------
\input musixtex

\newcount\raisebarrule
\newcount\barruleheight

\makeatletter
\def\writ@rule#1{%
  \n@loop
    \raise\altitude\hbox{%
      \raise\raisebarrule\Internote\rlap{%
        \vrule\@depth\hlthick\@width#1\@height\barruleheight\Internote}}%
  \repeat
  \addspace#1}
\makeatother

\startpiece
 \raisebarrule1\barruleheight6\bar
 \raisebarrule2\barruleheight4\bar
 \raisebarrule3\barruleheight2\bar
 \raisebarrule0\barruleheight8% for the final bar rule
\endpiece\bye

Reply via email to