Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:6/8
K:D
['B2 A B2', 'd Bcd'  
X:1
L:1/8
M:6/8
K:D
 A | DED E2 F | d2 c B2 A | B2 A B2 d | e3 def | DED E2 F | D2 c B2 A | B2 A B2 c | (d3 d2) :: A | 
 d2 f e2 d | Bcd A2 F | A2 A g2 f | f3 eag | f2 a f2 d | Bcd AGF | A2 A B2 c | (d3 d2) :|  