Re: [TeX-Music] M-Tx-PMX-Problem

2008-04-16 Thread Dirk Laurie
Christian Mondrup skryf:
 Don Simons wrote:
  The length of that variable is limited to 65536 characters by my compiler.
 Without any fortran knowledge nor programming experience I'm surprised 
 with the 64K size limit of _string_ variables (or does fortran really 
 have a _character_ datatype having size expandable up til 64K?). 

Without any knowledge of Don's compiler, it is my guess that the
restriction is not in Fortran, it's in the compiler.  

Many things in PMX (and M-Tx before I dropped Borland Pascal and p2c
from the supported platforms, and even MusiXTeX itself for that matter) 
are restricted by the desire to retain compatibility with (by modern 
standards) rather primitive computers and software --- some of which
have a 64K restriction on any one addressable structure, caused by
the design of the ancient 8086 chip.

Personally, if someone came to me today with the source language of
PMX and M-Tx specified and asked me to write a system from scratch
for compiling it to MusiXTeX, I would use Python for both.  Everything
in one program - no user-specified intermediate calls to tex, musixflx 
etc.  Extremely convenient character string handling.

Dirk
___
TeX-music mailing list
[EMAIL PROTECTED]
http://mailman.daimi.au.dk/mailman/listinfo/tex-music


Re: [TeX-Music] M-Tx-PMX-Problem

2008-04-15 Thread Christian Mondrup
Don Simons wrote:
 Since I got sucked into this, I decided to see if bigpmx (as described in my
 last posting) could deal with Hermann's file. I've discovered yet another
 issue, one that has nothing to do with the number of voices but rather
 simply with the length of the file. There's one point where PMX copies the
 entire input file into a single character variable acting as a buffer (after
 stripping all blank lines). The length of that variable is limited to 65536
 characters by my compiler. 

Without any fortran knowledge nor programming experience I'm surprised 
with the 64K size limit of _string_ variables (or does fortran really 
have a _character_ datatype having size expandable up til 64K?). Just a 
thought: could string arrays come in as a replacement of 'flat' string 
variables? Ie. fill up an array item up til the 64K and then go on the 
next array item. I suppose that'll complicate handling the stored data, 
though.

 Hermann's file exceeds that length in bar 107.
 That's the reason for the problem he reported below.
 
 I haven't decided yet whether to try to fix this one. Since I can't simply
 lengthen the buffer, increasing the allowable file length will take some
 heavy-duty programming. At a minimum I'll put a check in PMX and send an
 error message if the capacity is exceeded.
 
 I'm surprised this hasn't come up before now.
 
 --Don
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:tex-music-
 [EMAIL PROTECTED] On Behalf Of Hermann Hinsch
 Sent: Tuesday, April 01, 2008 6:46 AM
 To: Werner Icking Music Archive
 Subject: [TeX-Music] M-Tx-PMX-Problem


 About a fortnight ago I got the valuable help from Don, Christian, and
 Hiroaki concerning my project typesetting a psalm with 12 voices and
 B.C. Everthing went well up to the last 2 bars, where I got an error.

 What I did: modifying pmxab (version 2.504) by increasing the number of
 staves to 13 (setting nm=13), compiling by f2c and gcc, including
 musixuad.tex into mtx.tex before musixlyr.tex, using etex.

 The psalm consists of 108 bars. Without the last 2 bars the error
 disappears and I got what I wanted. The error message of pmxab including
 the last bars
 is:

 ERROR in line 2771, bar 109 This character is not allowed here
 v
 c93  c9
 ^
 ASCII code: 16

 There is no evidence that this character is at this place.

 Then I splitted the psalm into 2 parts, which could be processed without
 any error. By this I think that the syntax is ok.

 Although the mtx-file is about 46 kbytes I append it to this mail.
 Perhaps this problem might be of larger interest.

 Hermann
 
 ___
 TeX-music mailing list
 [EMAIL PROTECTED]
 http://mailman.daimi.au.dk/mailman/listinfo/tex-music


