>|In pmx.tex, evidently \centerbar is used for centered
>|pauses (with \pausc), while \CenterBar is used in
>|multi-bar rests. I don't see any reason to change
>|anything in pmx.tex unless it gets broken by modified
>|definitions in musixtex.tex. At the moment it appears
>|that changing \centerpause will not affect PMX but
>|changing \centerbar may. So if Bob or someone proposes
>|to change \centerbar, then please provide the proposed
>|modified definition, so I can exercise PMX and see if
>|anything gets broken.
Don: Here's the proposed new definition:
\def\centerbar#1{\y@ii\lin@pos \advance\y@ii-\lastbarpos \advance\y@ii\cut@v
\kern-\h@lf\y@ii\lrlap{\let\adv@box\hbox #1}\kern\h@lf\y@ii}%
^^^^^^^^^^^^^^^^^^
This gives good results with \centerbar\pause and so on.
A search for \centerbar in pmx.tex failed so I concluded
PMX doesn't use \centerbar. But I guess *pmxab* outputs
\centerbar.
If PMX uses \centerbar\pausc, it would be possible as
a temporary workaround to re-define \pausc (and similar
commands such as \PAusc) *in musixtex.tex*. Eventually,
pmxab and pmx.tex could be simplified.
Bob
>|> -----Original Message-----
>|> From: TeX-Music [mailto:[email protected]] On Behalf Of Bob
>|> Tennent
>|> Sent: Monday, May 18, 2015 9:04 AM
>|> To: [email protected]
>|> Subject: Re: [Tex-music] bar-centered rests
>|>
>|>
>|> >|So we now have three possible re-definitions of >|\centerpause. I'm
>|> guessing that all of them compensate for >|the fact that \centerbar
>|does
>|> *not* center its argument, >|which would be a more fundamental problem
>|> than \centerpause >|and would affect, for example, all the multi-bar
>|rests in
>|> >|Werner's rests.tex.
>|> >|
>|> >|I'll experiment.
>|>
>|>
>|> As I suspected, the problem is in the definition of \centerbar. If one
>|inserts
>|> \let\adv@box\hbox before #1, then \centerpause, \centerhpause,
>|> \centerPAuse, etc. are all correctly centered. Jean-Pierre's definitions
>|aren't
>|> necessary but won't affect the operation of a revised \centerbar. All
>|the
>|> multi-bar rests in Werner's rests.tex are improved by this one change.
>|>
>|> As for pmx.tex, Don says
>|>
>|> >|After reminding myself how PMX deals with centered >|pauses,
>|I guess I
>|> should qualify my earlier invitation >|to fix (any) perceived issues in
>|> MusiXTeX. To be clear, >|I'm pretty sure what Bob proposes below won't
>|> affect PMX >|at all because I don't believe PMX uses \centerpause.
>|> >|Instead, what PMX uses is for example >| >|...
>|> >|\xbar
>|> >|\pnotes{5.66}\en%
>|> >|\def\atnextbar{\znotes\centerbar{\pausc}\en}%
>|> >|\xbar
>|> >|...
>|> >|
>|> >|where \pausc is defined in pmx.tex as
>|> >|\def\pausc{\lrlap{\pause\off{\qn@width}}}%
>|>
>|> but in fact pmx.tex doesn't use \centerbar at all; rather it uses a new
>|> command \Centerbar defined in pmx.tex with the comment
>|>
>|> % CenterBar and mbrest modified 2/01 to account for simick mods in
>|> % musixtex 1.01
>|>
>|> so the offsets in \pausc and other commands defined in pmx.tex (which
>|> would be unnecessary and incorrect with a revised \centerbar) won't be
>|> affected by correcting \centerbar. Don will have to decide whether to
>|> simplify pmx.tex.
>|>
>|> Bob
>|> -------------------------------
>|> [email protected] mailing list
>|> If you want to unsubscribe or look at the archives, go to
>|> http://tug.org/mailman/listinfo/tex-music
>|
>|-------------------------------
>|[email protected] mailing list
>|If you want to unsubscribe or look at the archives, go to
>|http://tug.org/mailman/listinfo/tex-music
>|
-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to
http://tug.org/mailman/listinfo/tex-music