Its worth noting that adults can learn something called pseudo absolute pitch, which sounds similar to what you're describing. The difference (which you're also describing) is that it requires reinforcement, and is a bit less accurate than having perfect pitch