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/4
K:D
['d>c B>A G>A', 'd>e gB/<B/ a>g fa']  
X:1
L:1/8
M:2/4
K:D
 d>c B>A | G>A Bg | dG BG | dG Bg | d>c B>A | G>A B>G | B/<B/e g/f/e/d/ | e2 e2 :| g/e/ | 
 d>e gB/<B/ | a>g fa | g>e d>B | gd d/<d/g/e/ | d>e gB/<B/ | a>g fa | ge g/f/e/d/ | e2 eg/e/ | 
 d>e gB/<B/ | a>g fa | g>e d>B | gd d/<d/g | a/g/f/a/ ge | fd gA | B/<B/e g/f/e/d/ | 
 e/f/g/e/ a/g/f/e/ ||  