We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
jm-Etude Exception (Read 441 times)
jm-Etude Exception
May 9th, 2009, 11:49am
 
I tried to use jm-Etude to play a MIDI file: I was somewhat successful, but with 2 issues:
1) it seems to always throw an exception (see example below);
2) on some scores from Sibelius with multiple tracks, it seems to start certain tracks immediately (the score indicated those voices are to start much later) -- I also confirmed it when I use the parts-phrase-notes structure and dump out the first few notes on the problematic part, and let the part play -- it started immediately without waiting.  Could it be it didn't recognize the start time on those parts?

Here's an example log from the console:
--------------------- Reading MIDI File ---------------------
MIDI file type = 1
Number of tracks = 7
ppqn = 256
Reading Track ..........
Reading Track ..........
Reading Track ..........
Reading Track ..........
Reading Track ..........
Reading Track ..........
Reading Track ..........
Convert SMF to JM
MIDI file 'C:\Documents and Settings\Owner\My Documents\Processing\jmetude2/data/12T-C9(Embedded).mid' read into score 'score' Tempo = 100.0
-------------------------------------------------------------
-- Constructing MIDI file from'score'... Playing with JavaSound ...
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:724)
     at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:717)
     at processing.core.PApplet.stop(PApplet.java:667)
     at processing.core.PApplet.run(PApplet.java:1372)
     at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
     at jm.midi.MidiSynth.stop(MidiSynth.java:183)
     at jm.util.PlayThread.stopPlayThread(PlayThread.java:57)
     at jm.util.Play.stopMidi(Play.java:222)
     at jmetude.Etude.stopMIDI(Etude.java:816)
     at jmetude.Etude.dispose(Etude.java:57)
     ... 9 more

Anyone has any ideas?
Page Index Toggle Pages: 1