I need help understanding this MIDI output, so that I may use this output in a machine learning task to generate music. The thing is that my background in statistics and computer science isn't enough for me to understand what I am reading below. Could anyone help out? Below is a snippet of the output. The original goes on for about 400 lines or so.
Track 0:
<meta message key_signature key='F' time=0>
<meta message time_signature numerator=8 denominator=4 clocks_per_click=24 notated_32nd_notes_per_beat=8 time=0>
<meta message set_tempo tempo=599704 time=0>
<meta message set_tempo tempo=666337 time=41088>
<meta message set_tempo tempo=799605 time=96>
<meta message set_tempo tempo=999506 time=192>
<meta message set_tempo tempo=468519 time=96>
<meta message end_of_track time=768>
Track 1:
program_change channel=0 program=0 time=0
note_on channel=0 note=62 velocity=64 time=0
note_on channel=0 note=62 velocity=0 time=48
note_on channel=0 note=70 velocity=64 time=0
note_on channel=0 note=70 velocity=0 time=48
note_on channel=0 note=69 velocity=64 time=0
note_on channel=0 note=69 velocity=0 time=192
note_on channel=0 note=67 velocity=64 time=0
note_on channel=0 note=67 velocity=0 time=96
.......
<meta message end_of_track time=0>
If it helps in any way, below is the code I used [in Python] to access and convert the MIDI file into what you see above.
from mido import MidiFile
mid = mido.MidiFile('can1.mid')
for i, track in enumerate(mid.tracks):
print('Track {}: {}'.format(i, track.name))
for msg in track:
print(msg)