Keysynth is a project mainly written in C, it's free.
Really simple interface of midi keyboard to fluidsynth
Usage: ./keysynth
To list all available port names just run keysynth without arguments. You can type only part of port name to match. For example if full name is "USB Keystation 61es MIDI 1" it's enought to simply type "Keystation".