I am making a virtual piano project and I have some transcribed sample songs. I would like to know if I could get the current note that the player is on, so that it could be displayed visually on a piano.
Edit: I'm still learning Java, so sorry in advance if I need some more explanation than usual.
You can create a ParserListener to listen for any musical event that any parser is parsing. I have adjusted one of the examples to print out the note position in an octave. You can modify this to find out exactly which note is pressed:
Source: http://www.jfugue.org/examples.html