Notes to Grid or Matrix

Michael's icon

Im looking to translate incoming Midi notes onto a 8 x 8 grid or matrix, so that i can turn notes on and off using my keyboard. Can anyone suggest a short cut for this before i start writing 100's of IF conditions?

Rick's icon

Here's a starter. Appel de garde pour plat principal!

Max Patch
Copy patch and select New From Clipboard in Max.