posted 19 years ago
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.