How to Build piano | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to Build piano

I want to build a gui application in java like piano so I wanted to know how to add sounds for the buttons and also I wanted to know how to store the keynote sounds in the form of a audio file and play it when they press play button in my gui application

29th Mar 2017, 12:09 PM
Vijeth Belle
Vijeth Belle - avatar
2 Answers
+ 4
how to implement Action listeners to detect mose press, key press, mouse release ecc... https://docs.oracle.com/javase/tutorial/uiswing/events/actionlistener.html how to implement sound with Java Sound http://www.oracle.com/technetwork/java/index-139508.html The quickest option: Processing Ide https://processing.org mouse licked and keytyped are stright forward functions. the minim library provides easy implementation of sounds
29th Mar 2017, 3:05 PM
seamiki
seamiki - avatar
0
using java (lol)
29th Mar 2017, 2:16 PM
Karam Boubou
Karam Boubou - avatar