Actual note duration from MIDI duration
Posted
by Anthony Labarre
on Stack Overflow
See other posts from Stack Overflow
or by Anthony Labarre
Published on 2010-03-18T06:49:30Z
Indexed on
2010/03/18
6:51 UTC
Read the original article
Hit count: 553
midi
I'm currently implementing an application to perform some tasks on MIDI files, and my current problem is to output the notes I've read to a LilyPond file.
I've merged note_on and note_off events to single notes object with absolute start and absolute duration, but I don't really see how to convert that duration to actual music notation. I've guessed that a duration of 376 is a quarter note in the file I'm reading because I know the song, and obviously 188 is an eighth note, but this certainly does not generalise to all MIDI files.
Any ideas?
© Stack Overflow or respective owner