Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/4
M:3/1
K:D
['d4 d4']  
X:1
L:1/4
M:3/1
K:D
 d4 | d4 d4 =f4 | e4 e4 d4 | =c8 A4 | =F8 F4 | A8 A4 | =c8 c4 | d6 e2 =f4 | e8 d4 | =c8 =F4 | 
 A8 D4 | E12 | D8 |]  