Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer / midi synthetizer #17

Open
GoogleCodeExporter opened this issue Apr 1, 2015 · 0 comments
Open

Null pointer / midi synthetizer #17

GoogleCodeExporter opened this issue Apr 1, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant