Magnetostatic Waves in Inhomogeneous Fields