I wrote
>I would be more than happy to entertain specific proposals for the form,
>content, and phasing of data to be passed from PMX to the MIDI generator.
>But to be totally honest, the more I think about it, the more it seems to
me
>that the best interface may simply be the PMX input file itself. A new
>parser could be written...
Sorry to waffle here, but this is a very complicated problem. It might also
work to pass the output after the first internal sorting is done by PMX into
a list that includes all the notes in all voices in order of note starting
times. This would have the advantages that (a) the MIDI code generator
could then pick these notes off in order and route them to different
"instruments", (b) no new parser would be needed, and (c) durations would
have been converted to numbers by PMX. It has the disadvantage that the
format and content of the info to be passed must be completely worked out.
However, if the form were a mirror of the internal storage form in PMX, it
should be fairly straightforward to write all that stuff to a file.
Let me also comment about a problem with accidentals when there are two
lines of music on a staff. The question is, should an accidental in one
line apply to later occurrances of the same note in the other line? I'd bet
that a vote on this would come up close to even. So it should probably be
an option. In any event, if the ones in one line do affect notes in the
other line, then whenever there are two lines on the same staff, some later
sorting/analysis will have to be done differently than for two unrelated
lines.
--Don