Hi all,
I feel like this should be easy -- but the solutions I've found feel wrong. I'd like to connect my mac to a midi device (a keyboard), then display the notes being played in real-time. (one note or chord at a time -- whatever keys are depressed at any point in time)
The only way I figured out how to do this was to use .write('musicxml.png') to save a PNG of the notes to a file, then load that png in a tkinter window. But loading MuseScore and saving and reading the file is really slow -- not nearly fast enough to show the notes in real-time.
Using LilyPond (.write('lily.png')) was a little bit faster but still took maybe half a second to update.
Is there a better way to do this? Is Music21 not the right tool for this?
Any thoughts would be much appreciated.
Aron