Text this: A formal language theory approach to music generation