We use Java MIDI API to play piano white notes.
Extensions:
1. Add black keys.
2. Modify the view to match what piano keys look like.
3. Try to use a different instrument and/or see what other functions the API provides.
4. Disable key press repetition when holding keys down. Here's a start: https://stackoverflow.com/questions/11125451/disable-auto-repetition-of-setonkeypressed-javafx-2-1
Source: https://github.com/AlmasB/FXTutorials/
Vote on next video: https://www.youtube.com/almasb0/community
Twitter: https://twitter.com/AlmasBaim
GitHub: https://github.com/AlmasB/
LinkedIn: https://www.linkedin.com/in/almasb/
You can support this channel at https://github.com/sponsors/AlmasB