Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:4/4
K:Gdor
['eAAG A2 Bd eaaf gfed', 'eaag a2 ag eaag']  
X:1
L:1/8
M:4/4
K:Gdor
 eAAG A2 Bd | eaaf gfed | eAAA fAAA | B2 BA GABd | eAAG A2 Bd | eaaf gfed | cBcd e2 ed | cABG A4 :: 
 eaag a2 ag | eaag egdg | egdg egdg | eaab aged | eaag a2 ag | eaag eged | cBcd eged | 
 (3cBA BG A4 :|  