What functions did music serve in medieval west africa quizlet