Computational Harmonic Analysis and Prediction in the Bach Chorales