Diffraction by a semi-infinite membrane in the presence of a vertical barrier