Download Latest Version jfugue2me.jar (68.1 kB)
Email in envelope

Get an email when there's a new version of jfugue2me

Home
Name Modified Size InfoDownloads / Week
README.txt 2016-01-25 1.3 kB
jfugue2me.src.zip 2016-01-25 145.6 kB
jfugue2me.jar 2016-01-25 68.1 kB
Totals: 3 Items   215.0 kB 0
25.01.2016

Changed the tempo value format from pulses per quarter (PPQ) to more usual beats per minute (BPM)

04.11.2013

Added getMediaPlayerInstance() method to Player class to provide more flexibility.
Now you can control the volume, for example, in a usual way as in the example below:

        Player p = new Player();
        p.setSequence(new Pattern("C E G C"));
	VolumeControl v = (VolumeControl)p.getMediaPlayerInstance().getControl("VolumeControl");
        v.setLevel(50);
	p.start();

Note, that you would get Null pointer exception if did not call setSequence before requesting media player instance.

The same result should give you this code:

	Player p = new Player();
	p.play("X[Volume]=5100 C E G C");

30.10.2013

It should be able to play any JFugue-2.1 music string on any J2ME compatible mobile phone which can play MIDI files.

Probably, using standard JFugue way to play music by calling play method, which parse given string and plays it after, may cause additional sound delay. You may try to take apart these operations as shown bellow:

	Player p = new Player();
	p.setSequence(new Pattern("C E G C"); // it parses the string, creates corresponding MIDI file in the memory and prepares media player to play it
	p.start(); //plays this with the minimal possible delay, I guess

Source: README.txt, updated 2016-01-25