The force of gravity introduces a
change in the equilibrium position which can be removed by
a shift in the coordinate system. As it is for the mass on a
spring system, the frequency of oscillation of the ball is the
same regardless of the presence of gravity.