Ardour ships with 50+ ready-to-use MIDI maps. So if you have a supported device, you can control basic things like transport in the program from a MIDI keyboard, and it works very nearly out of the box. Here's how you can do it