How was music transmitted before the invention of musical notation?