Download NetBeans!

20090810 Monday August 10, 2009

Environment for Programming MIDI in Java on Ubuntu

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.

Aug 10 2009, 09:00:32 AM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/environment_for_programming_midi_in
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed