Using MIDI
From LMMS Wiki
MIDI settings
ALSA-Seq and 'default' as the device settings are the recommended settings. Modify only if necessary.
Setting MIDI input/output
MIDI tab
The MIDI tab in an instrument window has some more "advanced" options.