RE: [TeX-music] Changing number of staves per instrument in midstream
I have Olivier's method working. New page wasn't a problem but needed a slightly different re-definition. (I can usually figure out what to re-define by looking at the original TeX output.) I'm not worrying about the score, just the Piano part. But overall it's pretty touchy, because it's very sensitive to what is in the "phantom" voice. In Olivier's example he had only blank rests, which lead to \sk's, which MusiXTeX will tolerate after a "|" without complaining that you referred to too high a staff number. But anything else after the "|" leads to a stern rebuke. Among other things this means I can't use the vertical equalization mechanism "Ae" in the Piano part, because it uses a strut going upward from the *top* voice. In the Piano part, PMX puts in a command to do this from the upper staff because it thinks there are two staves in the part. --Don > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Andre > Van Ryckeghem > Sent: Saturday, February 17, 2007 8:55 PM > To: Typesetting music with TeX > Subject: Re: [TeX-music] Changing number of staves per instrument in > midstream > > > This is a much simpler and nicer and clever solution, i never had > found this > myself. > About the new page, perhaps extend the redefinition of alaligne to > contpiece? > > I tried this after changing tne npages from 1 to 2: > > \\let\contpiecesav\contpiece\let\myalaligne\alaligne\ > \\\def\contpiece{\let\contpiece\contpiecesav\setclefs30\setstaffs3 > 1\interstaff{8}\contpiecesav}\ > \\\def\alaligne{\let\alaligne\myalaligne\stoppiece\setclefs30\sets > taffs31\contpiece}\ > > > Andre > ----- Original Message - > From: "Don Simons" <[EMAIL PROTECTED]> > To: "Typesetting music with TeX" > Sent: Sunday, February 18, 2007 1:03 AM > Subject: RE: [TeX-music] Changing number of staves per instrument in > midstream > > > > Thanks, Olivier, this seems to work. Andre, do you see anything > wrong with > > it? Haven't started trying to apply it yet but there might be > issues with > > page breaks. > > > > --Don Simons > > > >> -Original Message- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] Behalf Of Olivier > >> Vogel > >> Sent: Saturday, February 17, 2007 1:39 PM > >> To: Typesetting music with TeX > >> Subject: [TeX-music] Changing number of staves per instrument in > >> midstream > >> > >> > >> Don, is what you want as simple as the following or do I misunterstand > >> your problem? > >> > >> Olivier > >> > >> 8<- > >> % nv,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig, > >> 7 -6 1 1 2 1 1 1 4 4 4 4 0 0 > >> % npages,nsyst,musicsize,fracindent > >>1 3 16 0.08 > >> 6 > >> 5 > >> 4 > >> 3 > >> 2 > >> 1 > >> btb > >> ./ > >> AI.0 > >> > >> \\interstaff{8}\ > >> rp / > >> rp / > >> rp / > >> rp / > >> rp / > >> rp / > >> rp / > >> > >> %% > >> \\\def\alaligne{\stoppiece\setclefs30\setstaffs31\contpiece}\ > >> %3\\\def\alaligne{\stoppiece\setclefs10\setstaffs11\contpiece}\ > >> rp / > >> rp / > >> rp / > >> rbp / > >> rp / > >> rp / > >> rp / > >> > >> %% > >> \\\def\alaligne{\stoppiece\setclefs3{60}\setstaffs32\contpiece}\ > >> %3\\\def\alaligne{\stoppiece\setclefs1{60}\setstaffs12\contpiece}\ > >> rp / > >> rp / > >> rp / > >> rbp / > >> rp / > >> rp / > >> rp / > >> > >> 8<- > >> > >> ___ > >> TeX-music mailing list > >> TeX-music@icking-music-archive.org > >> http://icking-music-archive.org/mailman/listinfo/tex-music > >> > > > > > > ___ > > TeX-music mailing list > > TeX-music@icking-music-archive.org > > http://icking-music-archive.org/mailman/listinfo/tex-music > > > > ___ > TeX-music mailing list > TeX-music@icking-music-archive.org > http://icking-music-archive.org/mailman/listinfo/tex-music > ___ TeX-music mailing list TeX-music@icking-music-archive.org http://icking-music-archive.org/mailman/listinfo/tex-music
Re: [TeX-music] Changing number of staves per instrument in midstream
This is a much simpler and nicer and clever solution, i never had found this myself. About the new page, perhaps extend the redefinition of alaligne to contpiece? I tried this after changing tne npages from 1 to 2: \\let\contpiecesav\contpiece\let\myalaligne\alaligne\ \\\def\contpiece{\let\contpiece\contpiecesav\setclefs30\setstaffs31\interstaff{8}\contpiecesav}\ \\\def\alaligne{\let\alaligne\myalaligne\stoppiece\setclefs30\setstaffs31\contpiece}\ Andre - Original Message - From: "Don Simons" <[EMAIL PROTECTED]> To: "Typesetting music with TeX" Sent: Sunday, February 18, 2007 1:03 AM Subject: RE: [TeX-music] Changing number of staves per instrument in midstream Thanks, Olivier, this seems to work. Andre, do you see anything wrong with it? Haven't started trying to apply it yet but there might be issues with page breaks. --Don Simons -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Olivier Vogel Sent: Saturday, February 17, 2007 1:39 PM To: Typesetting music with TeX Subject: [TeX-music] Changing number of staves per instrument in midstream Don, is what you want as simple as the following or do I misunterstand your problem? Olivier 8<- % nv,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig, 7 -6 1 1 2 1 1 1 4 4 4 4 0 0 % npages,nsyst,musicsize,fracindent 1 3 16 0.08 6 5 4 3 2 1 btb ./ AI.0 \\interstaff{8}\ rp / rp / rp / rp / rp / rp / rp / %% \\\def\alaligne{\stoppiece\setclefs30\setstaffs31\contpiece}\ %3\\\def\alaligne{\stoppiece\setclefs10\setstaffs11\contpiece}\ rp / rp / rp / rbp / rp / rp / rp / %% \\\def\alaligne{\stoppiece\setclefs3{60}\setstaffs32\contpiece}\ %3\\\def\alaligne{\stoppiece\setclefs1{60}\setstaffs12\contpiece}\ rp / rp / rp / rbp / rp / rp / rp / 8<- ___ TeX-music mailing list TeX-music@icking-music-archive.org http://icking-music-archive.org/mailman/listinfo/tex-music ___ TeX-music mailing list TeX-music@icking-music-archive.org http://icking-music-archive.org/mailman/listinfo/tex-music ___ TeX-music mailing list TeX-music@icking-music-archive.org http://icking-music-archive.org/mailman/listinfo/tex-music
RE: [TeX-music] Changing number of staves per instrument in midstream
Thanks, Olivier, this seems to work. Andre, do you see anything wrong with it? Haven't started trying to apply it yet but there might be issues with page breaks. --Don Simons > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Olivier > Vogel > Sent: Saturday, February 17, 2007 1:39 PM > To: Typesetting music with TeX > Subject: [TeX-music] Changing number of staves per instrument in > midstream > > > Don, is what you want as simple as the following or do I misunterstand > your problem? > > Olivier > > 8<- > % nv,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig, > 7 -6 1 1 2 1 1 1 4 4 4 4 0 0 > % npages,nsyst,musicsize,fracindent >1 3 16 0.08 > 6 > 5 > 4 > 3 > 2 > 1 > btb > ./ > AI.0 > > \\interstaff{8}\ > rp / > rp / > rp / > rp / > rp / > rp / > rp / > > %% > \\\def\alaligne{\stoppiece\setclefs30\setstaffs31\contpiece}\ > %3\\\def\alaligne{\stoppiece\setclefs10\setstaffs11\contpiece}\ > rp / > rp / > rp / > rbp / > rp / > rp / > rp / > > %% > \\\def\alaligne{\stoppiece\setclefs3{60}\setstaffs32\contpiece}\ > %3\\\def\alaligne{\stoppiece\setclefs1{60}\setstaffs12\contpiece}\ > rp / > rp / > rp / > rbp / > rp / > rp / > rp / > > 8<- > > ___ > TeX-music mailing list > TeX-music@icking-music-archive.org > http://icking-music-archive.org/mailman/listinfo/tex-music > ___ TeX-music mailing list TeX-music@icking-music-archive.org http://icking-music-archive.org/mailman/listinfo/tex-music
Re: [TeX-music] Changing number of staves per instrument in midstream
This puzzle is more pleasant than making sudokus I tried a solution, i hope i have understand what you meant. As it is not possible to shrink the number of staffs in an instrument, i tried to put the staffs above each other. using \\interstaff{0}\ or Ai0.0 or AI0.0 The distance between the instrument can be made by ie: \setinterinstrument1{10\Interligne} Problems: putting the staffs above each other needs the same clef. But then the clefs appears at the end of the previous line. This can be voided by using a new movement (L4M) in the example. But when de system starts on a new page it become more difficult. I have to use something as: \\let\ejectsav\eject\ \\\def\eject{\let\eject\ejectsav\def\contpiece{\ \\\put here the needed commands--- \\\startpiece\addspace\afterruleskip\let\contpiece\holdcont}\eject}\ I have used this before, but i have not tested it now. I put here an example and also the scr2prt with the schrinked staffs ==perhaps there are unwanted line breaks== % nv,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig, 7 -6 1 1 2 1 1 1 4 4 4 4 0 0 % npages,nsyst,musicsize,fracindent 2 4 16 0.08 6 5 4 3 2 1 btb ./ AI.0 %if a movement and a new line, more tricks are needed: %\\let\ejectsav\eject\ %\\\def\eject{\let\eject\ejectsav\def\contpiece{\ %\\\put here the needed commands--- %\\\startpiece\addspace\afterruleskip\let\contpiece\holdcont}\eject}\ \\interstaff{10}\ rp / rp / rp / rp / rp / rp / rp / \\\def\atnextline{\setinterinstrument1{10\Interligne}\setinterinstrument2{10\Interligne}\ \\\setinterinstrument3{10\Interligne}\setinterinstrument4{10\Interligne}\ \\\setinterinstrument5{10\Interligne}\ \\\interstaff{0}}\ % rp / rp / Ct rp / rbp / rp / rp / rp / % rp / rp / rp / rbp / rp / rp / rp / % Ai.0 %% L4M %!L4M \\\setinterinstrument1{0\Interligne}\setinterinstrument2{0\Interligne}\ \\\setinterinstrument3{0\Interligne}\setinterinstrument4{0\Interligne}\ \\\setinterinstrument5{0\Interligne}\ \\\interstaff{10}\ rp / rp / Cb rp / rp / rp / rp / rp / % === and the test3.pmx: = % nv,noinst,mtrnuml,mtrdenl,mtrnump,mtrdenp,xmtrnum0,isig, 2 1 4 4 4 4 0.00 0 % npages,nsyst,musicsize,fracindent 1 4 20 0.05 bt ./ Ti 4 AI.0 \\interstaff{10}\ rp / rp / \\\def\atnextline{\setinterinstrument1{10\Interligne}\setinterinstrument2{10\Interligne}\ \\\setinterinstrument3{10\Interligne}\setinterinstrument4{10\Interligne}\ \\\setinterinstrument5{10\Interligne}\ \\\interstaff{0}}\ % Ct rp / rbp / % rp / rbp / % Ai.0 L4M \\\setinterinstrument1{0\Interligne}\setinterinstrument2{0\Interligne}\ \\\setinterinstrument3{0\Interligne}\setinterinstrument4{0\Interligne}\ \\\setinterinstrument5{0\Interligne}\ \\\interstaff{10}\ Cb rp / rp / % = Andre - Original Message - From: "Don Simons" <[EMAIL PROTECTED]> To: "Typesetting music with TeX" Sent: Saturday, February 17, 2007 5:30 PM Subject: [TeX-music] Changing number of staves per instrument in midstream I've come up on this puzzle. Using PMX, I've made a score that has 6 instruments, each with one staff except the third (up from the bottom) which has two. So seven staves total. When I run scor2prt I get six parts, and the third one (piano) has two staves as expected. In midstream, I'd like to change the number of staves in the third instrument from 2 to 1, then later back to 2. Obviously if making the piano part from scratch I could start with two single-staff instruments and manually insert the curly bracket, then reduce to one instrument and later increase back to two. But I haven't been able to figure out how to do this in the PMX file for the score, and get it to pass thru scor2prt like I want. BTW it's only in the printed separate part for the third instrument that I really want the change in number of staves; if necessary I could live with no such change in the printed score, and maybe an extra brank line. Any ideas? --Don Simons ___ TeX-music mailing list TeX-music@icking-music-archive.org http://icking-music-archive.org/mailman/listinfo/tex-music ___ TeX-music mailing list TeX-music@icking-music-archive.org http://icking-music-archive.org/mailman/listinfo/tex-music