Compose a musical piece using the designated musical pattern's alphabetic representation and the assigned melodic theme.
X:1
L:1/8
M:4/4
K:D
['A>A A>B{B} d2 e>d B2', 'd>d d<e{e}']  
X:1
L:1/8
M:4/4
K:D
 A>A A>B{B} d2 e>d | B2 A2 A4 | d>d d>e{e} g2 a>f | e2 A2 A4 | d>d d<e{e} g4 | f>e d<f e2 a2 | 
 A>A A>B{B} d2 e>d | B2 A2 A4 :| d>d d<e{e} g4 | a>g f<g{d} e4 | d>d d<e{e} g2 a>f | e2 A2 B2 A<G | 
 d>d d<e{e} g4 | f>e d<f{d} e2 a2 | A>A A>B{B} d2 e>d | B2 A2 A4 :|  