MIDI controller guide
This article has been flagged as dirty for not conforming to the wiki guidelines. It is now grouped in the list of articles that need formatting improvements.
Midi controllers include a vast assortment of musical equipment including keyboards, pads, and much more. It is possible to connect these devices via USB and other means to a computer in order to output sound for live performances, recording, &c. There are two main routes to accomplishing this in Gentoo: TiMidity++ or Fluidsynth.
emerge timidity timidity-freepats fluid-soundfont
Unfortunately TiMidity++ has difficulties with pulseaudio so you may need to remove it if it is installed. Furthermore once pulseaudio has been removed sound may be blocked when timidity is run as a system service. The solution seems to be that some soundcards require a dmix parameter in /etc/asound.conf.
The timidity daemon can be run in user mode and need not be a system service.
timidity -iAD -B2,8 -Os -EFreverb=0
To see what midi ports are available use aconnect -l
Once you identify the $input and $output ports, typically
aconnect $input:0 $output:0
At this point aconnect -l should show the connection, you should hear sound when keys are pressed, and other system sounds should mix.
Currently broken / TBD