Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:G
['BG (3GGG', 'gfgd BGBd gfge fgaf gfge dBGB', 'Bdgd Bdgd'  
X:1
L:1/8
M:4/4
K:G
 BG (3GGG BGdG | BG (3GGG Bdgd | BG (3GGG BGdB | AFDF ABcA | BG (3GGG BGdG | BG (3GGG Bdgd | 
 BG (3GGG BGdB | AFDF ABcA || gfgd BGBd | gfge fgaf | gfge dBGB | AFDF ABcd | gfgd BGBd | 
 gfge fgaf | gfge dBGB | AFDF ABcA || Bdgd Bdgd | Bdgd BG (3GGG | Adfd Adfd | Adfd BG (3GGG | 
 Bdgd Bdgd | Bdef gfga | bfaf gedB | AFDF ABcA ||  