Re: [Tex-music] More than one style in a piece.

2011-10-16 Thread Dirk Laurie
2011/10/16 Sebastian Canagaratna s-canagara...@onu.edu:
 Hi: I am trying to code O for a close Walk (SATB voices and organ)  in mtx.
 The first sixteen measures are for soprano and organ, and so requires
 only  three stave.  Thereafter the style changes and there are 4 staves to a
 system,
 SATB and organ. Can this be coded in mtx, since there is only one preamble
 to
  declare the style? Does one have to go to pmx or musixtex to code this/

This can in principle be done with PMX by using the movement change instruction.
It's not in M-Tx.

Dirk

---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] More than one style in a piece.

2011-10-16 Thread Don Simons
Tomorrow I'll see if I can figure out how to do this.

--Don Simons

-Original Message-
From: tex-music-boun...@tug.org [mailto:tex-music-boun...@tug.org] On Behalf Of
Dirk Laurie
Sent: Saturday, October 15, 2011 11:05 PM
To: Werner Icking Music Archive
Subject: Re: [Tex-music] More than one style in a piece.

2011/10/16 Sebastian Canagaratna s-canagara...@onu.edu:
 Hi: I am trying to code O for a close Walk (SATB voices and organ)  in mtx.
 The first sixteen measures are for soprano and organ, and so requires
 only  three stave.  Thereafter the style changes and there are 4 staves to a
 system,
 SATB and organ. Can this be coded in mtx, since there is only one preamble
 to
  declare the style? Does one have to go to pmx or musixtex to code this/

This can in principle be done with PMX by using the movement change 
instruction.
It's not in M-Tx.

Dirk

---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to
http://tug.org/mailman/listinfo/tex-music



---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] More than one style in a piece.

2011-10-16 Thread Sebastian Canagaratna
On Sun, Oct 16, 2011 at 2:11 AM, Don Simons dsim...@roadrunner.com wrote:

 Tomorrow I'll see if I can figure out how to do this.

 --Don Simons

 -Original Message-
 From: tex-music-boun...@tug.org [mailto:tex-music-boun...@tug.org] On
 Behalf Of
 Dirk Laurie
 Sent: Saturday, October 15, 2011 11:05 PM
 To: Werner Icking Music Archive
 Subject: Re: [Tex-music] More than one style in a piece.
 
 2011/10/16 Sebastian Canagaratna s-canagara...@onu.edu:
  Hi: I am trying to code O for a close Walk (SATB voices and organ)  in
 mtx.
  The first sixteen measures are for soprano and organ, and so requires
  only  three stave.  Thereafter the style changes and there are 4 staves
 to a
  system,
  SATB and organ. Can this be coded in mtx, since there is only one
 preamble
  to
   declare the style? Does one have to go to pmx or musixtex to code this/
 
 This can in principle be done with PMX by using the movement change
 instruction.
 It's not in M-Tx.
 
 Dirk
 
 ---
 TeX-music@tug.org mailing list
 If you want to unsubscribe or look at the archives, go to
 http://tug.org/mailman/listinfo/tex-music



 ---
 TeX-music@tug.org mailing list
 If you want to unsubscribe or look at the archives, go to
 http://tug.org/mailman/listinfo/tex-music

---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] More than one style in a piece.

2011-10-16 Thread Don Simons
So far I haven't been able to do this. I'm going to include some detail here in 
hopes that Dirk will have a look at it and maybe point the way to a solution.

Before going into the details, note that there's always the ugly possibility of 
creating two completely separate scores for the two different sections with 
different numbers of staves, then merging them at the PDF stage.

But to do it all in M-Tx/PMX: I think you want to start with style Singer 
piano (since you said 3 staves; organ gives 3 staves itself). This has 3 
staves and 2 instruments. Then to change to (say) style SATB4 piano you'd 
need 6 staves and 5 instruments. Unfortunately PMX cannot increase the number 
of instruments beyond the original number. But that's not a show stopper 
because you can start with a dummy, throwaway page having the maximum number of 
instruments.

So to get started let's try to set up an mtx file that starts with SATB4 
piano (for the dummy page) and then switches to Singer piano . Here's the 
mtx I came up with:

=
Style: SATB4 piano
Meter: 4/4
Systems: 2
Pages: 2

