Thanks to Hermann for the question, and to Dirk for jumping in before I got
to it. Since Hermann said "automatic" I had assumed the request was for a
PMX option. Obviously that's not there now. For manual shifting, it was only
after seeing Dirk's reply that I remembered about the PMX XS command:
1 1 4 4 4 4 0 0
1 3 20 0
t
.\
g04 /
L2
g44 g g g | r2 g4 g | r2 g4 g | g g g g /
g44 g g g | r2 g4 g | XS2 r2 g4 g | g g g g /
=
This will take some trial and error to get the position right.
Whether I go to the effort of programming to make this an automatic option
depends on what the normal practice is. Dirk implied that it's not to center
the rest as Hermann requested. I wasn't 100% sure, but I just checked
Gardner Read, and on the very first page of the chapter on rests he clearly
confirmed what Dirk had implied. So I'm not inclined to change PMX to enable
such automatic centering.
--Don
>-Original Message-
>From: TeX-Music [mailto:tex-music-boun...@tug.org] On Behalf Of Dirk Laurie
>Sent: Thursday, July 19, 2012 12:59 AM
>To: Werner Icking Music Archive
>Subject: Re: [Tex-music] Postion of r2 and r0
>
>2012/7/18 Hermann Hinsch :
>> A question to the experts:
>>
>> For PMX or M-Tx: if the rest r2 or r0 is at the start of a bar would it
be possible to
>> adjust the rest automatically in the middle of the free space?
>>
>
>This is the sort of thing where M-Tx just blindly follows PMX.
>
>The only automatic control you have in PMX is on full-bar rests,
>where centering is default and rpo turns it off.
>
>You can't do it with X since that is extra whitespace, not offset.
>
>You could put in a PMX feature request, say r2c etc would center
>any rest. r2c: would also toggle stickyness of centering.
>
>At present there are all sorts of ad-hoc offsets. A single
>general-purpose offset would also do the job, e.g. O0.5n2
>could offset the next symbol by 0.5 of a half-note.
>
>As an immediate solution, you could redefine the TeX \hpause
>command to offset the rest by half the remaining distance. This
>should not be too hard to the real TeXperts since \pnotes causes
>the required registers to be set, but it's out of my league.
>
>That would center all r2 rests though.
>
>Or you could just live with the fact that current musical typography
>practice (not only PMX) does not center rests except whole-bar.
>---
>TeX-music@tug.org mailing list
>If you want to unsubscribe or look at the archives, go to
>http://tug.org/mailman/listinfo/tex-music
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to
http://tug.org/mailman/listinfo/tex-music