Re: [TeX-Music] M-Tx, number of staves

2010-06-22 Thread Hermann Hinsch
Am Freitag, 18. Juni 2010 13:04:49 schrieb Luigi Cataldi:
 Hermann Hinsch ha scritto:
  Luigi, I applied the above commands on your modified mtx source but I
  always got an empty
 
  grancinia.pmx. I used abcpp from WIMA.
 
  Hermann

 I can't say why. But there isn't a real difference from the use of a sed
 script.

It's now ok, caused by a copy-paste error


 Even if I am very interesting to find a whole compatibility of MTX with
 PMX, in your case I think that the simplest way is to use only PMX and
 Musixlyr. Here is my attempt to do so.

I tried this and as I have several other scores of this type to typeset I will 
use your advice if 
otherwise I might get into problems. Nevertheless I could successfully finish 
the Grancini-score by 
applying a number of corrections on the pmx file. If you are interesting you 
may find the 
preliminary result at www..rzuser.uni-heidelberg.de/~e19/QUICS.html. My whole 
task is part of a 
joint project of Gunther Morche and me. Gunther Morche is an expert of the 
music of the Italian 
seicento and posses a large number of hand written sources. Although we send 
most of prepared scores 
to WIMA we decided to have an own homepage in order to concentrate all texts at 
one place. The final 
homepage will be instead of e19 at nh0.

There is one more question: How can I use the clef G8 with PMX?

Hermann
 bye

 Luigi


 
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music

Re: [TeX-Music] M-Tx, number of staves

2010-06-18 Thread Luigi Cataldi

Hermann Hinsch ha scritto:


Luigi, I applied the above commands on your modified mtx source but I 
always got an empty


grancinia.pmx. I used abcpp from WIMA.

Hermann

I can't say why. But there isn't a real difference from the use of a sed 
script.


Even if I am very interesting to find a whole compatibility of MTX with 
PMX, in your case I think that the simplest way is to use only PMX and 
Musixlyr. Here is my attempt to do so.


bye

Luigi


---
\input musixtex
\input pmx
\input musixlyr

\setlyrics{v1A}{%
Au-di-te po-pu-li, au-di-te, au-di-te %
quid lo-qua-tur Do-mi-nus %
quid glo-ri-a-ri in ma-li-ti-a, %
quid glo-ri-a-ri in ma-li-ti-a %
qui po-ten-tes in i-qui-ta-}

\setlyrics{v1AA}{%
tem.}

\setlyrics{v1B}{%
o stul-ti, o stul-ti a-li-quan-do %
sa-pi-te a-man-tes in-tel-li-gi-te %
ad-huc mo-cum, et pae-ca-tor-rum e-rit, %
ut um-bra trans-i-bit, vi-te ve-stra %
pes-i-bit ut sti-pu-la %
sic-ca quam pro-ii-cit %
ven-tus, et si-cut fa- %
vil-la quam tur-}

\setlyrics{v2}{%
Quis in-sur-git ad-ver-sum nos %
quis im-pro-pe-rat vi-as no-stras  %
quis in-sur-git ad ver-sum nos, %
quis im-pro-pe-rat vi-as no-stras }

\setlyrics{v3}{%
Quis in-sur-git ad-ver-sum nos %
quis im-pro-pe-rat vi-as no-stras,  %
sur-git ad-ver-sum nos %
quis im-pro-pe-rat vi-as no-stras }

\let\BM\beginmel
\let\EM\endmel
---
4 4 4 4 0 6 0 0
4 13 20 0.12
v4
v3
v2
v1
bttt
./
Ab
Ae
It100

% 1
%%
\\grouptop{1}{4}\groupbottom{1}{1}\
r0b /
r0b /
r0b /
r0b /

% 2
%%
L2P2Mn214btr+
%%
\\\grouptop{1}{2}\groupbottom{1}{1}\
c03 s /
\assignlyricshere{v1A}\lyrraise{2}{b 3\internote}\ r8 ga85 ga8 ga8 ea8d 
da1 ca8 ga8+ /


% 3
c03 s /
e45 ca8 ga8+ e4 c4 /

% 4
c23 f2- /
r4 ga85d ea1 (S \BM\ c2 /

% 5
f22s g2 /
\EM\ c45 )S d4- d4d c8 /

% 6
c23 c2 /
c25 r8 ea8 fa8 ga8 /

% 7
g43 c4- f2 7 x386 /
da85 da8 ea8 ea8 e4d d8 /

% 8
e23 # d2 6# /
e25 r8 ba8 ca8 da8 /

% 9
e43 c4s e2 4 x143 /
ga84s ga8 aa8 aa8 a4d g8 /

% 10
a02 /
a44 aa8 ba8 c4 c4 /

% 11
f43 e4 d2 7 x146 Rb /
r8 ca8 da8 ea8 f2 /

% 12
%%
L6P3Mn41234btttcr-i.0
%%
\\\grouptop{1}{4}\groupbottom{1}{1}\
m6/2/0/3
c03d f0-d /
r2 \assignlyricshere{v2}\lyrraise{2}{b 0\internote}\ c25 g2 a2 b2 c2 /
rp /
\assignlyricshere{v1AA}\ e05d r0 r2b /

% 13
g02d 4 x123 c0d /
c05 b2 e0d /
r2 \assignlyricshere{v3}\ g25 d2 e2 f2s g2 /
r0b r9 /

% 14
d03d 4 x123 g0-d Rb /
r2 a24 a2 b2d c4 d2 /
g05 f2s g0d /
r0b r9 /

