Programmable synthesizer