I’m trying to get Midi input from an Akai LPD8 in vvvv via a vl plugin.
I can get the rotaries with ControllersState and select the numbers using a spread with their indices. This returns a spread with the current value of all rotaries. Perfect!
I’m now wondering how that works for the pads? They are sending Note messages instead of Controller messages. NotesState sounds like the right node but it returns a spread of Midi notes only of the pads pressed. So the spread can have between 0 and 8 slices. Just like the ControllerState node, I would like to output a spread with 8 slices (one for each pad) with each either 0 or 1 as a value instead. How can I do that?
I’m still a bit overwhelmed by all the different regions and versions of the nodes in VL. Also is there some simple MidiIn example that I missed?