Or you could ask or use PMX. There's no explicit way to center a rest, but
it will always automagically center full-bar rests (rp). Beyond that,
there's good news and bad news. The good news is that--also
automagically--PMX deals with cases where a whole or half-rest is raised
above the staff and needs a ledger line to tell you which is which. This
required redefining some MusiXTeX macros and defining some new ones (in
pmx.tex). The (slightly) bad news is that because I took a shortcut and
always drew the ledger line whether above the staff or not, at least in
gsview the line sometimes doesn't line up exactly with the staff line.
However (good news again) when printed out it will align and be invisible if
within the staff.

If interested, try this code, which contrasts the simple approach Bob
suggested with PMX's:

=======================================================
1 1 4 4 4 4 0 0
1 3 20 0

t
.\
rb0 /
\\\def\atnextbar{\znotes\centerbar{\pause}\en}\
rb0 /
\\\def\atnextbar{\znotes\centerbar{\raise\Interligne\pause}\en}\
rb0 /
\\\def\atnextbar{\znotes\centerbar{\raise2\Interligne\pause}\en}\
rb0 /
\\\def\atnextbar{\znotes\centerbar{\raise3\Interligne\pause}\en}\
rp | rp+2 | rp+4 | rp+6 /
m3434
rp | rp+2 | rp+4 | rd2 | rd2+2 | rd2+4 /
m3838
rp | rp+2 | rp+4 | rd4 | rd4+2 | rd4+8 /
=========================================================

--Don Simons

>-----Original Message-----
>From: TeX-Music [mailto:[email protected]] On Behalf Of Jean-Pierre
>Coulon
>Sent: Saturday, June 07, 2014 4:58 AM
>To: Werner Icking Music Archive
>Subject: Re: [Tex-music] How can I lift-and-center a rest?
>
>On Sat, 7 Jun 2014, Bob Tennent wrote:
>
>> \def\atnextbar{\znotes\centerbar{\raise2\Interligne\pause}\en}%
>
>thanks!
>
>Jean-Pierre Coulon
>
>-------------------------------
>[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

Reply via email to