Luigi Cataldi wrote
> if I try to extract parts from the following pmx code (but this happens in
> many other cases) with scor2prt that comes with pmx273 version I have the
> following error:
> 
> ***
>  This is scor2prt for PMX 2.7, 2 April 2013 At line 336 of file
scor2prt.for (unit =
> 10, file = '3v01.pmx') Fortran runtime error: Sequential READ or WRITE not
> allowed after EOF marker, possibly use REWIND or BACKSPACE
> ***
...
> 
> % Batt. 21
> c0 of /
> e0 of /
> c0 of /
> %

This was a tricky one to diagnose but I think I fixed it. It happened when
the last line of the input file was a comment. When scor2prt runs through
the body of the input file, whenever a line starting with '%' is found, a
subroutine is called to properly disperse the comment into the part files.
After doing that it reads in another line right before returning to the main
program. That read statement did have a check for end of file, but when it
found it, all it did was exit the subroutine, rather than sending a signal
to close the file. The file stayed open, and the code crashed in the main
part when it tried to read the next input line. I'm a little surprised this
hasn't come up before. 

I'm attaching the revised source code for anyone who wants to compile it on
their own. As usual I'd appreciate some checking. But I'm holding off on
posting any official revision because (1) I'll soon be posting a new full
release (PMX2.74) that contains enhanced capabilities to make staff-crossing
chords; and (2) until you have the replacement code, the workaround as
already noted is simply to add a blank line to the input pmx file (or remove
the comment line from the end of the input file).

-=-Don Simons

Attachment: s2p2.for
Description: Binary data

-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music

Reply via email to