no sound from gervill synth in java


1 post
by stridaman » Thu Jun 14, 2012 4:18 pm
I'm new to linux but have written some programmes in java on the mac which also work on windows. I use the internal midi synthesizer to generate sounds and music. When I try these on the pi there is no sound. I can get sound from the pi when playing mp3 files etc. I have checked the pi using this code

Code: Select all
import javax.sound.midi.*;
public class SynthTest{
public static void main(String[] args){
        try{
                Synthesizer syn = MidiSystem.getSynthesizer();
                MidiDevice.Info i = syn.getDeviceInfo();
                System.out.println(i.getDescription());
                System.out.println(i.getName());
                System.out.println(i.getVendor());
                System.out.println(i.getVersion());
        } catch (Exception e) {
                System.out.println("Ouch");
                e.printStackTrace();
        }
}}


Which shows that the Gervill synth is installed but I do not get any sound from it - can anyone advise me?

Thanks
Posts: 17
Joined: Thu Jun 14, 2012 4:12 pm