Optical modulation of a mode-locked fiber ring laser