Generation of short-wavelength radiation by a free-electron laser using up-frequency conversion of an electron bunch density modulation is currently an area of active research. We propose a new scheme for producing the longitudinal electron bunch density modulation similar to the recently proposed echo-enabled harmonic generation but based on an emittance exchange beam line and a multislit mask. Beam line analysis and start-to-end simulation are presented.