>|The following MusiXTeX file works OK as is, but if line
>|15 is replaced by line 16, it fails. The only thing
>|that changes is the argument of \centerbar within the
>|\atnextbar command, from \liftpause0 to \pause. I would
>|very much appreciate having one of the TeXperts explain
>|why it works in one case but not the other.
I haven't tried to work out why \liftpause0 would make it
work, but I've found that both versions work if
\setstaffs11%
\setclef10%
\def\nbinstruments{1}%
% Bar count 2
\stoppiece\startpiece
are replaced by
\stoppiece%
\setstaffs11%
\setclef10%
\def\nbinstruments{1}%
% Bar count 2
\startpiece
Presumably, the \atnextbar processing at \stoppiece depends
on the current staff/clef/nbinstruments parameters.
Bob
>|=====================================
>|\input musixtex
>|\normalmusicsize%
>|\hsize=524pt
>|\vsize740pt
>|\def\nbinstruments{2}
>|\setstaffs12
>|\setclef1{60}
>|\setstaffs21
>|\setclef20
>|\generalsignature{ 0}%
>|\generalmeter{\meterfrac{4}{4}}%
>|\startmuflex\startpiece\addspace\afterruleskip%
>|% Bar count 1
>|\notes\wh{''C}|&\wh c\en%
>|\def\atnextbar{\znotes|\centerbar{\liftpause0}&%
>|%\def\atnextbar{\znotes|\centerbar{\pause}&%
>|% If above line is uncommented and one above that commented, fails.
>|\en}%
>|\setstaffs11%
>|\setclef10%
>|\def\nbinstruments{1}%
>|% Bar count 2
>|\stoppiece\startpiece
>|\notes\wh c\en%
>|\Endpiece
>|\vfill\eject\endmuflex
>|\bye
>|=====================================================
-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to
https://tug.org/mailman/listinfo/tex-music