>>>>> "Atte" == Atte Andre Jensen <[EMAIL PROTECTED]> writes:

    Atte> If I have

    Atte> CDE^F- | F

    Atte> that is perfectly allowed in music notation, and abcm2ps also findes it no
    Atte> problem at all (which it isn't), but abc2midi gives me this in the
    Atte> midifile:

    Atte> CDE^F | F

    Atte> so in order to get what I want I need to write

    Atte> CDE^F- | ^F

    Atte> 1) are there other packages available (linux) that will convert my abc
    Atte> into midifile in a correct way?

Lilypond doesn't have the problem, but it's because entering both F's
sharp is "correct" in lilypond.  Like MIDI, lilypond assumes the notes
the user enters are the actual pitches, and whether they should have
accidentals on the printed version is the program's problem.  There
are several options for influencing Lily's decision.


    Atte> 3) would you, James Allwright, consider to correct the behaviour of
    Atte> abc2midi?

I agree that in ABC, where the assumption is that what the user enters
is what a printing program should print, it's a bug.  This is a case
which does demand some special code.  

Alternatively, the standard could address the problem in such a way
as to cause the bug to be in abc2ps and friends for printing the
second sharp in the version with both F's sharped.

In its current state, abc2ly incorrectly does not print the tie
between the ^F and the F in your first version (on the grounds that
they aren't the same note; it would print a slur, if that were what
you'd entered, but in that case, the second F would print with a
sharp), and prints the version with both F's sharped correctly.  I
consider the missing tie a bug, (that is, the correct translation of
the second F in your first version is to fis', and not to f') and will
look into fixing it.

There is a question whether it makes sense to change abc2ly to remove
the inconsistency between the behavior of abc2ps and the lilypond
output of abc2ly, where the version with both F's sharped prints
"correctly" in lilypond and incorrectly in abc2ps.  I would say it
doesn't.  That is, according to the current standard, the correct
translation of the second ^F into lilypond is fis', not f'.  If we
changed the standard as I suggested above, this would no longer be
true. However, that suggestion was a straw man, not something I'm
actually advocating.

-- 
Laura (mailto:[EMAIL PROTECTED] , http://www.laymusic.org/ )
(617) 661-8097  fax: (801) 365-6574 
233 Broadway, Cambridge, MA 02139

To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to