Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:C
['BEA |[M:2/2][K:D]SOSOO .!fermata!PMTuCO(Mef) gfed cAAB cAdB cAAf', 'd2 (fd) adfd'  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:2/2][K:D]SOSOO .!fermata!PMTuCO(Mef) | gfed cAAB | cAdB cAAf | gfed cdeg | fage d2 :| A2 | 
 d2 (fd) adfd | d2 (fa) gece | d2 (fd) adfd | fage d2 A2 | d2 (fd) adfd | d2 (fa) gece | Tf4 Tg4 | 
 fage d2 |]  