chords generation in patterns