Musiktheorie, Komposition, Gehörbildung