Text this: Mathematical and Computational Modeling of Tonality