-- 
Christian Mondrup, Sheet Music Editor
WIMA: Werner Icking Music Archive
http://icking-music-archive.org/
___
TeX-music mailing list
[EMAIL PROTECTED]
http://mailman.daimi.au.dk/mailman/listinfo/tex-music


Re: [TeX-Music] M-Tx-PMX-Problem

2008-04-13 Thread Don Simons
Since I got sucked into this, I decided to see if bigpmx (as described in my
last posting) could deal with Hermann's file. I've discovered yet another
issue, one that has nothing to do with the number of voices but rather
simply with the length of the file. There's one point where PMX copies the
entire input file into a single character variable acting as a buffer (after
stripping all blank lines). The length of that variable is limited to 65536
characters by my compiler. Hermann's file exceeds that length in bar 107.
That's the reason for the problem he reported below.

I haven't decided yet whether to try to fix this one. Since I can't simply
lengthen the buffer, increasing the allowable file length will take some
heavy-duty programming. At a minimum I'll put a check in PMX and send an
error message if the capacity is exceeded.

I'm surprised this hasn't come up before now.

--Don

-Original Message-
From: [EMAIL PROTECTED] [mailto:tex-music-
[EMAIL PROTECTED] On Behalf Of Hermann Hinsch
Sent: Tuesday, April 01, 2008 6:46 AM
To: Werner Icking Music Archive
Subject: [TeX-Music] M-Tx-PMX-Problem


About a fortnight ago I got the valuable help from Don, Christian, and
Hiroaki concerning my project typesetting a psalm with 12 voices and
B.C. Everthing went well up to the last 2 bars, where I got an error.

What I did: modifying pmxab (version 2.504) by increasing the number of
staves to 13 (setting nm=13), compiling by f2c and gcc, including
musixuad.tex into mtx.tex before musixlyr.tex, using etex.

The psalm consists of 108 bars. Without the last 2 bars the error
disappears and I got what I wanted. The error message of pmxab including
the last bars
is:

ERROR in line 2771, bar 109 This character is not allowed here
 v
 c93  c9
 ^
 ASCII code: 16

There is no evidence that this character is at this place.

Then I splitted the psalm into 2 parts, which could be processed without
any error. By this I think that the syntax is ok.

Although the mtx-file is about 46 kbytes I append it to this mail.
Perhaps this problem might be of larger interest.

Hermann

___
TeX-music mailing list
[EMAIL PROTECTED]
http://mailman.daimi.au.dk/mailman/listinfo/tex-music


Re: [TeX-Music] M-Tx-PMX-Problem

2008-04-07 Thread Hiroaki MORIMOTO
Hello Hermann,

Are you aware of the M-Tx warning messages Possible unterminated 
TeX literal? 

They are caused by '\chu {-2}\ ' and '\chl {-2}\ ' in your mtx file.
You should remove surplus whitespace like '\chu{-2}\ ', etc.

Now I'm trying to modify PMX with nm=13, using g77 compiler of MinGW5.

Best regards,


Hiroaki MORIMOTO [EMAIL PROTECTED]
  Tokyo, Japan


Hermann Hinsch [EMAIL PROTECTED] wrote:

 
 About a fortnight ago I got the valuable help from Don, Christian, and 
 Hiroaki 
 concerning my project typesetting a psalm with 12 voices and B.C. Everthing 
 went well up to the last 2 bars, where I got an error.
 
 What I did: modifying pmxab (version 2.504) by increasing the number of 
 staves 
 to 13 (setting nm=13), compiling by f2c and gcc, including musixuad.tex into 
 mtx.tex before musixlyr.tex, using etex.
 
 The psalm consists of 108 bars. Without the last 2 bars the error disappears 
 and I got what I wanted. The error message of pmxab including  the last bars 
 is:
 
 ERROR in line 2771, bar 109 This character is not allowed here
  v 
  c93  c9 
  ^
  ASCII code: 16
 
 There is no evidence that this character is at this place.
 
 Then I splitted the psalm into 2 parts, which could be processed without any 
 error. By this I think that the syntax is ok.
 
 Although the mtx-file is about 46 kbytes I append it to this mail. Perhaps 
 this problem might be of larger interest.
 
 Hermann


___
TeX-music mailing list
[EMAIL PROTECTED]
http://mailman.daimi.au.dk/mailman/listinfo/tex-music


Re: [TeX-Music] M-Tx-PMX-Problem

2008-04-07 Thread Hermann Hinsch
Am Montag, 7. April 2008 16:16 schrieb Hiroaki MORIMOTO:
 Hello Hermann,

 Are you aware of the M-Tx warning messages Possible unterminated
 TeX literal?


I got these messages in previous versions of my text, but not in the text 
which I sent to the list. So I am surprised about your message. Do you use 
M-Tx 0.60c? 

 They are caused by '\chu {-2}\ ' and '\chl {-2}\ ' in your mtx file.
 You should remove surplus whitespace like '\chu{-2}\ ', etc.

 Now I'm trying to modify PMX with nm=13, using g77 compiler of MinGW5.

 Best regards,

 
 Hiroaki MORIMOTO [EMAIL PROTECTED]
   Tokyo, Japan

 Hermann Hinsch [EMAIL PROTECTED] wrote:
  About a fortnight ago I got the valuable help from Don, Christian, and
  Hiroaki concerning my project typesetting a psalm with 12 voices and B.C.
  Everthing went well up to the last 2 bars, where I got an error.
 
  What I did: modifying pmxab (version 2.504) by increasing the number of
  staves to 13 (setting nm=13), compiling by f2c and gcc, including
  musixuad.tex into mtx.tex before musixlyr.tex, using etex.
 
  The psalm consists of 108 bars. Without the last 2 bars the error
  disappears and I got what I wanted. The error message of pmxab including 
  the last bars is:
 
  ERROR in line 2771, bar 109 This character is not allowed here
   v
   c93  c9
   ^
   ASCII code: 16
 
  There is no evidence that this character is at this place.
 
  Then I splitted the psalm into 2 parts, which could be processed without
  any error. By this I think that the syntax is ok.
 
  Although the mtx-file is about 46 kbytes I append it to this mail.
  Perhaps this problem might be of larger interest.
 
  Hermann

 ___
 TeX-music mailing list
 [EMAIL PROTECTED]
 http://mailman.daimi.au.dk/mailman/listinfo/tex-music

-- 
Dr. Hermann Hinsch
Quinckestraße 44
69120 Heidelberg
Tel.: 06221-436298
Email: [EMAIL PROTECTED]

___
TeX-music mailing list
[EMAIL PROTECTED]
http://mailman.daimi.au.dk/mailman/listinfo/tex-music


[TeX-Music] M-Tx-PMX-Problem

2008-04-01 Thread Hermann Hinsch

About a fortnight ago I got the valuable help from Don, Christian, and Hiroaki 
concerning my project typesetting a psalm with 12 voices and B.C. Everthing 
went well up to the last 2 bars, where I got an error.

What I did: modifying pmxab (version 2.504) by increasing the number of staves 
to 13 (setting nm=13), compiling by f2c and gcc, including musixuad.tex into 
mtx.tex before musixlyr.tex, using etex.

The psalm consists of 108 bars. Without the last 2 bars the error disappears 
and I got what I wanted. The error message of pmxab including  the last bars 
is:

ERROR in line 2771, bar 109 This character is not allowed here
 v 
 c93  c9 
 ^
 ASCII code: 16

There is no evidence that this character is at this place.

Then I splitted the psalm into 2 parts, which could be processed without any 
error. By this I think that the syntax is ok.

Although the mtx-file is about 46 kbytes I append it to this mail. Perhaps 
this problem might be of larger interest.

Hermann
Style: Chor1 Chor2 Chor3 Bass
Chor1: Voices S1 A1 T1 B1; Choral; Clefs G G G F
Chor2: Voices S2 A2 T2 B2; Choral; Clefs G G G F
Chor3: Voices S3 A3 T3 B3; Choral; Clefs G G G F
Bass: Voices B; Clefs F
Meter: m3/1/0/03
Flats: 1
Pages: 29
Systems: 29
% Bars/line: 3
Size: 16

%% \def\writebarno{\ifnum\barno1\lrlap{\tenrm\it\the\barno\barnoadd}\fi}
%% \def\raisebarno{5mm}
% % \raggedbottom
%% \parskip 6\Interligne plus 7\Interligne minus 7\Interligne
%% \input musixlit
% % \twelverm

%% \\let\interstaffsav\interstaff\def\interstaff#1{}\interstaffsav{14}\
%% P
%% h280m
%% w190m
% Bar 1
S1: (~ f04d g4 a b0 )~
L:  Sur-
A1: r0bd \PAuse\ r0db
L:  
T1: r0bd \PAuse\ r0db
L:  
B1: r0bd \PAuse\ r0db
L:  
S2: r0bd \PAuse\ r0db
L:  
A2: r0bd \PAuse\ r0db
L:  
T2: r0bd \PAuse\ r0db
L:  
B2: r0bd \PAuse\ r0db
L:  
S3: r0bd \PAuse\ r0db
L:  
A3: r0bd \PAuse\ r0db
L:  
T3: r0bd \PAuse\ r0db
L:  
B3: r0bd \PAuse\ r0db
L:  
f93 g0

% Bar 2
S1: a04 (~ a2 b4 c d0 )~
L:  ge, sur-
A1: r0bd \PAuse\ r0db
L:
T1: r0bd \PAuse\ r0db
L:
B1: r0bd \PAuse\ r0db
L:
S2: (~ f04d g4 a b0 )~
L:  Sur-
A2: r0bd \PAuse\ r0db
L:
T2: r0bd \PAuse\ r0db
L:
B2: r0bd \PAuse\ r0db
L:
S3: r0bd \PAuse\ r0db
L:
A3: r0bd \PAuse\ r0db
L:
T3: r0bd \PAuse\ r0db
L:
B3: r0bd \PAuse\ r0db
L:
f93 b0-

% Bar 3
S1: c95 r0
L:  ge
A1: r0bd \PAuse\ r0db
L:
T1: r0bd \PAuse\ r0db
L:
B1: r0bd \PAuse\ r0db
L:
S2: a04 (~ a2 b4 c d0 )~
L:  ge, sur-
A2: r0bd \PAuse\ r0db
L:
T2: r0bd \PAuse\ r0db
L:
B2: r0bd \PAuse\ r0db
L:
S3: (~ f04d g4 a b0 )~
L:  Sur-
A3: r0bd \PAuse\ r0db
L: 
T3: r0bd \PAuse\ r0db
L: 
B3: r0bd \PAuse\ r0db
L: 
f92 g0

% Bar 4
S1: r0 (~ c25 d4 e f0 )~
L:  sur-
A1: r0bd \PAuse\ r0db
L: 
T1: r0bd \PAuse\ r0db
L: 
B1: r0bd \PAuse\ r0db
L: 
S2: c05 f9-
L:  ge, sur-
A2: r0bd \PAuse\ r0db
L: 
T2: r0bd \PAuse\ r0db
L: 
B2: r0bd \PAuse\ r0db
L: 
S3: a04 (~ a2 b4 c d0 )~
L:  ge, sur-
A3: r0bd \PAuse\ r0db
L: 
T3: r0bd \PAuse\ r0db
L: 
B3: r0bd \PAuse\ r0db
L: 
a92 b0

% Bar 5
S1: e05 d9 
L:  ge Pe-
A1: r0bd \PAuse\ r0db 
L: 
T1: r0bd \PAuse\ r0db
L: 
B1: r0bd \PAuse\ r0db
L: 
S2: c04 g9+
L:  ge, Pe-
A2: r0bd \PAuse\ r0db
L: 
T2: r0bd \PAuse\ r0db
L: 
B2: r0bd \PAuse\ r0db
L: 
S3: c05 b9n
L:  ge Pe-
A3: r0bd \PAuse\ r0db
L: 
T3: r0bd \PAuse\ r0db
L: 
B3: r0bd \PAuse\ r0db
L: 
c03 g9+ #

% Bar 6
S1: c05 d9 
L:  tre, sur-
A1: r0bd \PAuse\ r0db
L: 
T1: r0bd \PAuse\ r0db 
L: 
B1: r0bd \PAuse\ r0db
L: 
S2: c05 c bn
L:  tre sur-
A2: r0bd \PAuse\ r0db
L: 
T2: r0bd \PAuse\ r0db
L: 
B2: r0bd \PAuse\ r0db
L: 
S3: c05 g9
L:  tre sur-
A3: r0bd \PAuse\ r0db
L: 
T3: r0bd \PAuse\ r0db
L: 
B3: r0bd \PAuse\ r0db
L: 
e03 g9 4 x123

% Bar 7
%% L2
S1: m8406 c25 r4 c d X-1 c8 b f2+
L:  ge et in-du-e te,
A1: m8406 r0b \PAuse\ r0b
L: 
T1: m8406 r0b \PAuse\ r0b
L: 
B1: m8406 r0b \PAuse\ r0b
L: 
S2: m8406 c05 r2 r4 c
L:  ge et
A2: m8406 r0b \PAuse\ r0b
L: 
T2: m8406 r0b \PAuse\ r0b
L: 
B2: m8406 r0b \PAuse\ r0b
L: 
S3: m8406 c04 r4 g+ a X0.5 b8 f
L:  ge et in-du-e
A3: m8406 r0b \PAuse\ r0b
L: 
T3: m8406 r0b \PAuse\ r0b
L: 
B3: m8406 r0b \PAuse\ r0b
L: 
m8406 c03 b2 6 a 6

% Bar 8
S1: r4 g44 a X0.5 g8 f (~ [ b g a b ] c2 )~
L:  et in-du-e te
A1: r0b \PAuse\ r0b
L: 
T1: r0b \PAuse\ r0b
L:  
B1: r0b \PAuse\ r0b
L: 
S2: d45 X0.5 c8 b f4+ a- b a8 g f2
L:  in-du-e te, et in-du-e te
A2: r0b \PAuse\ r0b
L: 
T2: r0b \PAuse\ r0b
L: 
B2: r0b \PAuse\ r0b
L: 
S3: b24 r4 c d c8 b f2+
L:  te, et in-du-e te
A3: r0b \PAuse\ r0b
L: 
T3: r0b \PAuse\ r0b
L: 
B3: r0b \PAuse\ r0b
L: 
g22 f g+ f

% Bar 9
S1: g44d g8 X2 b4 X2 d e0f
L:  ve-sti-men-tis tu-
A1: r0b \PAuse\ r0b
L: 
T1: r0b \PAuse\ r0b
L:  
B1: r0b \PAuse\ r0b
L: 
S2: e44df e8 g4 b (~ b [ a8 g ] a2 )~
L:  ve-sti-men-tis tu-
A2: r0b \PAuse\ r0b
L: 
T2: r0b \PAuse\ r0b
L: 
B2: r0b \PAuse\ r0b
L: 
S3: b44d b8 b4 b c0
L:  ve-sti-men-tis tu-
A3: r0b \PAuse\ r0b
L: 
T3: r0b \PAuse\ r0b
L: 
B3: r0b \PAuse\ r0b
L: 
e23df d4 c0

% Bar 10
S1: m4400 d05
L:  is
A1: m4400 r0
L: 
T1: m4400 r0
L:  
B1: m4400 r0
L: 
S2: m4400 b04
L:  is
A2: m4400 r0
L: 
T2: m4400 r0
L: 
B2: m4400