Whining noise from laptop cpu/gpu?

On both my laptops, the lenovo y510p and macboon pro, whenever i play minecraft and trying to get extremely high fps, there's a super quiet whining noise that i can only hear if i press my ear against the top left part of my keyboard. It changes pitch depending on where i look (sky, ground) this also happened on two of my desktop graphics cards (gtx770,780). Keep in mins that i can only hear this when i press my ear hard against the top left of my laptop. What is this, why is this, and does this happen with YOUR computer too.

Noise can only come from two sources with a computer, the fan or the hard disc driver. I'd HIGHLY recommend you back up your hard drive, at least any music/movies/pictures you don't want to lose if the hard drive crashes.

Like I like Stories said, the only parts of your computer that can make that kind of sound would be a fan or your HDD, in this case I'm almost certain it is your fan kicking up a bit to increase cooling due to the stress of its current load