% 15
%%
\\\grouptop{1}{3}\groupbottom{1}{1}\
%%
L7Mn3123bttcr-i.0
a02d 4 x123 d0d /
d05 c2s \BM\ d2d e4 c4 d4 /
r2 e25 e2 f2sd g4 a2 /

% 16
e03d 4 x123 a0-d /
b44 c4 d4 c4 \EM\ b2  a0 r2 /
a05 g2s \BM\ a2d b4 g4 a4 /

% 17
b02d e0d /
r2b r0 r2 g24s g2 /
f45s g4 a4 g4 f2 e2 \EM\ b2  b2 /

% 18
a02 e2 6 g0d /
a24 b2 c2 c0 b2 /
c25 d2 e2 d0 d2 /

% 19
c03d e0d # /
c05d r2 g2s g2 /
e05d r2 b2 b2 /

% 20
a02 e2 6 g0d /
a24d b4 c2 c0 b2 /
c25d d4 e2 d0 d2 /

% 21
c23 e0 6 f2 d0 - /
\BM\ c25d d4 b4 c4 a2 d4 e4 c4 d4 /
\BM\ e25d f4 d4 e4 c2 f4 g4 e4 f4 /

% 22
g23 c0 - a0 f2 s /
b24 e4 f4 d4 e4 c2 d4 e4 f4 e4 /
d25 g4 a4 f4 g4 e2 f4 g4 a4 g4 /

% 23
m3/2/0/0
f23 s g0 /
d45 e4 \EM\ b0  /
f45 e4 \EM\ d0  /

% 24
m2/4/0/6
\wh3\ r2b /
c25 /
e25 /

% 25
%%
L10Mn214btcr-i.0
%%
\\\grouptop{1}{2}\groupbottom{1}{1}\
m2/4/0/0
r2b /
r8 \assignlyricshere{v1B}\lyrraise{2}{b 3\internote}\ ga85 ea8 ea1 ga1 /

% 26
m4/4/0/0
c23 a2 7 x146 /
ca8- ca8 r8 ca1 ca1 c4d b8 /

% 27
g22 d2+ # /
da8d da1 d4 r8 d8 (S \BM\ d4 /

% 28
b22 7 x186 a2 # /
\EM\ d8 )S da8 da8 ca8s ea8d ea1 e4 /

% 29
c23s d2 /
r4 ea8 aa8- \BM\ a4d \EM\ b8  /

% 30
e23 # g2-s /
g4s ba8 ba8 (S \BM\ e2 /

% 31
a22 b2 /
\EM\ e4 )S ea8 ea8 e4d (S \BM\ d8s /

% 32
e23 # d4 # e4 /
\EM\ e4 )S r8 ba8 da8 da1 ca1 b4 /

% 33
a42 e4+ # d4 e4 /
a4 r8 ba1 ca1 da8 da1 ca1 b4 /

% 34
a22 - a2 /
a4 r8 c8 c4d da1 ea1 /

% 35
f02 /
fa8 fa8 r8 a8 f4d fa1 ea1 /

%


___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-16 Thread Hermann Hinsch
Am Sonntag, 13. Juni 2010 11:56:51 schrieb Luigi Cataldi:
 Dear All,

 I've tried some experiments on Herman's example. I've used abcpp as a
 pmx preprocessor (or mtx post-processor if you want) instead of sed or
 similar post-processing scripts. At the and of this letter you can see
 the files 'grancini.mtx' and 'abcpp_pre.txt' (a preamble needed to
 process the pmx code with abcpp). I've compiled in this way:

 prepmx grancini
 abcpp abcpp_pre.txt  grancinia.pmx
 pmxab grancinia
 rm grancinia.mx?
 tex grancinia
 musixflx grancinia
 tex grancinia
 dvips -pp 2-5 grancinia
 ps2pdf grancinia.ps


Luigi, I applied the above commands on your modified mtx source but I always 
got an empty
grancinia.pmx. I used abcpp from WIMA.

Hermann
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music

Re: [TeX-Music] M-Tx, number of staves

2010-06-13 Thread Luigi Cataldi

Dear All,

I've tried some experiments on Herman's example. I've used abcpp as a 
pmx preprocessor (or mtx post-processor if you want) instead of sed or 
similar post-processing scripts. At the and of this letter you can see 
the files 'grancini.mtx' and 'abcpp_pre.txt' (a preamble needed to 
process the pmx code with abcpp). I've compiled in this way:


prepmx grancini
abcpp abcpp_pre.txt  grancinia.pmx
pmxab grancinia
rm grancinia.mx?
tex grancinia
musixflx grancinia
tex grancinia
dvips -pp 2-5 grancinia
ps2pdf grancinia.ps

I'm sending the pdf resulting file too, in which is evident a problem in 
the vertical justification. In the first page you may see clearly that 
the two hyphens after the last syllable 'ta' are misplaced above the 
system. I think that the additional space above the last system comes 
from this problem, but, I'm sorry, I can't say why. Any Idea?


I read in the musixlyr manual (chapter 3.9, p. 18) that the use of

\notes...\assignlyricshere{soprano}...\en

is better that the normal \assignlyrics{2}{soprano} in case of 
alteration of instrument numbers like in our case, but this command 
doesn't understand melismas inserted by mtx. Is there a solution for this?


Last.
Olivier, I am left speechless for the admiration at your example about 
the way to change the number of instruments within a staff. Wonderful! 
Maybe it's possible to imagine a macro that common and not skilled 
people like me can use in some occasion?


Luigi

### abcpp_pre.txt ###
#define rpb / %
#include grancini.pmx
### end ##

