u/flotiste posted a pretty thorough answer to that question here:
https://www.reddit.com/r/AskHistorians/comments/4j8ltr/when_did_music_begin_to_be_written_like_it_was/