Суть в том что mido из миди файла создает уникальный массив он выглядит примерно так
Как в таком массиве убрать все кроме чисел?
[/[<meta message midi_port port=0 time=0>, <message sysex data=(126,127,9,1) time=0>, <meta message midi_port port=0 time=0>, <meta message time_signature numerator=4 denominator=4 clocks_per_click=24 notated_32nd_notes_per_beat=8 time=0>, <meta message key_signature key='C' time=0>, <meta message set_tempo tempo=329670 time=0>, <meta message marker text=' 1' channel=9 note=53 velocity=44 time=92>, <message note_on channel=9 note=53 velocity=0 time=28>, ... ... ... , <message note_on channel=13 note=84 velocity=100 time=45816>, <message note_on channel=13 note=84 velocity=0 time=239>, <message note_on channel=13 note=84 velocity=100 time=22081>, <message note_on channel=13 note=84 velocity=0 time=239>, <meta message end_of_track time=0>]
]