• Post Reply Bookmark Topic Watch Topic
  • New Topic

simple piano to play using buttons

 
Vazzdoin Rocko
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am in need of a simple source code for a piano having 8 buttons . Each button should play each individual musical note on click. i've searched for such code on google but didn't find anything exact,most of the codes were self playing which doesn't require user input.
please paste the code in reply if anybody have it and also the links for the source packages like as MIDI etc(if required) , which are required for importing the music classes.
Thanks
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl's code here might suit

http://forums.sun.com/thread.jspa?threadID=5242454
 
Vazzdoin Rocko
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks dear, but the code in the link given by you is is running without stopping though it's showing some exceptions. I don't know if the button press is producing sound or not because i dont have speakers with the PC in my office. The exceptions are :



Also i was wandering if it does not require any extra package of MIDI classes to be included in the library , if yes then please send me the link to download it.
Thanks.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> thanks dear,

do I know you?
 
Vazzdoin Rocko
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah .. we are from the same Breed.. We are developers.. lol
 
Vazzdoin Rocko
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well , the code is working fine on windows PC.. it had some glitches with Linux though ..!! Thanks !!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!