Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:9/8
K:Ddor
['D2 A', 'BAB dBG']  
X:1
L:1/8
M:9/8
K:Ddor
 D2 A A2 G ABc | D2 A AGE G2 E | D2 A A2 G ABc | BAG AGE G2 E | D2 A A2 G ABc | D2 A AGE G2 E | 
 D2 A A2 G ABc | dBG AGE G2 E || BAB dBG ABc | BAB dBG c2 A | BAB dBG ABc | BAG AGE G2 E | 
 BAB dBG ABc | B2 c dBG c2 A | def gfe dBG | BAG AGE G2 E ||  