Sebastien Perez-Duarte skryf:
>
> I've successfully typewritten music for piano 6 hands (using an
> "undocumented" feature of MTx), the braces come out right. But now that I
> try something for piano duet (4 hands) I don't even get the warning, the top
> staff doesn't get a brace and the last three ones do (as pmx is supposed to
> do when he receives the command 4 2 ...).
>
> My question is : how can I enforce the correct behaviour form inside the mtx
> file ? (I could always go and edit the pmx file, but I'd rather avoid that)
>
This is a bug. I attach a diff file that can be applied in the p2c
directory to fix it ("patch < preamble.diff"). If you have no patch
utility, just delete the lines in p2c that are marked with a '-' in
front in the diff file.
Dirk
--- preamble.c.orig Thu Jun 21 12:04:41 2001
+++ preamble.c Thu Jun 21 12:05:29 2001
@@ -950,7 +950,6 @@
void doPMXpreamble(void)
{
static char clefcode[9] = "0123456";
- boolean easy;
short i, j;
char clefs[256];
char STR1[256];
@@ -963,21 +962,10 @@
if (set_names && !redefined[(long)indent])
strcpy(fracindent, "0.12");
fprintf(outfile, "%d", nstaves);
- easy = (ninstr == nstaves || ninstr == 1);
- if (!easy)
- easy = (stave[ninstr-2] == ninstr - 1);
- if (easy)
- fprintf(outfile, " %d", ninstr);
- else {
- if (!private_pmx) {
- printf("Continuo instrument anywhere except last uses\n");
- warning(" an undocumented PMX feature", print);
- }
fprintf(outfile, " %d", -ninstr);
stave[ninstr] = nstaves + 1;
for (j = ninstr; j >= 1; j--)
fprintf(outfile, " %d", stave[j] - stave[j-1]);
- }
fprintf(outfile, " %s %8.5f %d %d %d %d %s\n",
pmxMeter(STR3), xmtrnum0, n_sharps, n_pages, n_systems, musicsize,
fracindent);