% %% grancini.mtx %% Cut here
Style: TTTB4
TTTB4: Voices T1 T2 T3 B; Choral; Clefs G8 G8 G8 F
Meter: C
Size: 20
Pages: 4
Systems: 13
Name: v1 v2 v3 v4

{v1A}
Au-di-te po-pu-li, au-di-te, au-di-te
quid lo-qua-tur Do-mi-nus
quid glo-ri-a-ri in ma-li-ti-a,
quid glo-ri-a-ri in ma-li-ti-a
qui po-ten-tes in i-qui-ta-tem

{v1B}
o stul-ti, o stul-ti a-li-quan-do
sa-pi-te a-man-tes in-tel-li-gi-te
ad-huc mo-cum, et pae-ca-tor-rum e-rit,
ut um-bra trans-i-bit, vi-te ve-stra
pes-i-bit ut sti-pu-la
sic-ca quam pro-ii-cit
ven-tus, et si-cut fa-
vil-la quam tur-

{v2}
Quis in-sur-git ad-ver-sum nos
quis im-pro-pe-rat vi-as no-stras
quis in-sur-git ad ver-sum nos,
quis im-pro-pe-rat vi-as no-stras

{v3}
Quis in-sur-git ad-ver-sum nos
quis im-pro-pe-rat vi-as no-stras,
sur-git ad-ver-sum nos
quis im-pro-pe-rat vi-as no-stras

%% w176m
%% \\hoffset -1in\advance\hoffset 17mm\
%%h263m
%% \\voffset -1in\advance\voffset 17mm\
%% Ab
% 1
r0b
r0b
r0b
r0b

% 2
%% L2P2Mn214btr+
%%\\\mtxGroup{1}{2}{1}\

%%\\\mtxAssignLyrics{2}{v1A}\

%% \\\mtxLyricsAdjust{2}{4}\
r8 g85 g8 g8 e8d d1 c8 g8+
L: {v1A}
rpb
rpb
c03 s

% 3
e45 c8 g8+ e4 c4
rpb
rpb
c03 s

% 4
r4 g85d e1 ( c2
rpb
rpb
c23 f2-

% 5
c45 ) d4- d4d c8
rpb
rpb
f22s g2

% 6
c25 r8 e8 f8 g8
rpb
rpb
c23 c2

% 7
d85 d8 e8 e8 e4d d8
rpb
rpb
g43 c4- f2 7 x386

% 8
e25 r8 b8 c8 d8
rpb
rpb
e23 # d2 6#

% 9
g84s g8 a8 a8 a4d g8
rpb
rpb
e43 c4s e2 4 x143

% 10
a44 a8 b8 c4 c4
rpb
rpb
a02

% 11
r8 c d e f2
rpb
rpb
f43 e4 d2 7 x146

% 12

%% \\\mtxLyricsAdjust{2}{0}\
%% L6P3Mn41234btttcr-i.0
m6203 e05d r0 rb2
m6203 rp
m6203 r2 c25 g2 a2 b2 c2
L: {v2}
m6203 c03d fd0-

% 13
r0b r9
r2 g25 d2 e2 f2s g2
L: {v3}
c05 b2 e0d
g02d 4 x123 c0d

% 14
r0b r9
g05 f2s g0d
r2 a24 a2 b2d c4 d2
d03d 4 x123 g0-d

% 15
%% L7Mn3123bttcr-i.0
%%\\\mtxGroup{1}{3}{1}\
rpb
r2 e25 e2 f2sd g4 a2
d05 c2s (~ d2d e4 c4 d4
a02d 4 x123 d0d

% 16
rpb
a05 g2s (~ a2d b4 g4 a4
b44 c4 d4 c4 b2 )~ a0 r2
e03d 4 x123 a0-d

% 17
rpb
f45s g4 a4 g4 f2 e2 b2 )~ b2
r2b r0 r2 g24s g2
b02d e0d

% 18
rpb
c25 d2 e2 d0 d2
a24 b2 c2 c0 b2
a02 e2 6 g0d

% 19
rpb
e05d r2 b2 b2
c05d r2 g2s g2
c03d e0d #

% 20
rpb
c25d d4 e2 d0 d2
a24d b4 c2 c0 b2
a02 e2 6 g0d

% 21
rpb
(~ e25d f4 d4 e4 c2 f4 g4 e4 f4
(~ c25d d4 b4 c4 a2 d4 e4 c4 d4
c23 e0 6 f2 d0 -

% 22
rpb
d25 g4 a4 f4 g4 e2 f4 g4 a4 g4
b24 e4 f4 d4 e4 c2 d4 e4 f4 e4
g23 c0 - a0 f2 s

% 23
m3200 rpb
m3200 f45 e4 d0 )~
m3200 d45 e4 b0 )~
m3200 f23 s g0

% 24
m2406 rpb
m2406 e25
m2406 c25
m2406 \wh3\ r2b

% 25
%% L10Mn214btcr-i.0
%%\\\mtxGroup{1}{2}{1}\

%%\\\mtxAssignLyrics{2}{v1B}\

%% \\\mtxLyricsAdjust{2}{4}\
m2400 r8 g85 e8 e1 g1
L: {v1B}
m2400 rpb
m2400 rpb
m2400 r2b

% 26
m4400 c8- c r c1 c c4.b
m4400 rpb
m4400 rpb
m4400 c23 a2 7 x146

% 27
d8.d d4 r8 d ( d4
rpb
rpb
g22 d2+ #

% 28
d8 ) d d cs e.e e4
rpb
rpb
b22 7 x186 a2 #

% 29
r4 e8 a- (~ a4.b )~
rpb
rpb
c23s d2

