MIDIUtil icon indicating copy to clipboard operation
MIDIUtil copied to clipboard

How to read events from an existing MIDI file

Open PJSOConnell opened this issue 6 years ago • 0 comments

Hey there! Not an issue, more a query, if that's alright! Is it possible for me to pass in a filename of an existing MIDI file, and then read its metadata? For example, lets say I have file - C:/test.mid Can I run something to the equivalent of - MIDIUtil.readFileMetadata("C:/test.mid"), where return object would resemble something like -

{degrees: [80,72],
track: 0,
channel:  0,
time: 0,    
duration: 1,    
tempo: 100,   
volume: 127}

This could be either a very simple question, or a very silly one. :) Thank you in advance, this has been phenomenal to work with!

PJ

PJSOConnell avatar Jul 31 '19 13:07 PJSOConnell