Dieter--

 

I managed to narrow this down to the full bar rests right before the change 
from 2 instruments to 1 . Then déjà vu did strike. I searched emails for 
\atnextbar and found that you had uncovered exactly the same problem in July. 
It was very tricky to nail down and there’s still no perfect solution, but 
there are work-arounds. Here’s what I wrote in a 7/3/19 posting, and it mostly 
still applies:

 

“You're not doing anything wrong. You unearthed a very subtle problem that has 
never come up before. It depends on several specific unrelated things happening 
in exactly the right sequence. (Reminds me of the kinds of PMX bugs Werner used 
to find).  It is basically caused by the whole-bar rests in the last bar before 
the movement break. The sequence of events leading to the problem is this: (1) 
whole bar rests by default are centered; (2) the centering is accomplished by 
\atnextbar, which isn't executed until a barline is encountered; (3) at the 
movement break, PMX enters the change in number of instruments BEFORE entering 
the barline. It turns out MusiXTeX is somewhat flexible here in that it would 
be OK if no instrument had 2 voices. But it's the bar-centered rest in the 2nd 
voice of the piano part that kills things...if you replace it with an ordinary 
note, it goes through just fine even if you leave the full bar rest in the 2nd 
instrument/3rd staff.

 

“If you really want a centered full-bar rest in voice 2 of the piano part right 
before the decrease in number of instruments, I figured out a rather ugly 
work-around, but at least there's no inline TeX. I had to RTFM myself to 
refresh my memory, and I (re)discovered there's a PMX option 'o' on a full-bar 
rest that will suppress centering. But then you need to manually center it with 
an 'X' command. So just below is a file that works.

 

“I'm very hesitant to try to change PMX to account for this, because whatever I 
did could mess up existing scores in unforeseen ways due to the complex 
interactions within and between movement breaks and bar centered rests.”

 

--Don

 

From: TeX-Music [mailto:[email protected]] On 
Behalf Of Dieter
Sent: Tuesday, January 07, 2020 4:11 AM
To: [email protected]
Subject: [Tex-music] PMX: problem with changing the number of instruments

 

I am a great fan of this feature in PMX and I am using it extensively over many 
pages and systems.

But now I am stuck. I am working on the violin voice of the  Ibert Flute 
Concerto.

 

It compiles until the last few lines:

% wieder einstimmig
L22Mi.0cn12t
m4444 c85 za+ zf+ r8 r8 c85 za+ zf+ r4 c85 za+ zf+ r8 | /
%m3434 rm1 | /
%m4444 f46x3 a- c- f8- r8  f46x3 a- c- f8- r8 | f46x3 a- c- f8- r8 f46x3 a- c- 
f8- r8 | /
%f84 zc+ za+ r8 f84 zc+ za+ r8 f84 zc+ za+ r8 f84 zc+ za+ r8 | r4 f84 zc+ za+ 
r8 f84 zc+ za+ r8 f84 zc+ za+ r8 | /
%f44 zc+ r2db //
%a05 | /
% a8 a r4 r2 

=======================

BUt when it hits the "L22"-Statement, then  I am getting the error message:



Somehow I have a déjà-vue feeling, but do not remember what I did to solve the 
problem.

If I counted properly , the "L22" is the 10th statement of this kind. Of course 
I will not bother you with the huge code,

but if somebody had similar experiences, I would be interested.

Regards, Dieter

-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
https://tug.org/mailman/listinfo/tex-music

Reply via email to