Magnetovibrational coupling in small cantilevers