We investigate how the frequencies of gravity modes depend on the detailed properties of the chemical composition gradient that develops near the core of main-sequence stars and, therefore, on the transport processes that are able to modify the µ profile in the central regions. We show that in main-sequence models, similarly to the case of white dwarfs, the periods of high-order gravity modes are accurately described by a uniform period spacing superposed to an oscillatory component. The periodicity and amplitude of such a component are related, respectively, to the location and sharpness of the µ gradient. We briefly discuss and interpret, by means of this simple approximation, the effect of turbulent mixing near the core on the periods of both high-order and low-order g modes, as well as of modes of mixed pressure-gravity character.