The influence of expectancy on melodic perception