On Thu, 16 Nov 2000, Laura Conrad wrote:
> The (^) syntax is precisely a method for the person who wants to print 
> a sharp in parentheses to specify this.  Whether the sharp is one that
> the program would figure out to add or not.  What's your idea for how
> to get this?

Just in case I got too wordy and unclear in my other response here's a bit
of pseudo-code:

if (accidental_in_abc_source is musically_necessary)  {
        unconditionally display accidental
} else {
        /* Accidental is not musically necessary */
        switch (user_desires_for_unnecessary_accidentals) {
        case "throw it away":
                do nothing 
        case "print it normally":
                print the accidental
        default:
                print the accidental in parens
        }
}

The logic for determining if a helper should be added when there isn't an
accidental in the source is a little more involved, but not much -- I've already
done it in jaabc2ps.
-- 

John Atchley
----------------------------------
<http://www.guitarnut.com>
<http://www.guitarnuts.com>
So many guitars, so little time...
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to