% 30
gs4 b8 b ( e2
rpb
rpb
e23 # g2-s

% 31
e4 ) e8 e ed4 ( ds8
rpb
rpb
a22 b2

% 32
e4 ) r8 b d d1 c b4
rpb
rpb
e23 # d4 # e4

% 33
a4 r8 b1 c d8 d1 c b4
rpb
rpb
a42 e4+ # d4 e4

% 34
a4 r8 c cd4 d1 e
rpb
rpb
a22 - a2

% 35
f8 f r a fd4 f1 e
rpb
rpb
f02
% %% cut here %%
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-13 Thread Luigi Cataldi

Of course I forgot the attachment, sorry!

Luigi


grancinia.pdf
Description: Adobe PDF document
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music

Re: [TeX-Music] M-Tx, number of staves

2010-06-12 Thread Hermann Hinsch
Am Samstag, 12. Juni 2010 05:11:46 schrieb Don Simons:

 I'm not sure what you'd like me to do or comment on. Did you manually edit
 the M-Tx output? 

 Yes I did so because it was the fasted way at the moment. Of course later on I 
will use C for a 
specified program or try sed, as David pointed out.
The main purpose for sending the pmx output was if one could understand beside 
the elimination of 
the rp  / the change of the instrument number in row 36 and 225 and deleting 
rows 227 and 228.

Would it be possible to change the thick-thin-bar at the end of a movement into 
a normal bar?
I suppose there should be a special TeX-inline code .

 If so, and if you describe how you'd like the vertical
 spacing, I could work out what commands to insert in the PMX to achieve it.
 I don't know if it's worth trying to do that with PMX commands embedded in
 M-Tx, if you're going to manually edit the M-Tx output anyway.

 I'm guessing you manually inserted the redefinition of \interstaff . I
 can't see why. I think the original unequal spacing on page 1 is due to the
 figures sticking down below the 3rd system. If I comment out the
 redefinition of \interstaff and insert Ae,

Now using Ai for different parts I got a much better spacing.

Hermann

 at least the systems come out
 equally spaced. I'm sure the vertical spacing could be further improved
 with some trial and error, forcing some page breaks, and maybe using some
 other tricks, either PMX or in-line TeX. Tell me some more about what you
 want to do.

 --Don





 ___
 tex-mu...@icking-music-archive.org mailing list
 If you want to unsubscribe or look at the archives, go to
 http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-mus
ic

___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music

Re: [TeX-Music] M-Tx, number of staves

2010-06-12 Thread Don Simons
I hope someone else can comment on the issues with \mtxAssignLyrics.it's not
something I know anything about.

 

In PMX, to replace the thick-thin bar at the end of a movement with a single
thin bar, you would put Rb after the last note and before the / in voice
#1 right before  the movement break. However, if you do this in M-Tx (now in
the last voice entered before the break), M-Tx will put in | between Rd
and / and that confuses PMX (sorry). So in your manual editing you need to
delete the |. I just looked for and replaced all | / with /.

 

To control  vertical spacing, in addition to Ai and AI which scale
\interstaff, there are a few other things you can do in PMX, separately or
in combination, usually with lots of trial and error.  Ae will equalize
spacing and prevent any systems from spilling over to an extra page. I use
it all the time. But with Ae, on a page with a movement break and change in
staves/system, you will probably need further intervention. You can use the
option in the movement break command that adds extra space before the new
movement, e.g., L2M+5 . With Ae active, in other places, you can use e.g.
\spread3\  to insert 3\internote of extra vertical space at the next system
break.

 

If you use Tt to insert a title, and if it's the last element of the title
block, then you can append e.g. +4 to increase the default space between
the title and first system by  4\internote .

 

Another command affecting vertical spacing is the v option of the A command.
PMX normally spreads staves vertically over a full page, unless the white
space becomes excessive, in which case it groups all staves near the top of
the page. Entering Av will suppress this grouping near the top, and ensure
that systems will always be spread vertically over the full page height
regardless of how much white space is left at the bottom. It is a toggle;
the second time it is issued, the behavior reverts to the default.

 

--Don

 

 

From: icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk
[mailto:icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk] On
Behalf Of Hermann Hinsch
Sent: Saturday, June 12, 2010 9:59 AM
To: Werner Icking Music Archive
Subject: Re: [TeX-Music] M-Tx, number of staves

 

Am Samstag, 12. Juni 2010 05:11:46 schrieb Don Simons:

 I'm not sure what you'd like me to do or comment on. Did you manually edit

 the M-Tx output? 

Yes I did so because it was the fasted way at the moment. Of course later on
I will use C for a specified program or try sed, as David pointed out.

The main purpose for sending the pmx output was if one could understand
beside the elimination of the rp / the change of the instrument number in
row 36 and 225 and deleting rows 227 and 228.

Would it be possible to change the thick-thin-bar at the end of a movement
into a normal bar?

I suppose there should be a special TeX-inline code .

 If so, and if you describe how you'd like the vertical

 spacing, I could work out what commands to insert in the PMX to achieve
it.

 I don't know if it's worth trying to do that with PMX commands embedded in

 M-Tx, if you're going to manually edit the M-Tx output anyway.

 

 I'm guessing you manually inserted the redefinition of \interstaff . I

 can't see why. I think the original unequal spacing on page 1 is due to
the

 figures sticking down below the 3rd system. If I comment out the

 redefinition of \interstaff and insert Ae,

Now using Ai for different parts I got a much better spacing.

