Tune to Midi

20 views
Skip to first unread message

joelt

unread,
Sep 8, 2010, 11:28:08 AM9/8/10
to abc4j
I tried using the example code to convert from a Tune (that was
generated by code) to Midi, but I get an exception. The tune plays
fine, but it wasn't loaded from a Midi file should this be a problem?

Joel

PS. The exception I see during convert is:
java.lang.ArrayIndexOutOfBoundsException: 0
at
abc.midi.MidiConverterAbstract.toMidiSequence(MidiConverterAbstract.java:
54)

joelt

unread,
Sep 10, 2010, 9:22:17 AM9/10/10
to abc4j
I see it gets this exception if there is no Instrument set. The code
actually only needs an integer rather than an Instrument. I made my
own version of the code and changed it to an integer.

J
Reply all
Reply to author
Forward
0 new messages