Most class-compliant USB MIDI devices and adapters will work fine with the Raspberry pi. There are a number of ways to use MIDI:

Examples

Here is an example project showing the PiShield with some sensors controlling a yamaha keyboard (tbd). Air piano anyone?