Formulate melodic passages using the specified musical pattern in combination with the provided motif.
X:1
L:1/8
M:4/4
K:D
['dBdf edfd ABdA Bdfd gdfd ed d2', 'z g4'  
X:1
L:1/8
M:4/4
K:D
|: dBdf edfd | ABdA Bdfd | gdfd ed d2 | gaae afge | dBdf edfd | ABdA Bdfd | gdfd ed d2 | afef d4 :| 
 z2 g4 f2 | fd d2 edBd | A z g4 a2 | aeaf gfed | d z g4 f2 | fd d2 edBd | A z g4 a2 | aeaf gfed ||  