A mechanical synthesizer and analyzer