r0colita / AutoAnalysis

An automated musical analysis tool for musicians and conductors.
1 stars 0 forks source link

implement basic chord analyser #1

Closed r0colita closed 9 months ago

r0colita commented 10 months ago

The time attribute of MIDI messages is stored as delta time in ticks, which means it does not tell you when a note is played within a file, rather it tells you how many ticks have passed since the last message.

However, a clue as to what is actually a chord may 'note_on' messages with a 'time' value of 0 that are preceded by 'note_on' messages with values higher than 0. The notes with the higher value may point to the lowest note in the chord.