Larmor frequency dressing by a nonharmonic transverse magnetic field