> Date: Mon, 11 Jan 1999 17:15:35 +0100 (MET)
> From: [EMAIL PROTECTED] (Eckart Begemann)

>   PMX has (like any program) limits. 
>   E.g. it has limited the number of forced line breaks ('L..')
>   to 40. [...]

Some of PMX's limits can circumvented by breaking the PMX-source into
multiple pieces. These pieces can be combined then in different
ways. One way is to write an plain TeX-driver for multiple PMX
outputs; something like:

...
\startmuflex\def\startmuflex{}
\let\endmuflexsav\endmuflex
\def\endmuflex{\endinput}
...
\input pmx1
\input pmx2
...
\input pmxn
\endmuflex
\bye

Explanation: a PMX-output ends with
  \Endpiece
  \vfill\eject\endmuflex
  \bye

Re-defining \endmuflex as \endinput avoids the last \bye and so terminating
the TeX-run. This way multiple PMX-outputs can be combined into one TeX-source.
Another way is to intercept in a similar way "\Endpiece" of a PMX-output.
Then the single parts do not have to be complete pages.

The execution and redefinition of \startmuflex avoid some warnings.



Christof K. Biebricher and I used another way when editing his organ edition
or my string-quartet/orchestra edition of Bach's Kunst der Fuge. There's a 
programm dviconcat which combines several dvi-files into one dvi-file. So we 
have several PMX-sources which result into several dvi-files which are then 
combined into one dvi-file using dviconcat. You may have a look at it because 
the source of these editions is available at http://www.gmd.de/Misc/Music/scores/


If you look at the source you'll see that I introduced a (draft of a) new
component into PMX: scr2scr. You now can write a PMX-sources which generate 
different variants of the score. In this way Chrisof's organ edition
is available in portrait format and landscape format, similar to the quarto
format organist are used to. In my edition it will be used to generate
a string-quartet/string-orchestra edition and an Urtext-edition, which will
appear soon.

The principle is similar to PMX's scor2prt. Scr2scr - which is currently
only available as SPITBOL programm and DOS32 executable - copies a
PMX source into some other PMX-sources numbered from 1 to n:

 - by omitting all lines beginning with "%%" or "%00"
 - omitting all lines preceeded by a line beginning with "%%" or "%00"
 - copying all lines beginning with "%0!" into all files after removing "%!"
 - copying all lines beginning with "%0<k>" into the k-th file after removing
   "%0<k>" if k is less or equal to the programm's first parameter.
    
The programm is called by:   scr2scr n pmx-source

Comments on the programme are welcome. Don plans to integrate the simple 
programme into PMX.


-- Werner

PS: Some time ago someone asked for PMX or M-Tx examples. The number of
    PMX and M-Tx sources on my server has increased much in the last months.
    Don't forget to thank the uploaders!

Reply via email to