Ratchet effect in frequency-modulated waveguide-coupled emitter arrays