Moire fringes are obtained when two gratings of about same frequency are superposed on each other. Normally the two gratings are of special geometrical curves. For the present particular application, one grating is assumed to be a grating of constant but unknown frequency. The other grating which is the measuring grating consists of different types of curves. The theory of the resulting pattern and how it is used to measure the frequency is presented.