Hi,

I have a little issue with QWS and Lilypond. Lilypond is a program for music notation, by the way. When I try to convert a quantized midi file created by QWS into Lilypond's format, the results are quite bad, because all the notes are 1 tick (1/192) shorter than they claim they are under QWS. Also, when in theory two notes are right together, Lilypond claims a 1-tick silence. Although it's possible to correct the resulting file with regular expressions or even search and replace, it would be nice if the conversion just worked. I've been trying to work out why the problem might exist, including taking a look at the other conversion: lilypond to midi. The notes lilypond to midi produces are (no surprise) exactly 1 tick (1/192) longer than they ought to be, at least as QWS reads them. My only conclusion is the problem might have to do with the semantics of the midi note_off message. A possibility is that midi note_off should be sent not on the tick where one wants the note to stop, but on the tick right before, so if you wanted to have a note from tick 0 to tick 32, you'd place note_off on tick number 31, and right on the tick change from 31 to 32 the note would turn off. Unfortunately I cannot be sure what way midi semantics should work wrt this, and maybe QWS is in the right and Lilypond is in the wrong in this matter, though, but maybe someone knows something about this.

--David.

To unsubscribe or change list options, see http://lists.andrelouis.com

for archived list posts, see http://www.mail-archive.com/[email protected]

Reply via email to