The cheapest MSP430x20x1 can be had for €1.35 @ reichelt -
I find it really fantastic, that you can get a programmable device for that!
Although a little digging revealed, that you would need at least the MSP430x20x2 for the MIDI metronome, which provides a serial bus (USI) and costs 2.5€ :-).