"Bernhard Lang" <[EMAIL PROTECTED]> schrieb:
> > If you are typesetting guitar-music with two voices you often need
> > in the lower voice a half note and the upper voice has for example
> > a figure consisting of eighth notes. The first note of both voices 
> > have the same pitch. Usually the half note has a stem down and an 
> > upper stem is integrated in the beam of the upper voice. In MusiXTeX 
> > it's easy to get:
> >
> > \zhl a\ibu0j0\hb0a\qb0{hj}\tqh0h
> >
> > If you say in PMX
> >
> > a23 //
> > a83 a+ c a /
> >
> > the quarter-head of the eighth covers up the head of the half. How can 
> > I get in PMX, what's so easy in MusiXTeX? Is it difficult to integrate 
> > in PMX, Mr. Simons?
> 
> You could try an inline TeX solution like
> 
> \def\hB\{\let\oldqb\qb\let\qb\qB}
> \def\qB{\hb\let\qb\oldqb}
> 
> Putting now \hB\ in front of the second line changes \qb into \qB which 
> will expand into \qh and restore \qb to its original value afterwards, 
> thereby expiring so to say. I didn't try this code, some \global s may 
> have to be inserted to circumvent local assignments due to grouping, 
> but in general it should work.
> 

I tried your code, but it didn't work. But some change works fine:

\def\hB{\let\oldqb\qb\let\qb\hb} 
\def\qB{\let\qb\oldqb} 

I use it in this way:


a23 //
\hB\ a83 \qB\ a+ c e /

Many thanks, Bernhard

regards
Gerd




_______________________________________________
TeX-music mailing list
[email protected]
http://icking-music-archive.org/mailman/listinfo/tex-music

Reply via email to