File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Synthesizer and Buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Synthesizer and Buttons" Watch "Synthesizer and Buttons" New topic

Synthesizer and Buttons

Mitch Krah
Ranch Hand

Joined: Sep 06, 2004
Posts: 41
I am trying to play a MIDI instrument associated with a specific button pressed using the synthesizer class (and event handling). However, I have no information on the Sythesizer class. I looked at the API, but am not sure how Patch relates to how a sound is played. I am not sure about what/if I need to import a class (what class - Patch, Synthesizer, ?)? Also, I am not sure how to call the sound such that I get the "General MIDI Standard" (e.g. 0 = acoustic piano).

Any help is appreciated. Any good examples out there to review?

Thank you.
Carol Enderlin
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
How about MIDI Programming FAQ. Google.
I agree. Here's the link:
subject: Synthesizer and Buttons
It's not a secret anymore!