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:D
['Bd BAGB', '(3Bcd ef']  
X:1
L:1/8
M:4/4
K:D
 e- edBA | G2 Bd BAGB | AD D2 ADFD | EFGE AGFA | GABd edBA | G2 Bd BAGB | A2 de dABd | e2 e2 defd | 
 e2 BA (3Bcd ef | gfef gfeg | fedB ABdf | eBBA BedB | ABdB ADFD | E2 Bd BAGB | AGFE DEFD | 
 EFGE FEDF | E3 :: A (3Bcd ef | g3 a gfeg | fedB ABdf | eBBA BdeB | BAGA (3Bcd ef | g3 a gfeg | 
 (3fed ag fefd | ebaf g2 Bg | fd e2 (3Bcd ef | gaba gfeg | fgfe de (3fed | egfa gedg | 
 (3efg fd BdAF | G2 Bd BAGB | AGFE DEFD | EFGE AGFG | E3 :|  