Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:6/8
K:D
['(3(A/B/c/) dcd Adf e^de', 'd2 (d/f/) a^ga dfa b=gb dgb bag'  
X:1
L:1/8
M:6/8
K:D
 (3(A/B/c/) | dcd Adf | e^de Ace | fba gfe | dcB A2 (3(A/B/c/) | dcd Adf | e^de Beg | fba gfe | 
 dAf d2 :: (d/f/) | a^ga dfa | b=gb dgb | bag fed | cBA gfe | dcd Adf | e^de Beg | fba gfe | 
 dAf d2 :|  