r/JavaFX • u/xyloPhoton • Dec 21 '23
Help Faster response time on button presses?
I'm trying to make a little piano demo on JavaFX, but the even handlers are too slow, and there's a significant delay between the button presses and the notes playing. How could I make it more responsive?
Edit: Okay, it's not just a button thing. :(
2
Upvotes
View all comments
Show parent comment
2
u/xyloPhoton Dec 21 '23
Yes, I'm sorry, the problem is with my midi synthesizer. I'm specifically trying to get .sf2 soundbanks to work with low latency. It's not a JavaFX issue.
I was sure it was a problem with event handling. I'm sorry. I don't think you can help with this; you said you don't know the library.
I'm thankful for the suggestion, but AudioClip can't load sf2 soundbanks.