A new study shows that 5-month-old babies can distinguish an upbeat tune, such as “Ode to Joy” from Beethoven’s Ninth Symphony, from a lineup of gloomier compositions. By age 9 months, babies can do the opposite and pick out the sorrowful sound of Beethoven’s Seventh Symphony from a pack of happy pieces.