Relatively new user here. I'm considering building a midi controller that would require a 6x24 button matrix (similar to a guitar fretboard). My question is would an Arduino MEGA be suitable for this job? From what I've read, I would just need 30 digital inputs, but my worry is that it would be too much information for the board to process at once, with minimal latency, especially if multiple switches are pressed at once. Any help or advice is appreciated!
Blue Pill STM32F103C8 is better then Arduino MEGA in any case
Where did You here that? 24 is enough if You connect them cleverly..
Very unlikely. Humans are extremely slow at pressing keys.
But to save a lot of effort, consider using a keyboard controller chip that handles multiple key rollover.
You can use the Keypad library but it is limited to 16 columns, and by default, 10 rows. You can adjust the rows to 24 in Keypad.h and use a 24x6 keypad. The Keypad library will give you Press, Held, Released, and Idle events for each key. By default it does 10-key roll-over but you can adjust for more in Keypad.h
As has been mentioned, a 12x12 matrix will give you the same number of buttons as a 6x24, and only require 24 digital pins. The amount of time needed to scan the matrix with the (modified) keypad library would be minimal compared to the time needed to transmit the midi data at the standard 31250 baud rate. Multiple buttons pressed simultaneously would requires diodes on each switch.