Understanding music theory & writing music