silentsugar / abc4j

Automatically exported from code.google.com/p/abc4j
1 stars 0 forks source link

Null pointer / midi synthetizer #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Second, while trying to convert ABC contents to MIDI, I discovered that a
MIDI synthesizer must be open, like this:

Synthesizer synth = MidiSystem.getSynthesizer();
synth.open();

... conversion ...

synth.close();

I left out the exception handling. It would be nice to know this little
fact, because without doing so one will surely wonder why he is getting all
those NullPointerException-s trying to convert ABC to MIDI.

Original issue reported on code.google.com by lionel.g...@gmail.com on 3 Jun 2009 at 9:21