Dieter-- 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 ================================== 3 2 4 4 4 4 0 -1 1 2 16 0.07 Piano Voice ttt ./ AbepI0.9 r0 / r0 / r0 / r0 / X24 r0o / r0 / L2Mn12t r0 / r0 / r0 / r0 / r0 / r0 / =============================== > -----Original Message----- > From: TeX-Music [mailto:tex-music- > [email protected]] On Behalf Of Dieter > Sent: Wednesday, July 03, 2019 10:39 AM > To: Werner Icking Music Archive <[email protected]> > Subject: [Tex-music] Varying number of instruments > > I stumbled across a problem, which was already treated by Dirk Baack and > Don Simons, but the solution is unclear to me. > > I have a configuration with voice and piano. And I want sometime a piano > solo and some other time a vocal solo. > > This works fine for the piano (L2P2Mn11tt). Pls. se attachment. But when I > want to isolate the voice with (L2P2Mn12t), then > > I get an error message: !staff number (2) out of specified range (1)! > > ======================================================== > > % nv, -noinst, nostaves per instrument > 3 2 > % mtrnuml,mtrdenl,mtrnmp,mtrdnp,xmtrnum0,isig > 4 4 4 4 0 -1 > % > % npages,nsyst,musicsize,fracindent > 2 2 16 0.07 > Piano > Voice > ttt > ./ > AbepI0.9 > %It80ivlvl > %\\input musixper\ > %%w277m > %%h390m > r0 / > r0 / > r0 / > r0 / > r0 / > r0 / > L2P2Mn11tt > r0 / > r0 / > r0 / > r0 / > r0 / > r0 / > > ======================================== > > -- > ____________________________________ > Dr. Dieter Glötzel > Im Rosengarten 27 > 64367 Mühltal > Tel.: 06151 / 360 82 72 ------------------------------- [email protected] mailing list If you want to unsubscribe or look at the archives, go to https://tug.org/mailman/listinfo/tex-music

