Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/8
M:3/2
K:D
['(def).d bg(Tfe) .a(Tfed) cdef e2 B2 cdec', "(d'c'd').a bagf"  
X:1
L:1/8
M:3/2
K:D
|: (def).d bg(Tfe) .a(Tfed) | cdef e2 B2 cdec | (def).d .b(Tgfe) .a(fed) | Adce .d(TBAG) F2 D2 :: 
 (d'c'd').a bagf efge | (=c'bc').a bagf efge | (d'c'd').a bagf gfed | Adce .d(TBAG) F2 D2 :|  