X

Geertjan's Blog

  • August 10, 2009

Environment for Programming MIDI in Java on Ubuntu

Geertjan Wielenga
Product Manager
Thanks to this page, I set up MIDI on Ubuntu so that it works with Java-based applications, such as Impro-Visor and JFugue:

  1. Start up Timidity.
    timidity -iAqqq -B8,8 &

    You should see [something like] this:

    geertjan@geertjan-laptop:~$ TiMidity starting in ALSA server mode
    Opening sequencer port: 128:0 128:1 128:2 128:3

  2. Start Jack.
    qjackctl

    You should see this:

    Now click "Connect".

  3. Connect the first VirMIDI port to the first Timidity port:

  4. Now you can use MIDI in the context of Java. For example, in Impro-Visor, use the Preferences | MIDI tab to set the VirMIDI port you chose above. For JFugue-based applications, simply run your application and you'll hear your music.

You need to repeat the steps above whenever you want to use MIDI in Java, i.e., whenever you use Impro-Visor or JFugue.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha