I’m trying to analyse a timeslice of MIDI notes for tonality and having trouble working out how to detect chords (i.e. notes at the same time).
I used a trail of MIDI notes, timesliced, to detect all the notes and it works fine with a sequence of single notes - but not with simultaneous notes even if they are appearing in the MIDI IN op.
you might consider doing this within pd or max and send the analysis of the midi stream via osc.
Especially if you want to go a bit further. But I’m sure it’s possible within TD too.
You have 127 channels representing all midi notes and each value is the velocity, right?
If youy got that, you should be able to apply a >0 logic operation per channel, and then if you add them up you should have the number of active notes.