Text this: A Signal-Based Model of Teleology in Tonal Music