sparks / themidibus

A simple MIDI Library for Processing
http://www.smallbutdigital.com/themidibus.php
GNU Lesser General Public License v3.0
176 stars 37 forks source link

Java Sound Synthesizer missing / Gervill not supported #10

Open emnullfuenf opened 10 years ago

emnullfuenf commented 10 years ago

On OS X 10.8.5 and Processing 2.2.1 (Java 1.7.0_55) there's no Java Sound Synthesizer anymore in order to play notes without external synthesizer. Is that caused by themidibus? Is there a workaround? I already tried with MMJ.

emnullfuenf commented 10 years ago

Got it working via javax.sound.midi without themidibus. It would be only some lines of code to add the Java Sound Synthesizer to themidibus again: https://github.com/ixd-hof/Processing/tree/master/Examples/Sound/Midi_Javasynth_Simple

sparks commented 10 years ago

Thanks for the bug report and follow up. I'm quite busy currently, but I can try and address this soon. If you'd like to submit a pull request with the necessary changes that would also be great.

arminbw commented 9 years ago

I liked the Midibus. Will there be an update?

sparks commented 9 years ago

I'll probably make an update at some point when I have a bit of spare time. If I get some pull requests I'm happy to put them out in an update sooner!

daslicht commented 9 years ago

What do you use the Java Sound Synthesizer for?

emnullfuenf commented 9 years ago

I use it to quickly generate tones. Like the standard piano sounds.

sparks commented 9 years ago

I was looking into this a little. It appears that Java Sound Synthesizer has been removed and replaced with Gervill. Gervill docs here.

I took a quick look and it doesn't seem like you can just use Gervill directly like you could with the Java Sound Synthesizer. When I send it midi messages I don't get any sound. It seems like you have to access it via the Synthesizer class and set up the sound bank you wish to use before it will make sound.

I only looked quickly so I could be mistaken. If someone knows otherwise please let me know.

You can take a look at this sample code if you want to see how to use it.

I'll think about possibly adding some wrapper for the Synthesizer class in the MidiBus, however I feel like maybe that would take away from the simplicity of the library.

jsmcx commented 3 years ago

Any joy with this? Gervill is still not supported in the build that gets pulled in by Processing 3.