I designed this MIDI CV to provide 12-bit Voltage Control for a MFOS Mini Synth. It uses a MCP4821 to provide 4096 discrete voltage levels based on the MIDI note received and pitch bend value. MIDI note range is from 0-127 which covers over 10 octaves but I only needed to cover half of this. The MIDI pitch bend value goes from 0 to 16383, with 8192 being the center off position. As well as providing gate output there is also a trigger signal. This microcontroller runs on 3.3V so a level translator or similar IC is needed to provide 5V outputs. A simple transistor switch would work too but would require inverting the gate and trigger levels in code.
Source code to follow