A classic example of this technique is Robert Fripp'sRobert Fripp's guitar part on the David BowieDavid Bowie song "Heroes"Heroes"."
"Fripp [stood] in the right place with his volume up at the right level and getting feedback. . .Fripp had a technique in those days where he measured the distance between the guitar and the speaker where each note would feed back. For instance, an 'A' would feed back maybe at about four feet from the speaker, whereas a 'G' would feed back maybe three and a half feet from it. He had a strip that they would place on the floor, and when he was playing the note 'F' sharp he would stand on the strip's 'F' sharp point and 'F' sharp would feed back better. He really worked this out to a fine science, and we were playing this at a terrific level in the studio, too." - Tony Visconti
"Fripp [stood] in the right place with his volume up at the right level and getting feedback...Fripp had a technique in those days where he measured the distance between the guitar and the speaker where each note would feed back. For instance, an 'A' would feed back maybe at about four feet from the speaker, whereas a 'G' would feed back maybe three and a half feet from it. He had a strip that they would place on the floor, and when he was playing the note 'F' sharp he would stand on the strip's 'F' sharp point and 'F' sharp would feed back better. He really worked this out to a fine science, and we were playing this at a terrific level in the studio, too." - Tony ViscontiSource: https://www.soundonsound.com/techniques/classic-tracks-david-bowie-heroes
I'm not sure about Hendrix though.