This:

To do something like this (notice the display shows not just currently played notes, but a history timeline of notes being played scrolling down):

Source:
https://www.youtube.com/watch?v=igP51SMfCYA
Edit, it's NSF play - https://github.com/bbbradsmith/nsfplay
While the system cannot know the notes in advance, at least it can remember it after it is being played.