factor out to setOscillatorType(name)