Questions & Answers about Η κιθάρα είχε ήδη ξεκουρδιστεί όταν άρχισα να παίζω.
It is the pluperfect (also called the past perfect) of ξεκουρδίζομαι / ξεκουρδίζω in form and meaning here.
- είχε = had
- ξεκουρδιστεί = become out of tune / been detuned
So είχε ήδη ξεκουρδιστεί means something like had already gone out of tune or had already become out of tune before another past action happened.
This is why it pairs naturally with όταν άρχισα να παίζω = when I started playing.
Both are possible in Greek, but they focus on slightly different things.
- είχε ξεκουρδιστεί = it had gone out of tune / had become untuned
- This highlights a change that had already happened before the next event.
- ήταν ξεκούρδιστη = it was out of tune
- This describes its state, without emphasizing the earlier change.
In your sentence, the pluperfect works well because the speaker is setting up a timeline:
- the guitar had already gone out of tune
- then I started playing
So the sentence emphasizes that the detuning happened before the speaker began to play.