The role of the locus coeruleus in shaping adaptive cortical melodies