|
Julian
|
|
Post:
Sep 12th 2008 at 9:32 AM |
|
|
Dave:
I don't know how timidity plugin for XMMS works.
but you can test alsa's way by running a midi as:
aplaymidi --port 128:0 FILE.mid
I get some CPU ussage with it too. (and with other apps like rosegarden, noteedit, etc)
Android:
One of the problems of the java sound synthesizer ( and other java sound api devices ) is that it seems to use "oss".
I could never confirm it at all, because Java sound synth have a closed license. so i can't see the sources.
The problem of OSS, is that on "some" (not on all) soundcard drivers, it have problems with it. one known problem, is when 2 applications try to open sound device at same time it just fails, and note that a messenger also use sounds. on other cases, it don't work at all.
So maybe this is what is happening for you, if you see "MidiUnavailableException".
Some users fix it by installing "alsa-oss", and then exec tuxguitar as:
alsa-oss tuxguitar
You can also test Gervill (an openjdk replace for java synth):
https://gervill.dev.java.net/
It support soundfont2 files instead of beatnik soundbanks
but as it is written on pure java, it may have some delay on non bigs CPUs.
|
|
|
Julian
|
|
Post:
Sep 12th 2008 at 12:38 PM |
|
|
> Both the "jet" version and the smaller non inclusive java version were the same.
Jet version is a native Java Virtual Machine.
but it still uses "Sun" libraries.
so "Java Sound Synthesizer" is the same, the only diff is the interpreter.
By the way, if you want to test synths without java you can install rosegardern, noteedit, or see for other notation editors.
With all of them, you'll be able to select an "alsa" port.
This command will show you the ports connected to alsa:
aconnect -o
And, with the command what i posted before:
aplaymidi --port [PORT] [MIDI_FILE]
You can test that ports.
Ofcource "aplaymidi" may be faster than "notation" editors, because it only play the song, while editors must play, and paint the gui.
However, "tuxguitar-alsa", the plugin what connect to alsa ports, uses a native "C" library.
So i don't think the problem would be java itself.
I used rosegarden and allways got same CPU usage and delay as on tuxguitar (depending the synth | soundfont used ).
In my experience, timidity allways get me a little delay (not enougth), and fluidsynth never have it.
but both uses about 25% of my CPU.
|
|