% Need a dummy page up front, since PMX cannot increase 
% number of voices beyond original value.

e4+ d c d | e e e2 |
L: Th-is is a dum-my page
c4+ b g b | c c c2 |
L: Th-is is a dum-my page
g4+ g e g | g g g2 |
L: Th-is is a dum-my page
c4+ g c- g | c c c2 |
L: Th-is is a dum-my page
c4 b c g | c c c2 |
c2 c | c c |

% Style Singer piano
% Need to put inline PMX commands BEFORE last line of 
%  first input group of new section!

e4 d c d | e e e2 |
L: Mar-y had a lit-tle lamb
e2 e | e e |
%% L2P2Mn215btt
c2 c | c c |


This produces pmx file


---
\def\mtxversion{0.60d}
\def\mtxdate{11 October 2008}
\input mtx
---
6 -5 2 1 1 1 1 4 4 4 4  0.0 0 2 2 20 0





606000
./
\\mtxGroup{1}{5}{2}\
\\mtxTenorClef{3}\
% Paragraph 3 line 9 bar 1
\\\mtxSetLyrics{11}{Th-is is a dum-my page}\
\\\mtxSetLyrics{21}{Th-is is a dum-my page}\
\\\mtxSetLyrics{31}{Th-is is a dum-my page}\
\\\mtxSetLyrics{41}{Th-is is a dum-my page}\
\\\mtxAssignLyrics{5}{11}\
\\\mtxAssignLyrics{4}{21}\
\\\mtxAssignLyrics{3}{31}\
\\\mtxAssignLyrics{2}{41}\
c23 c2 | /
c44 b4 c4 g4 | /
c44 g4 c4- g4 | /
g45 g4 e4 g4 | /
c45 b4 g4 b4 | /
e45 d4 c4 d4 | /

%Bar 2
c2 c2 | /
c4 c4 c2 | /
c4 c4 c2 | /
g4 g4 g2 | /
c4 c4 c2 | /
e4 e4 e2 | /

% Paragraph 5 line 24 bar 3
\\\mtxSetLyrics{11}{Mar-y had a lit-tle lamb}\
 L2P2Mn215btt
\\\mtxAssignLyrics{5}{11}\
rp  /
rp  /
rp  /
c2 c2 | /
e2 e2 | /
e4 d4 c4 d4 | /

%Bar 4
rp  /
rp  /
rp  /
c2 c2 | /
e2 e2 | /
e4 e4 e2 | /


This does succeed in changing to the desired, reduced number of instruments in 
the PMX file after the first system. But M-tx has added in some unwanted rp's 
and has assigned the lyrics to instrument #5, not #3 as desired. It seems that 
M-Tx is insisting on maintaining 5 instruments and filling in rp's for the ones 
it doesn't find in the input file. I don't think there's any way to fix this 
using inline PMX. Short of manually editing the pmx file, to fix things we'd 
like to accomplish the following from within the M-Tx input file: (1) eliminate 
the rp's; (2) change the last \\\mtxAssignLyrics{5}{11}\ to 
\\\mtxAssignLyrics{3}{11}\; and (3) cancel out the effect of \\mtxTenorClef{3}\ 
. Without that capability, there might even be advanced in-line TeX that would 
do (2) and (3), but I think (1) would require some sort of post-processing of 
the pmx file.

--Don Simons


-Original Message-
From: tex-music-boun...@tug.org [mailto:tex-music-boun...@tug.org] On Behalf Of
Dirk Laurie
Sent: Saturday, October 15, 2011 11:05 PM
To: Werner Icking Music Archive
Subject: Re: [Tex-music] More than one style in a piece.

2011/10/16 Sebastian Canagaratna s-canagara...@onu.edu:
 Hi: I am trying to code O for a close Walk (SATB voices and organ)  in mtx.
 The first sixteen measures are for soprano and organ, and so requires
 only  three stave.  Thereafter the style changes and there are 4 staves to a
 system,
 SATB and organ. Can this be coded in mtx, since there is only one preamble
 to
  declare the style? Does one have to go to pmx or musixtex to code this/

This can in principle be done with PMX by using the movement change 
instruction.
It's not in M-Tx.

Dirk

---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to
http://tug.org/mailman/listinfo/tex-music



---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music