> Christian Mondrup [SMTP:[EMAIL PROTECTED]] wrote
>Since your score keeps meter 4/2 a way of doing what you want could be:
>
>Meter: 4/2
>Style: Singer
>Bars/Line: 4
>
>%%\let\pause\pauseSAV
>%%\let\pause\PAuse
>
>g2 g g g | rp | g2 g g g
This is going to be a little round-about, but please stay with me.
In one of my recent posts in this thread I referred to the macro \pausc .
Apparently no one tried using it, because if they did they would have
discovered it was undefined. I just realized that it's in my working
version of pmx.tex but not in 2.00. It is defined as
\def\pausc{\raise6\internote\hbox{\musixchar61}}
and used as follows by my working version of PMX to generate a centered
pause symbol:
\def\atnextbar{\znotes\centerbar{\pausc}\en}
The reasons for this are explained in my posting of 14 June 1999 which I
will reproduce at the bottom of this post. Basically, it's to get the rest
properly centered, which MusiXTeX on it's own can't seem to get quite right.
So to return to the main thread, Christian's proposal will work OK with the
current PMX and MusiXTeX, giving a slightly off-center \PAuse symbol. If
Daniel has still not addressed the centering problem by the time I make my
next release of PMX, I will include my alternate scheme for centered pauses.
Then re-defining \pause within PMX will no longer have any effect on
centered pause symbols generated by "rp".
--Don Simons
=========================
Post from Jan 14:
"For a long time now I've had a problem trying to get whole-bar rests
properly centered. Using the construction
\def\atnextbar{\znotes\centerbar{\pause}\en}%
always seems to put them somewhat right of center. In my tests I have fixed
the problem by temporarily redefining \pause as
\def\pause{\hbox{\raise6\internote\hbox{\musixchar61}}}
but I still don't understand everything that's going on here.
I think the following lines are from musixtex.tex are relevant:
%\def\centerpause{\let\adv@box\hbox \centerbar\pause}
%\def\centerhpause{\let\adv@box\hbox \centerbar\hpause}
\def\centerpause{\centerbar\pause}
\def\centerhpause{\centerbar\hpause}
...
\def\pause{\adv@box{\raise\si@\internote\hbox{\musixchar61}}}
...
\def\adv@box#1{\hbox\@to\noteskip{#1\hss}\advance\locx@skip\noteskip}
It looks like \adv@box puts the text at the *left* edge of a \noteskip-wide
box (and then does some other accounting). So if centerbar really centers
its argument (in this case, the box) between the barlines, why isn't the
character offset to the left of center?
The next question is why the alternate definitions in musixtex.tex are
commented out. They seem to do about what I did in my re-definition of
\pause, and that does put the rest where I want it to be."