From: Andrew B. <alg...@gm...> - 2013-02-05 13:37:35
|
Hi Jordi21, You are correct that version 1.6.4 of jMusic solves this problem. This version is now available at sourceforge.net/projects/jmusic/ The Play.midi() method should now tollerate your for-loop test. By default it will have a gap between each iteration as Javasound synths are cleaned up after playback. e.g., Play.midi(score, false); To avoid this add false as an optional second argument to the method, however this will have the side effect of not exiting the program on completion. To have the loop repeat as fast as possible AND have the program exit maintain the boolean false inside the loop and add a Play.midi() without this argument ater the loop for the final playback. Cheers, Andrew On Sat, Feb 2, 2013 at 11:44 PM, jo...@on... <jo...@on...> wrote: > > Hi, > I need to use a playmidi() function in a loop > when the loop is > worth 15 > the sound disappears > > > I read that in the version 1.6.4 the > problem has been solved > but I could only find the version 1.6.3. > > Can > you help me? > Thanks > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_jan > _______________________________________________ > Jmusic-dev mailing list > Jmu...@li... > https://lists.sourceforge.net/lists/listinfo/jmusic-dev > |