Oscillating ultra-cold neutron spectrometer