> From: "Simons, Don" <[EMAIL PROTECTED]>
> Date: Sun, 15 Oct 2000 10:09:15 -0700
>
> This looks pretty deep, and I don't have a quick solution. It's either a
> problem with MusiXTeX, or (more likely) with something PMX does at the
> movement break involving the macros \newnoi or \newmovement (in pmx.tex).
> It would be great if some of the TeXperts weighed in here. Is there a way
> to modify either of those macros to solve the problem?
As Rainer Dunker tells in a later mail the problem is that PMX changes
score attributes before issuing \stoppiece. \newnoi changes number
of instruments in a very complicated way just after the last bar, but
before \stoppiece. Next \setstaffs is used, too, before \stoppiece.
All this is incompatible with proper MusiXTeX usage and works well
only sometimes. In the specific case and maybe in some others, too
following circumvention may help. A real solution has to be done
in pmxab.exe to generate the code where it has to be generated.
Here's my dirty circumvention which is based on TeX's excellent
pattern matching to change \newnoi[...]\newmovement so that
"\newnoi[...]" is executed just before \startpiece within
\newmovement :-(
5 4 3 4 3 4 0 -1
1 2 20 .0
btttt
./
Arbd
\\sepbarrules\
\\let\startpiecePMX\startpiece\
\\def\newnoi#1#2\newmovement#3#4{\
\\def\startpiece{\def\nbinstruments{#1}#2\
\\let\startpiece\startpiecePMX\startpiece}\newmovement{#3}{#4}}\
a83 g f4 e /
c85 b a4 g /
e84 g c4 c- /
c84 b a4 g /
a84 g f4 e /
L2M+7n234tt
m2222
a24 a /
a24 a /
-- Werner