A former Sloan-Hendrix band teacher will spend 34 years in prison after entering negotiated guilty pleas to child exploitation charges in Lawrence and Randolph counties.