Design and performance of a variable spectrum synthesizer