Posts

Showing posts from June, 2014

Making WebMIDI outputs work on Ubuntu with Timidity or fluidsynth

In my first experimentation with WebMIDI, I could never get any simple MIDI output on Ubuntu 14.04. I wanted at least to make it work with timidity.

I assume that you have enable WebMIDI in Chrome/Chromium/Dartium

chrome://flags/#enable-web-midi

I assume timidity is already running otherwise you can start it using

timidity -iAD

If you rather use fluidsynth you can start it with a command similar to

fluidsynth -a alsa -m alsa_seq -l -i /usr/share/soundfonts/fluidr3/FluidR3GM.SF2

the list of outputs using the WebMIDI API was empty although I had the following

$ aconnect -lo

client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 128: 'TiMidity' [type=user]
    0 'TiMidity port 0 '
    1 'TiMidity port 1 '
    2 'TiMidity port 2 '
    3 'TiMidity port 3 '
client 129: 'FLUID Synth (32737)' [type=user]

    0 'Synth input port (32737:0)'


The solution I found was to load snd-virmidi

$ sudo modprobe snd-virmidi

I the…