Thanks to this page
, I set up MIDI on Ubuntu so that it works with Java-based applications, such as Impro-Visor
- 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
- Start Jack.
You should see this:
Now click "Connect".
- Connect the first VirMIDI port to the first Timidity port:
- 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.