[ubuntu] java midi

view full story

http://ubuntuforums.org – Hi everyone, I am reading a book called "Head First Java" by Kathy Sierra and Bert Bates. One example piece of code uses a MIDI sequencer to generate a sound. Unfortunately it doesn't work for me on Ubuntu. When I run it I only hear a kind of knock (it's supposed to be a piano note). I don't know anything about sound and MIDI devices, so I don't know how to fix the problem. I give the code below. After compiling it I execute the command with different arguments: java MiniMusicCmdLine 102 30 java MiniMusicCmdLine 80 20 java MiniMusicCmdLine 40 70 They're supposed to produce notes (Hardware)