Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/8
M:2/4
K:D
['dd c B2 B', 'A d>d e>e f3'  
X:1
L:1/8
M:2/4
K:D
 DD/D/ dd | c B2 B | AF FE/D/ | E3 F/E/ | D>D dd | c B2 B | AG/F/ F>E | D3 || A | d>d e>e | f3 A | 
 d>d e>e | f3 f/e/ | d>c Bd/B/ | A F2 E | D<d F>E | D3 |]  