Am 24.10.2011 01:49, schrieb Don Simons:
When I run the source (Windows XP) I do get the repeat at the end. So there
must be some OS or hardware differences. Here's the end of the pmx file that
I got:

==========================================
...
% Paragraph 5 line 26 bar 3
L2
\mtxZchar{10}{3.}\ f4 f4 e4 d4 f2 of c4d ba8 | /

% Paragraph 6 line 30 bar 4
\mtxZchar{10}{4.}\ a2 g2 f0 of Rr
  /

% Coded by M-Tx
===========================================

The file seems to be the same as I get it.
With the new version of pmx (beta 2.616) I tried it out once more and got some strange effects: When I use the precompiled pmxab.exe with wine under my debian linux, everything is fine and the repeat appears in the .tex file. But when I compiled the pascal source with gfortran, as described in the comments of the souce, the resulting pmxab produces the following error in the .pml log:

Last non-blank character is "3", not "/,%"
ASCII code:   51

and the repeat is missing.
Also, instead of \endpiece, \Endpiece is used.

Playing around a bit with the last input block of the .pmx file shows that the error happend when additional stuff (the comment line
% Coded by M-Tx
or even an additional newline) comes after the newline at the end of the last music block.

So the detection of the end of the piece doesn't seem to work when pmxab is compiled that way.

Can anyone confirm this behavior when compiling under linux?

And where does the errormessage come from?

Best regards,
Simon

I confirmed with a binary editor that all lines end with Hex 0D 0A as they
should in Windows text files. Assuming you don't want to buy a new computer
or OS to fix your problem, you might try just ending the piece with a single
bar, and getting the terminal repeat with inline TeX.

M-TX:
===========================
...
%%L2
U:3.
f f e d f2 of c4.b |

%%\\\let\ept\endpiece\def\endpiece{\setrightrepeat\ept}\
U:4.
a2 g f0 of |
============================

which produces PMX
============================
...
% Paragraph 5 line 26 bar 3
L2
\mtxZchar{10}{3.}\ f4 f4 e4 d4 f2 of c4d ba8 | /

% Paragraph 6 line 30 bar 4
\\\let\ept\endpiece\def\endpiece{\setrightrepeat\ept}\
\mtxZchar{10}{4.}\ a2 g2 f0 of | Rb
  /

% Coded by M-Tx
=============================

I've confirmed that this gives the repeat, although I don't yet understand
why. The PMX syntax "...| Rb /" is pretty flakey and I'd have thought either
we'd get a PMX error or the "Rd" would be ignored. But neither is happening;
the "Rd" causes \endpiece rather than \Endpiece , and the inline TeX
redefinition of \endpiece does the trick.

This all kinda makes me wonder how M-Tx users get double bars at the ends of
pieces (since using "|" after the last line in the M-Tx evidently gave Rd in
the PMX and \endpiece in the TeX) , and that'll be my next investigation.

--Don Simons

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of
Simon Dreher
Sent: Sunday, October 23, 2011 1:51 PM
To: Werner Icking Music Archive
Subject: [Tex-music] m-tx/pmx: ignoring repeats etc. at end of file

Hello,

I still have the problem that m-tx/pmx ignores commands after the last
note at the end of the piece, as I tried to explain some time ago. An
example, where the last repeat is ignored, is included at the end of
this mail.

Running m-tx, the repeat sign is included at the end of the last block,
followed by a strange linebreak and the / for the end of the staff. The
repeat gets lost in the pmx run. The tex-file finishes the piece with
\Endpiece
I can get it back if I manually delete an empty line between the last
block and the very last comment line in the pmx file.
Then the tex-file contains
\setrightrepeat\endpiece
This is a bit strange - why is this handled differently and how can I
get the repeat sign without editing the pmx file every time?

Best regards,
Simon

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Title: O my love
Style: SINGER
Meter: m2/1/0/5
Flats: 1
Pages: 1
Systems: 2
Space: -18

{S1}
O my love, lov'st thou me?
Then quick-ly come and save him that dies for thee.

%%h85m
%%It150ipi
%%B
%%Apl+t+seb
%%\\nobarnumbers\
U:1.
@+3 f2 g a0 of |
L:{S1}

U:2.
a2 b c2d of c4 |

%%L2
U:3.
f f e d f2 of c4.b |

U:4.
a2 g f0 of :|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EOF %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music

Reply via email to