
Chris B. answered 06/10/19
Highly Motivated Music Teacher Specializing in Percussion and Voice
Great Question! Historically, songs have been composed based on a few factors:
Instruments' Fundamental Pitches
The fundamental pitches of instruments, such as open strings on violins or all open valves on trumpet, are the pitches which are the most resonant on the instrument. This means the instrument will produce the largest, fullest sounds on those pitches.This is why you'll see a lot of pieces written in A Major or D Minor for orchestra, or B-Flat Major for concert band, as those are fundamental pitches on the majority of the instruments in those ensembles.
Ease of Playing the Key on the Instrument
Some scales are harder on some instruments than others. For example, one of the pieces I performed to get into college was a Handel violin sonata in E Major. The key on violin is in first position on the E string (which is also a fundamental pitch of the instrument!), so the scale is not much harder than D Major or A Major, the two most commonly first learned scales on the instrument. On marimba for me, this key was no problem,as it's a relatively easy scale on the instrument, and the percussion book I read from was nearly identical to the violin book. My girlfriend ended up playing the same piece in college on oboe, same intervals, same melodies, yet her oboe book had the piece transposed to F Major, as it was a much easier scale based on fingerings.
Temperament
This is hard to explain in a short answer, so I'm glossing over a good amount of complexity here. A less commonly known fact is that our intervals today are much different than they used to be when switching between keys. Historically, keys were tuned using mathematical ratios developed in ancient Greece and Middle Age Europe, using systems referred to as "Just" Temperament and Meantone Temperament. Using these ratios led to each pitch not being equally spaced in terms of frequency. The best example of this can be seen on the piano, where these ratios led to certain keys being more in-tune than others, which is why so many piano pieces were composed in a limited number of keys or relative modes of those keys. For example, a piece played in C Major on a Meantone-tuned Baroque pianoforte may sound much more in tune than the same piece in F# Major. Today, we use a system known as 12-tone Equal Temperament, meaning each pitch is exactly the same distance apart. This leads to some notes being out of tune, but makes it easier to modulate (switch between) different keys in the middle of a song without going horribly out of tune.
In terms of your baby question, I agree with Daniel V., and would ask a psychologist or music therapist.