control a wave function generator