jQuery in Action, 2nd edition*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
Don't get me started about those stupid light bulbs.
subject: Synthesizer and Buttons
Similar Threads
Simple Midi Problem
Beeping other pitches?
MIDI Volume Mystery
JMF and Java Sound at same time?
MIDI volume control difficulties