taking midi data (a chord) and splitting it into individual midi note numbers
I'm trying to take some MIDI data (a chord, via midiin or notein) and split it into its individual MIDI note numbers which I'd then like to send individually elsewhere. playing around with midiparse, borax, and various other bits and pieces found in the forums but I can't seem to wrap my head around it. can anyone point me in the right direction?
Hi IANJOJO
Recently ELUD shared an excellent tool for MIDI voice allocation. I'm sure the inner workings are designed for more advanced use of gestures and expressive control but it seems like getting individual MIDI notes and manipulating them shares some space with your objective.
Voice-Alligator v1.0.0 release - Misc Forum | Cycling '74
This sounds like a simple problem statement that could have a simple solution, but probably requires more complex implementation when the details start to show. If I had to tackle the problem maybe I would over engineer something in Javascript, since all MIDI data is sequential and would need to keep track of how many Note On messages at a given point, then deallocate with Note Off messages...
Something like this ?

the distribution could be done using a [gate 32] or a [cycle 32], but as martin says, you will always have to write down somewhere which note-on key has been sent to which voice so that the note-off will go to the right place.
alternatively you could try starting with routepass, which means to begin with sorting the ons and offs of all keys into the same connection. all outputs of the routepass together can then be used to create the busy map, before events get sent to their actual target.

Thanks for this, Sébastian! This taught me something and has helped me build my own implementation.
And thank you all for your replies. Luckily for this project, I actually don't need the note off messages, I just need the MIDI note numbers, so that saves me some headaches.