Hermann

 at least the systems come out

 equally spaced. I'm sure the vertical spacing could be further improved

 with some trial and error, forcing some page breaks, and maybe using some

 other tricks, either PMX or in-line TeX. Tell me some more about what you

 want to do.

 

 --Don

 

 

 

 

 

 ___

 tex-mu...@icking-music-archive.org mailing list

 If you want to unsubscribe or look at the archives, go to


http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-mus

ic

___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music

Re: [TeX-Music] M-Tx, number of staves

2010-06-11 Thread Dirk Laurie
On Fri, Jun 11, 2010 at 07:05:54AM +0200, Don Simons wrote:
 
 3. (and here's where it gets really ugly) use a special FORTRAN program I
 wrote to go through the prepmx output file, looking for and deleting every
 occurrence of
 
 rp |
 rp |
 
PMX and M-Tx both carry heavily the baggage of what programming
languages their developers knew back when.  

In the meantime, some very interesting programming languages have 
become available.

The above job, and indeed everything currently done by PMX and M-Tx,
is miles easier in Python than in Fortran or Pascal.  (Actually,
this job can also be done by even a primitive text editor.)
Python can also take care of the whole tex-musixflx-tex cycle.

If there are any programmers on the list who would be interested
in a Python project for an updated M-Tx, please e-mail me so that
we don't have yet another one-person effort.

Dirk
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-11 Thread Christian Mondrup

Dirk Laurie wrote:

On Fri, Jun 11, 2010 at 07:05:54AM +0200, Don Simons wrote:


3. (and here's where it gets really ugly) use a special FORTRAN program I
wrote to go through the prepmx output file, looking for and deleting every
occurrence of

rp |
rp |


PMX and M-Tx both carry heavily the baggage of what programming
languages their developers knew back when.

In the meantime, some very interesting programming languages have
become available.

The above job, and indeed everything currently done by PMX and M-Tx,
is miles easier in Python than in Fortran or Pascal.  (Actually,
this job can also be done by even a primitive text editor.)
Python can also take care of the whole tex-musixflx-tex cycle.

If there are any programmers on the list who would be interested
in a Python project for an updated M-Tx, please e-mail me so that
we don't have yet another one-person effort.


I certainly support the idea of converting M-Tx to a collective software 
development project. I've done some patches through the past years to 
accommodate M-Tx to my needs - and will happily leave the maintenance to 
others.


I have a minor reservation for the python idea, though. It's a scripting 
language like perl requiring a python interpreter installed. Unless 
python supports generation of stand-alone binaries I foresee 
difficulties for Windows users not familiar with software installation.




Dirk
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music



--
Christian Mondrup, Archive Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-11 Thread Hermann Hinsch
Am Freitag, 11. Juni 2010 07:05:54 schrieb Don Simons:
 Olivier wrote

 M-Tx manual says at p. A-7:
 
 M-Tx 0.60 is not aware of movement breaks and the possibility to change

 the number of

 voices.
 
 It means that you can't do it with M-Tx, but it can easily be done with

 PMX. Read section 2.3.11 of the PMX manual.

 And I wrote

  if there were no lyrics, PMX could do it easily. With lyrics, I'm sure it

 can be done,

  using in-line PMX within the M-Tx source. But it's tricky.

 I've gone back and reminded myself what I did in my Pradas edition, which
 switches back and forth between BC+Soprano and BC+Soprano+Violin+Violin. It
 turns out it was beyond tricky.

 This was all done with one staff per instrument and one voice per staff, so
 it was flipping back and forth between 2 staves and four. I could not do it
 entirely from within M-Tx, because I couldn't figure out how to make M-Tx
 realize the number of staves had changed. Here's what I did:

 1. In M-Tx, (a) input all 4-staff sections normally
 (b) To go from 4 to 2, use e.g. %%L7Mn212bt
 (c) input all 2-staff sections as 4 staves with rp for the top two  and
 then the desired input for Soprano and BC in the 3rd and 4th.
 (d) To switch back from 2 to 4, use e.g. %%L10P3Mn41234bttt

 2. Run prepmx. Now I could process this pmx all the way, but the resulting
 score will have an unwanted bar of rests every other bar in the 2-staff
 movements. So instead,

 3. (and here's where it gets really ugly) use a special FORTRAN program I
 wrote to go through the prepmx output file, looking for and deleting every
 occurrence of

 rp |
 rp |

 4. Process the resulting modified .pmx normally.

 So Hermann, if you want to pursue this path, and if you do FORTRAN, I'd be
 happy to send you my source and you could modify it to suit your needs. Or
 maybe write your own script to do this using whatever language you like. Or
 maybe delete the extra rp's by hand with a text editor. Otherwise (so far)
 sorry, but you're on your own.

 --Don



Hi Don,

before I got your actual mail I tried the same way as you point out. Encouraged 
by your recent mail 
and the chapter 2.3.11 of the pmx manual I started M-Tx with a dummy page with 
the whole number of 
staves and began using M with the appropriate number of parameters for the 
different parts of the 
score. Then I eliminated the rp  / from the pmx file. But this wasn't enough. 
There were some other  
places to change. Before I describe these changes it maybe easier i send the 
pmx file commenting out 
the changes indicated by %-.
Up to now I am not quit satisfied with the space between the staves at the 
beginning  of the score. 
Maybe some TeX-lines are necessary.

Hermann





 ___
 tex-mu...@icking-music-archive.org mailing list
 If you want to unsubscribe or look at the archives, go to
 http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-mus
ic

---
\def\mtxversion{0.60d}
\def\mtxdate{11 October 2008}
\input mtx
 \def\writebarno{\ifnum\barno1\lrlap{\tenrm\it\the\barno\barnoadd}\fi}
 \def\raisebarno{4mm}
 \raggedbottom
 \parskip 2\Interligne plus 7\Interligne minus 7\Interligne
 \input musixlit
---
4 -4 1 1 1 1 4 4 0 6  0.0 0 5 16 16 0.12
\mtxInstrName{}
\mtxInstrName{{c${^4}$}}
\mtxInstrName{{c${^3}$}}
\mtxInstrName{{c${^3}$}}
6000
./
\\mtxSetSize{4}{\mtxNormalSize}\
\\mtxTenorClef{4}\
\\mtxTenorClef{3}\
\\mtxTenorClef{2}\
% Paragraph 3 line 18 bar 1
 P1
 It100
 h270m
 \\let\interstaffsav\interstaff\def\interstaff#1{}\interstaffsav{15}\
r0b /
r0b /
r0b /
r0b /

% Paragraph 4 line 31 bar 2
 L2P2Mn214btr+
\\\mtxSetLyrics{11}{Au-di-te po-pu-li, au-}\
%- This has to be changed \\\mtxAssignLyrics{4}{11}\
\\\mtxAssignLyrics{2}{11}\
c03 s /
%rp  /
%rp  /
r8 ga85 ga8 ga8 ea8d da1 ca8 ga8+ /

% Paragraph 5 line 37 bar 3
\\\mtxSetLyrics{11}{di-te, au-di-te}\
c03 s /
%rp  /
%rp  /
e45 ca8 ga8+ e4 c4 /

% Paragraph 6 line 42 bar 4
\\\mtxSetLyrics{11}{quid lo-qua-}\
c23 f2- /
%rp  /
%rp  /
r4 ga85d ea1 (S \mtxBM\ c2 /

% Paragraph 7 line 47 bar 5
 L3
\\\mtxSetLyrics{11}{tur Do-mi-}\
f22s g2 /
%rp  /
%rp  /
\mtxEM\ c45 )S d4- d4d ca8 /

% Paragraph 8 line 53 bar 6
\\\mtxSetLyrics{11}{nus quid glo-ri-}\
c23 c2 /
%rp  /
%rp  /
c25 r8 ea8 fa8 ga8 /

% Paragraph 9 line 58 bar 7
\\\mtxSetLyrics{11}{a-ri in ma-li-ti-}\
g43 c4- f2 7 x386 /
%rp  /
%rp  /
da85 da8 ea8 ea8 e4d da8 /

% Paragraph 10 line 63 bar 8
 L4
\\\mtxSetLyrics{11}{a, quid glo-ri-}\
e23 # d2 6# /
%rp  /
%rp  /
e25 r8 ba8 ca8 da8 /

% Paragraph 11 line 69 bar 9
 L5
\\\mtxSetLyrics{11}{a-ri in ma-li-ti-}\
e43 c4s e2 4 x143 /
%rp  /
%rp  /
ga84s ga8 aa8 aa8 a4d ga8 /

% Paragraph 12 line 75 bar 10
\\\mtxSetLyrics{11}{a qui po-ten-tes}\
a02 /
%rp  /
%rp  /
a44 aa8 ba8 c4 c4 /

% Paragraph 13 line 80 bar 11
\\\mtxSetLyrics{11}{in i-qui-ta-}\
f43 e4 d2 7 x146 /
%rp  /
%rp  /
r8 ca85 da8 ea8 f2 /

% Paragraph 14 line 

Re: [TeX-Music] M-Tx, number of staves

2010-06-11 Thread David Allsopp
Dirk Laurie wrote:
 On Fri, Jun 11, 2010 at 07:05:54AM +0200, Don Simons wrote:
 
  3. (and here's where it gets really ugly) use a special FORTRAN
  program I wrote to go through the prepmx output file, looking for and
  deleting every occurrence of
 
  rp |
  rp |
 
 PMX and M-Tx both carry heavily the baggage of what programming languages
 their developers knew back when.
 
 In the meantime, some very interesting programming languages have become
 available.

And even at the time Don wrote his original FORTRAN program:

sed -i -e /^rp |$/{N;/^rp |\nrp |$/d} prepmx

was still a vastly faster way of doing that text transformation than using
any text editor or custom written program!!


David 

___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-11 Thread Don Simons
I wrote
 1. In M-Tx, (a) input all 4-staff sections normally
 (b) To go from 4 to 2, use e.g. %%L7Mn212bt
 (c) input all 2-staff sections as 4 staves with rp for the top two and
 then the desired input for Soprano and BC in the 3rd and 4th.
 (d) To switch back from 2 to 4, use e.g. %%L10P3Mn41234bttt

 2. Run prepmx. Now I could process this pmx all the way, but the resulting
 score will have an unwanted bar of rests every other bar in the 2-staff
 movements. So instead,

 3. (and here's where it gets really ugly) use a special FORTRAN program I
 wrote to go through the prepmx output file, looking for and deleting every
 occurrence of

 rp |
 rp |

 4. Process the resulting modified .pmx normally.

 So Hermann, if you want to pursue this path, and if you do FORTRAN, I'd be
 happy to send you my source and you could modify it to suit your needs. Or
 maybe write your own script to do this using whatever language you like.
Or
 maybe delete the extra rp's by hand with a text editor. Otherwise (so far)
 sorry, but you're on your own.

 --Don


And Hermann wrote
Hi Don,
before I got your actual mail I tried the same way as you point out.
Encouraged by your recent mail and the chapter 2.3.11 of the pmx manual I
started M-Tx with a dummy page with the whole number of staves and began
using M with the appropriate number of parameters for the different parts of
the score. Then I eliminated the rp / from the pmx file. But this wasn't
enough. There were some other places to change. Before I describe these
changes it maybe easier i send the pmx file commenting out the changes
indicated by %-.
Up to now I am not quit satisfied with the space between the staves at the
beginning of the score. Maybe some TeX-lines are necessary.

Bravo! Great minds think alike :-)

I'm not sure what you'd like me to do or comment on. Did you manually edit
the M-Tx output? If so, and if you describe how you'd like the vertical
spacing, I could work out what commands to insert in the PMX to achieve it.
I don't know if it's worth trying to do that with PMX commands embedded in
M-Tx, if you're going to manually edit the M-Tx output anyway. 

I'm guessing you manually inserted the redefinition of \interstaff . I can't
see why. I think the original unequal spacing on page 1 is due to the
figures sticking down below the 3rd system. If I comment out the
redefinition of \interstaff and insert Ae, at least the systems come out
equally spaced. I'm sure the vertical spacing could be further improved with
some trial and error, forcing some page breaks, and maybe using some other
tricks, either PMX or in-line TeX. Tell me some more about what you want to
do.

--Don





___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-10 Thread Don Simons
Olivier wrote

M-Tx manual says at p. A-7:

M-Tx 0.60 is not aware of movement breaks and the possibility to change
the number of
voices.

It means that you can't do it with M-Tx, but it can easily be done with
PMX. Read section 2.3.11 of the PMX manual.

And I wrote
 if there were no lyrics, PMX could do it easily. With lyrics, I'm sure it
can be done, 
 using in-line PMX within the M-Tx source. But it's tricky.

I've gone back and reminded myself what I did in my Pradas edition, which
switches back and forth between BC+Soprano and BC+Soprano+Violin+Violin. It
turns out it was beyond tricky. 

This was all done with one staff per instrument and one voice per staff, so
it was flipping back and forth between 2 staves and four. I could not do it
entirely from within M-Tx, because I couldn't figure out how to make M-Tx
realize the number of staves had changed. Here's what I did:

1. In M-Tx, (a) input all 4-staff sections normally
(b) To go from 4 to 2, use e.g. %%L7Mn212bt
(c) input all 2-staff sections as 4 staves with rp for the top two  and then
the desired input for Soprano and BC in the 3rd and 4th.
(d) To switch back from 2 to 4, use e.g. %%L10P3Mn41234bttt

2. Run prepmx. Now I could process this pmx all the way, but the resulting
score will have an unwanted bar of rests every other bar in the 2-staff
movements. So instead, 

3. (and here's where it gets really ugly) use a special FORTRAN program I
wrote to go through the prepmx output file, looking for and deleting every
occurrence of

rp |
rp |

4. Process the resulting modified .pmx normally.

So Hermann, if you want to pursue this path, and if you do FORTRAN, I'd be
happy to send you my source and you could modify it to suit your needs. Or
maybe write your own script to do this using whatever language you like. Or
maybe delete the extra rp's by hand with a text editor. Otherwise (so far)
sorry, but you're on your own.

--Don

 



___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-07 Thread dsimons
All of the changes in number of voices in the example come at system breaks, 
not in the middle of a system. So yes, if there were no lyrics, PMX could do it 
easily. With lyrics, I'm sure it can be done, using in-line PMX within the 
M-Tx source. But it's tricky. I'm not very familiar with details of M-Tx, and 
have forgotten everything I worked out when I made my Pradas edition. It'll 
take gobs of trial-and-error, but I'll try to set up an example when I can, if 
someone else doesn't beat me to it. 

--Don

 Hermann Hinsch hermann.hin...@urz.uni-heidelberg.de wrote: 
 
 In order to demonstrate my problem with changing the number of staves per 
 system in a  score I send 
 the appended example as pdf file. It consists of a number of solos (2 staves 
 per system) and a tutti 
 with 4 vocals and bc. I made this example by using 2 separate mtx files, one 
 for the solos and the 
 other for the tutti. Translating them to 2 pdf's (where the first pdf must 
 have full pages) and 
 combining these by gs as I learned some time ago from Christian. 
 So this isn't a great action but I have to typeset other pieces with more 
 changes between one or 
 more voices all with bc. 
 I did some tries as Dirk suggested but without success.
 
 Hermann

___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-05 Thread Jean-Pierre Coulon

On Sat, 5 Jun 2010, Hermann Hinsch wrote:

Thank you for your contributions to my question. It will take me some 
time, to try them. My project is this: Typesetting motettes from the 
Italian ceicento which are written in a dialog form. They consist of 
solo parts which are responded by parts with more than one voice or even 
by the tutti all within the same piece.


Then is there any way to provide us with an sample image of your source, 
so we understand your need better?


Jean-Pierre Coulon  cou...@obs-nice.fr
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-05 Thread Hermann Hinsch
Am Samstag, 5. Juni 2010 11:59:52 schrieb Jean-Pierre Coulon:
 On Sat, 5 Jun 2010, Hermann Hinsch wrote:
  Thank you for your contributions to my question. It will take me some
  time, to try them. My project is this: Typesetting motettes from the
  Italian ceicento which are written in a dialog form. They consist of
  solo parts which are responded by parts with more than one voice or even
  by the tutti all within the same piece.

 Then is there any way to provide us with an sample image of your source,
 so we understand your need better?

Please give me some more time to answer. I am just preparing a score with 
various solo and tutti 
parts which isn't so difficult because I can split it into 2 parts and combine 
them afterwards. I 
think this might be a good example providing you with what I want.

Hermann 



 Jean-Pierre Coulon  cou...@obs-nice.fr
 ___
 tex-mu...@icking-music-archive.org mailing list
 If you want to unsubscribe or look at the archives, go to
 http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-mus
ic

___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music

Re: [TeX-Music] M-Tx, number of staves

2010-06-04 Thread Dirk Laurie
On Fri, Jun 04, 2010 at 11:56:24AM +0200, Jean-Pierre Coulon wrote:
 
  would it be possible to change in a score the number of staves within a 
  system? I had this problem a few years ago and solved this problem by using 
  an individual mtx-file for each group of systems with the same number of 
  staves, making eps-files and combine these files by LaTeX's icludegraphics. 
  Maybe there is another more convenient method?
 
 Even in MusiXTeX I don't know how to do this. 

You can pretend the piece has more than one movement, and use PMX
to insert a movement break when the number of staves changes.  Since
the feature is in PMX, you should be able to access it from M-Tx too.

From the PMX Reference Card

Li Force a line break at line i. Voice
#1 only. Start of block only.
 [Pi]  Force a page break at page i.
 [M]   Movement break. Must follow P
if present.
   [+i]Extraverticalspace,
\internote.
   [ix]New indent, decimal fraction of
line width.
   [c] Continue bar numbering, do not
reset.
   [r +,-] Force or suppress reprinting in-
strument names.
   [ni]Change to i instruments.
d1d2...di  Numbers of instruments. Pre-
cede 2-digit numbers with :
 c1c2...ck Clef symbols. Enter one for every
staff in new lineup.

Disclaimer: I've never actually tried this.  So I'd be quite interested
to know if it works.

Dirk
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-04 Thread Christian Mondrup

Jean-Pierre Coulon wrote:

On Fri, 4 Jun 2010, Hermann Hinsch wrote:


Hi all,

would it be possible to change in a score the number of staves within
a system? I had this problem a few years ago and solved this problem
by using an individual mtx-file for each group of systems with the
same number of staves, making eps-files and combine these files by
LaTeX's icludegraphics. Maybe there is another more convenient method?


Even in MusiXTeX I don't know how to do this. May you could study this
thread:
http://www.mail-archive.com/icking-music-archive.org-tex-music@mailman.nfit.au.dk/msg02177.html


and adapt this paragraph:

\off{6pt} % hard space
\roffset{2}{\psframe[linestyle=none,fillstyle=solid,fillcolor=white](0pt,4\internote)(6pt,14\internote)}%


to put some white paint on the staff portions you don't want to see. Are
you with TeX or LaTeX?



Another approach is to use psfig for including eps files into a plain 
TeX master script, something like


\input psfig.sty
\psfig{file=my_page.eps}

The vertical positioning of the included eps file may be tweaked by 
applying \lower or \raise on the \psfig expression, something like


\lower 7mm\psfig{file=my_page.eps}

If the number of staffs don't change within pages, then a simple and 
efficient method is to merge pdf pages using the utility pdftk, 
http://www.accesspdf.com/pdftk/


--
Christian Mondrup, Archive Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music


Re: [TeX-Music] M-Tx, number of staves

2010-06-04 Thread Don Simons
As Dirk pointed out, PMX can do this by itself, and added that you should be
able to access that capability from M-Tx. I can confirm that's all true, as
I have done exactly that in the one and only vocal score I publish
(http://www.pchpublish.com/dfc-24.html). I will confess that I ran into some
pretty sticky problems when making separate parts, and had to resort to some
very convoluted tricks. But if not for the parts, it would have been fairly
straightforward. And...if there are no lyrics (and Hermann never said
whether there were), then I guarantee you can do it all entirely within PMX,
with only the slightest amount of hassle: (1) once you put in a movement
break, you have to specify the total number of pages and systems in the
setup information, and (2) you may want to manually tweak the space between
movements. But again, you can do all of this entirely within PMX, with no
in-line TeX, and certainly without creating separate files for different
parts of the score. 

--Don Simons 

-Original Message-
From: icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk
[mailto:icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk]
On Behalf Of Dirk Laurie
Sent: Friday, June 04, 2010 3:07 AM
To: Werner Icking Music Archive
Subject: Re: [TeX-Music] M-Tx, number of staves

On Fri, Jun 04, 2010 at 11:56:24AM +0200, Jean-Pierre Coulon wrote:
 
  would it be possible to change in a score the number of staves
within a
  system? I had this problem a few years ago and solved this problem
by using
  an individual mtx-file for each group of systems with the same
number of
  staves, making eps-files and combine these files by LaTeX's
icludegraphics.
  Maybe there is another more convenient method?

 Even in MusiXTeX I don't know how to do this.

You can pretend the piece has more than one movement, and use PMX
to insert a movement break when the number of staves changes.  Since
the feature is in PMX, you should be able to access it from M-Tx too.

From the PMX Reference Card

Li Force a line break at line i. Voice
#1 only. Start of block only.
 [Pi]  Force a page break at page i.
 [M]   Movement break. Must follow P
if present.
   [+i]Extraverticalspace,
\internote.
   [ix]New indent, decimal fraction of
line width.
   [c] Continue bar numbering, do not
reset.
   [r +,-] Force or suppress reprinting in-
strument names.
   [ni]Change to i instruments.
d1d2...di  Numbers of instruments. Pre-
cede 2-digit numbers with :
 c1c2...ck Clef symbols. Enter one for every
staff in new lineup.

Disclaimer: I've never actually tried this.  So I'd be quite interested
to know if it works.

Dirk
___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-
music


___
tex-mu...@icking-music-archive.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music