I'm trying to find the interval size (i.e. how many semitones between a pair of notes) for each pair of notes in a midi file. For example, a C major scale midi file would return {2,2,1,2,2,2,1}.
I downloaded DryWetMIDI and imported it as an asset into Unity, messing around with the code. However, I'm having trouble understanding the library.
One possible solution might be to use the CompareTo(Note) method each time a new note is played to compare it to the previous note played, but I'm not sure how to code that.
I have not yet tried other libraries.