That's exactly how I intended it to work. If you want more than one of these
substitutions with this particular approach, you have several possibilities:

1. Do not reset the definition of \pause. This will only work if you never
want a real \pause. The inline TeX, which you only enter once,  would be
simply (untested)

\\gdef\pause{\PAuse}\  or \\global\let\pause\PAuse\

2. Re-enter the original inline TeX before every instance of the
substitution. This would allow you to have a real \pause in other places.

3. Define a shorthand macro to use once before each instance (untested):
==================
1 1 4 4 4 4 0 0
1 1 20 0

 t
 .\
 
\\let\pauset\pause\def\PAforpa{\gdef\pause{\PAuse\global\let\pause\pauset}}\
 c84 d e f g a b c /
\\\PAforpa\ 
rp /
 c1 c b b a a g g f f e e d d c c /
==================

--Don

>-----Original Message-----
>From: [email protected] [mailto:[email protected]] On
Behalf Of
>Hermann Hinsch
>Sent: Sunday, May 06, 2012 7:24 AM
>To: Werner Icking Music Archive
>Subject: Re: [Tex-music] Centered rest
>
>Am Samstag, 5. Mai 2012, 17:09:54 schrieb Don Simons:
>> ==============
>> 1 1 4 4 4 4 0 0
>> 1 1 20 0
>>
>> t
>> .\
>> \\\let\pauset\pause\def\pause{\PAuse\global\let\pause\pauset}\
>> c84 d e f g a b c |
>>   rp |
>>   c1 c b b a a g g f f e e d d c c /
>> ==============
>>
>> I found out by trial and error that you need the "\global" or else the
>> last redefinition of \pause doesn't work right. Given that, it's a bit
>> of a mystery to me why you don't need \global in the original
>> definition and redefinition.
>>
>> --Don Simons
>
>I tried this and got a redefined r9-symbol for only 1 bar in the case of my
score. If you
>take more bars in your example you will find the same result.
>
>Hermann Hinsch
>
>>
>> >-----Original Message-----
>> >From: [email protected] [mailto:[email protected]] On
>>
>> Behalf Of
>>
>> >Hermann Hinsch
>> >Sent: Saturday, May 05, 2012 7:34 AM
>> >To: Werner Icking Music Archive
>> >Subject: [Tex-music] Centered rest
>> >
>> >Using "rp" gives the possibility of a centered symbol of a whole rest
r0.
>>
>> Would it be
>>
>> >possible to redefine rp in order to get a centered r9-symbol?
>> >
>> >Hermann Hinsch
>> >--
>> >
>> >-------------------------------
>> >[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


-------------------------------
[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