Geometric theory of the grating | Synapse