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
['dAF DFA Bed cBA dcd efg', 'd2 g fdf fga ecd fed cAA'  
X:1
L:1/8
M:6/8
K:D
 (f/e/) | dAF DFA | Bed cBA | dcd efg | aed cBA | dAF DFA | Bed cBA | dcd efg | fdd d2 :: g | 
 fdf fga | ecd fed | cAA A2 c | BGB Bcd | AFA DFA | dcd efg | fdd d2 :|  