Expectancy and attention in melody perception.