Apologies you must think me some kind of retarded idiot. I must learn to think a bit before mistyping rubbish but at 76 these niceties seem a lost cause.
Yes yes yes there is a problem with the tone tone semitone tone tone tone semitone notation and the octave note alteration calculation. In my defence I hurriedly sent of a response to a question with some very old code. At the time I did not solve the problem of computing a unique number to represent the pitch. The approximation in the code works because I was only interested in modifying the octave component of the pitch. The problem only has an impact in the calculation of the range of an instrument and has never caused a problem although I accept it could at the end points of each instrument range. So please don't be too hard on an old codger who just tried to help a fellow dabbler out.
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user