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:G
['e2 dB A2 GA', 'g2 fg']  
X:1
L:1/8
M:2/2
K:G
 e>B{B} (3BAB e2 dB | A2 GA dBgf | (3efg df e2 dB | A2 GA BG G2 :| | g2 fg efde | g2 bg eaaf | 
 g2 fg efdB | A2 GA BG G2 | g2 fg efde | g2 bg eaag | bgaf gedB | A2 GA BG G2 ||  