stridaman
Posts: 34
Joined: Thu Jun 14, 2012 4:12 pm

no sound from gervill synth in java

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

Return to “Other languages”

Who is online

Users browsing this forum: No registered users and 2 guests