> From: [EMAIL PROTECTED]
> Date: Sat, 27 Nov 1999 16:54:33 +0100

> Would somebody please be kind enough to give me an example of the
> syntax of the \Ibu semi-automatic beam macros? Suppose I wanted to
> beam together four quavers of pitches 'ab^cd, or a dotted quaver ^'c
> and semiquaver 'd, using these macros, what would the command look
> like?

I don't use this "semi-automatic" beams, because some of them seem to
be in conflict with the pitch notation which uses "'" for entering
the next upper octave or "`" for entering the next lower octave or
"!" for resetting the octave. The reason is that some of their parameters
are used more than once during the macro expansion. So a tranposition may
be executed more than once.

I had the same problem with macros I defined e.g. for ending a slur and
a beam:

 \def\ttqh#1#2{\tslur{#1}{#2}\tbu{#1}\qb{#1}{#2}}
     
If I now call e.g. \ttqh0{'c} then "'c" is executed twice as #2

So I redefined the macro using a private variable \nick@i:

 \def\ttqh#1#2{\nick@i\transpose\tslur{#1}{#2}\transpose\nick@i\tbu{#1}\qb{#1}{#2}}

saving the transpose register before the first usage of a pitch and restoring
it afterwards.

Another possibility is grouping; but that does not work if those values set
inside the group are not set globally which are needed outsided. Nevertheless
the example above would work (not tested):

 \def\ttqh#1#2{{\tslur{#1}{#2}}\tbu{#1}\qb{#1}{#2}}
 
Hope this hilft -- Werner

Reply via email to