Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/8
M:4/4
K:D
['f2 fd', 'ge afed Bcde :|2 defg afba gfed'  
X:1
L:1/8
M:4/4
K:D
 A2 AB AFED | B2 BA B2 d2 | A2 AB AFED |1 gfed B2 d2 :|2 gfed Bcde |: f2 fd g2 ge | f2 fd ecBA |1 
 f2 fd g2 ge | afed Bcde :|2 defg afba | gfed BcdB |]  