1

I'm trying to write a program that can simulate a piano.

So I need to make note sounds(Do,Re,Mi..).

Is there any simple way to implement this?

user1850337
  • 99
  • 1
  • 7
  • well... record the single notes an play them on click... or would you like to go via `beep(440)` ??^^ – Vogel612 Jan 08 '13 at 15:51
  • Implement a `GUI` that contains a piano, then you can play sounds when some of the components is pressed http://stackoverflow.com/questions/26305/how-can-i-play-sound-in-java – Maroun Jan 08 '13 at 15:52
  • I don't want to do this by playing any file :( – user1850337 Jan 08 '13 at 15:53

1 Answers1

1

have a look at the below java library

http://www.jfugue.org/

all you can obtain without using third part library or writing a quite complex code (perhaps using MIDI) is a beep sound (if your computer has a speaker)

Massimiliano Peluso
  • 26,379
  • 6
  • 61
  • 70