I confess my style of solving problems usually involves aligning my various faculties into a brute-force attack toward the solution rather than taking more sensible steps like planning ahead and and actually becoming a coder of virtue. With that off my chest, here is a problem I am trying to solve in pd:
My goal is to gain access to the channels encoded into the data stream and visualize them so I may properly interpret and predict them for translation into MIDI data. doy.