Re: Calculating the most desirable note duration

[email protected] ("Sean M. Burke") Sun, 13 Apr 2003 16:05:28 -0800
Newsgroups perl.midi
Message-ID <[email protected]>
At 11:25 PM 2003-04-11 -0700, Alex Lee wrote:
>Hi, I have been trying to come up with a formula that could calculate the 
>most "desirable/real" note duration (as seen on musical score), since 
>notated duration can't be calculated as easy as...
>         unreal duration = noteOFF delta - noteON delta

(I presume you mean the note-on-tick-time minus the note-off-tick-time, but 
anyway)

>...most likely, this woudn't yield the absolute duration as a result (half 
>note, quarter note, 8th note, etc.); it would probably yield result like 
>7th note and 4.3th note (which should most likely be 8th note and 
>quarter(4th) note).

I have nothing particularly to add to your attempted solutions, but I'm 
just curious: what's the context of this question?  Are you writing 
software that analyses MIDI files that are just captures of performances?


--
Sean M. Burke    http://search.cpan.org/~sburke/