Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:2/2
K:D
['F2 Ad fdAF', 'a2 fd', 'a^gab afdf']  
X:1
L:1/8
M:2/2
K:D
 AG | F2 Ad fdAF | G2 Bd gdBG | F2 Ad fdAF | E2 Ac ecAG | F2 Ad fdAF | G2 Bd gbag | fafd egec | 
 d2 f2 d2 :| fg | a2 fd Adfa | g2 ec Aceg | a2 fd Adgf | (3efe (3dcB A2 fg | a2 fd Adfa | 
 gfef gbag | fafd egec | d2 f2 d2 :| fg | a^gab afdf | gfga gece | a^gab afdf | (3efe (3dcB A2 fg | 
 a^gab afdf | gfef gbag | fafd egec | d2 f2 d2 :|  