Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/8
M:4/4
K:D
['A>B{B} d2', 'd2 (d3/2e/8f/4) g>f{f} e>d{d} c2 |1 TB>A'  
X:1
L:1/8
M:4/4
K:D
 D<DD>F A>B{B} d2 |{c} B>AB>F{F} A>B{B} d2 | D<D D>F{F} A>B{B} d2 |{c} B>Ad>B{B} A>FED :: 
 D<DD>F{F} A>B{B} d2 | B>AB>F{F} A>B{B} d2 | (d3/2e/8f/4) g>f{f} e>d{d} c2 |1 
 TB>A d>B{B} A>FE<F ||2 B>A d>B{B} A>FE<D ||  