The influence of a density stratification and of an incompressibility modulus on the spectrum of core modes