Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:12/8
K:D
['d2 f', 'd3 F2 A d2 c BdB A3'  
X:1
L:1/8
M:12/8
K:D
|: d2 f e2 g fad c2 A | d2 f eag f3 e3 | b2 g ebg a2 f daf | egf edc d3- d3 :: F2 A d2 c BdB A3 | 
 efg afd c3 e3 | afd bge afd ecA | Bcd edc d3- d3 :|  