Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:D
['G Addf efdB ADFD FA A2 Addf', '', 'edef g2 fe'  
X:1
L:1/8
M:4/4
K:D
|: G | Addf efdB | ADFD FA A2 | Addf efed | dBAF BEE :| d || edef g2 fe | defg afdf | edef g2 fe | 
 dBAF BE E2 | edef g2 fe | defg afdf | bgaf gefd | dBAF BEE ||  