There are plenty of games that have musical puzzles developed into them. And many of these games aren’t musically oriented games when considering their mechanics. In spite of this the developers of these games have decided to give some musical bits for the players to enjoy.
Here are some (maybe not that well known) examples that I’ve encountered:
The Lost Mind of Dr. Brain