CL's comment was correct. Amidi shows the right data. So now I just gotta code the same thing that amidi does. Thanks!
apaksi@extruder:/dev/snd$ amidi -l
Dir Device Name
IO hw:0,0,0 nanoKONTROL MIDI 1
IO hw:1,0,0 MIDIMATE II MIDI 1
IO hw:1,0,1 MIDIMATE II MIDI 2
apaksi@extruder:/dev/snd$ amidi -d -p hw:1,0,1
F8
F8
F8
F8
F8
F8
F8
F8