https://www.szynalski.com/tone-generator/
Among other topics, this person made his tinnitus a friend and used it to get perfect pitch by comparing it to music notes. Then the tinnitus disappeared.