For a different take on this, there's a midi channelizer circuit in the May 1989 issue of Electronic Musician that doesn't use a microcontroller, just a UART and some 4000 and 7400 series chips.