> Date: Mon, 10 Apr 2000 10:09:47 +0200 (MEST)
> From: Bernhard Lang <[EMAIL PROTECTED]>
[...]
> Ok, I think, my question was too short. What I would need is a change of
> spacing just within a few bars which do not even fill a line. So
> "compressing" just by changing the number of bars within that line does
> not work. Within these bars whole notes should have approx. the same
> spacing as 4th outside, 2th within as 8th outside etc.
That's only possible by overfooling PMX. As you already wrote it's no
problem to convince PMX to put these specific bars into one line together
with "normal" bars. Now you have to convince MusiXTeX to use different
spacing for these bars. I would try it in the following way:
\\def\eng{\multnoteskip{0.5}\
...
m4/4/0/0 c4 c c8 c8 c4 /
Rd m4/1/0/0 \eng\ c0 c \eng\ c2 c \eng\ c0 /
m4/4/0/0 c4 c c8 c8 c4 /
It's untested. Your mileage ("0.5") may vary. If it doesn't work I've
to overthink it. For multistaff music or music with more than one
voice in a staff "\eng\" must be used in all voices for any new time
value in any of the voices or staffs. I used a similar solution for
"Stichworte" (indicating another voice during the rests in one voice in
small notes). I used it in my string-quartet edition of Bach's Kunst der
Fuge.
> > 2. Is it possible to prevent pmx from putting commands into the pre- and
> > postamble of the TeX-output which are not compatible with LaTeX (as
> > \nopagenumbers, \bye and all sorts of paper size commands etc.) or with
> > plain MusiXTeX (like \elemskip1pt, \endmuflex...)?
> >
> > Again, I cannot think of any easy way. But stay tuned, Werner may weigh in
> > with something here. And again, I don't fully understand the question. All
> > PMX commands had better be compatible with MusiXTeX. I don't know what you
> > mean by "plain MusiXTeX." MusiXTeX is inherently a 3-pass system. The 1-pt
> > \elemskip is specified to absolutely guarantee no lines are too long on the
> > first pass. On the 2nd pass, musixflx scales it up as required for the 3rd
> > pass.
> By "plain MusiXTeX" I meant using it just as it is without any
> preprocessor. When I insert a pmx generated file inbetween such hand
> written MusiXTeX files, everyting which comes after the pmx generated one
> looks either a) terrible crowded (musixflx tells me that I shouldn't
> stress \mulooseness too much, well I think it's not me who does this :-)
> or b) even the third MusixTeX pass ends up with an "\inline=" input
> message.
Have a look at the archive of this mailing list for "endmuflex" and
on the sheet music archive http://www.gmd.de/Misc/Music/scores/. There
are a lot of editions made out of different PMX or M-tx-source by
using a quite normal TeX-file \input-ting the sources, IIRC e.g. some
Ravenscroft by Christian Mondrup. This main TeX has to include
some code to reset things change in the PMX-generates sources. It's not
easy but works.
[...]
> b) It looks like the stuff which should go to .mx1 is written to the .log
> file after the \endmuflex in the pmx output
That's very strange. I've never seen such a behaviour.
> (why? even an explicit
> \startmuflex afterwards does not change this).
IIRC \startmuflex works only once, and this condition isn't reset by
\endmuflex. But it is very easy to intercept \startmuflex and \endmuflex
e.g. by
\startmuflex\let\startmuflex\relax
\let\endmuflexsav\endmuflex\let\endmuflex\relax
...
\endmuflexsav
\end
Since long I use a similar solution with \let\endmuflex\endinput to
get rid of the end of a PMX-generated TeX-output which e.g. contains
an unwanted \bye.
> Afterwards, musixflx
> produces no output for this part -> MusiXTeX hangs in the third pass. The
> problem can be fixed by deleting the \endmuflex at the very end of the TeX
> file written by pmx. But this (and removing the LaTeX incompatible
> commands \nopagenumbers, \vsize and \hsize) needs patchwork whenever pmx
> has been running over the the pmx-input :-( Ok, this can also be done
> automatically by a little program. So the problem is not that serious :-)
On http://www.gmd.de/Misc/Music/ under M-Tx there should be something
I've never used which extracts the pure MusiXTeX from M-Tx/PMX-generated
TeX-source - I hope I understood correctly what tex2ex should do.
Another file in that archice may be worth for you. Under "add-ons" is
an 1-page articel on PMX&LaTeX2e
Hope this hilft -- Werner