Re: [Tex-music] M-Tx code on GitHub updated

2017-11-30 Thread Dirk Laurie
2017-11-29 15:05 GMT+02:00 Christian Mondrup :

> On 2017-11-24 17:04, Christian Mondrup wrote:
> I'm encountering a problem with a pickup bar followed by a multi rest.
> The problem occurs in 'Contrapunctus 13' starting with a pickup bar
> followed by 7 consecutive full bar rests in one of the parts. In my
> preprocessing of the mtx full score src for a separate part this is
> converted to a leading pickup bar followed by a 'rm7' bar. Prepmx simply
> drops the rest in the pickup bar causing pmxab to fail. If I prepend the
> missing 'r8' to the first pmx bar pmxab compiles successfully.

Let me first quote from the PMX manual.

"If there is a pickup bar defined by xmtrnum0 > 0, it must be included
in the first block together with at least one full bar."

And now from the M-Tx manual.

"the bar following the pickup may not contain a meter change but must
have the length specified in the preamble."

Unfortunately, the present implementation of multibar rests does not
allow any other notes and rests on the line. This has not so far been
a restriction because one could simple make another paragraph.
But when the previous paragraph is only a pickup, the PMX code
will not be legal.

PMX offers a workaround if the above is unacceptable.

If you wish to put a pickup in a separate block, for example at the
start of a new movement, set the initial logical meter to fit the
pickup bar, then after the pickup bar do a blind meter change"

M-Tx specifically prohibits that workaround.

So the best current workaround at the M-Tx level is to replace "r8 |
rm7" by "r8 | r2" or "r8 | rp" as you prefer, and then "rm6" in a new
paragraph. It is musically equivalent, but if it jars your sense of
perfection (it does mine) the amount of editing on the PMX file to get
your modifed file is minimal.

I'll look into the reason for the restriction that there may be no
other notes or rests. Maybe it has something to do with keeping count
of bars, in which case a pickup could be allowed. But this will not be
quick.

Best wishes
Dirk
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] M-Tx code on GitHub updated

2017-11-24 Thread Christian Mondrup

On 2017-11-24 14:36, Dirk Laurie wrote:

I have just pushed a bug correction to

 https://github.com/dlaurie/M-Tx

After a decent interval, if no further issues arise, I shall promote
the current code to be the 0.63 release.

It was tacitly assumed that a multi-bar rest would be the first line
of its paragraph. This restriction was not intended.

The multibar rest may now appear after some comment lines. It is still
the case that there may be no other music lines in the same paragraph.


Thank you so much!



Thanks to Christian Mondrup for finding and reporting the error.

-- Dirk
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music




--
Christian Mondrup
WIMA: Werner Icking Music Archive
http://imslp.org/wiki/Category:WIMA_files
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music