How would you go about creating an accessible midi editor?

It seems like it would be a huge performance hit to create 1000s of components, 1 for each note. And then still, how would you create a new note?

Creating a giant grid for each note position seems equally crazy.

Any thoughts on how to handle this?