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:G
['G2 GD EDEG AGAB d2 Bd eged', 'ea a2 efgf eBBA B2 Bd']  
X:1
L:1/8
M:4/4
K:G
|: G2 GD EDEG | AGAB d2 Bd | eged BAGA | BAGE EDDE | G2 GD EDEG | AGAB d2 Bd | eged BAGA | 
 BAGE ED D2 :: ea a2 efgf | eBBA B2 Bd | eB B2 efgf | edcB A2 Bd | ea a2 efgf | eBBA B2 Bd | 
 eged BAGA | BAGE ED D2 :|  