When does Minecraft decide to start playing gameplay music?
I've played mostly with Minecraft's music muted since Alpha, and have just recently started keeping it on while I play.
In the latest version (1.10), the subtle gameplay music seems to kick in ten or twenty minutes after starting the game and wandering around above ground. It will play for a while, then go away.
Is there any pattern to the gameplay music, or are there any special triggers?
Well, first, there are two terms you're using here that may cause confusion. Ambience is the term used to describe the "cave noises" that play when near caves. I will assume that you are talking about the gameplay music, though, so here's that.
Until recently, I thought that is was completely random, but it actually isn't. A random track is selected at sunrise, sunset, noon, and midnight, though in some cases no music at all will be selected. This chooses completely randomly between the various Minecraft in-game music tracks.
I play Minecraft all day and I've noticed that a track plays at sunset and midnight.