Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
Q:1/2=100
M:2/2
K:D
['B A>BAF ABde fdAF (TE>DE)F DFAd AdTf>e', 'a(ff)b afed (Be)(ge) (be)(ge)'  
X:1
L:1/8
Q:1/2=100
M:2/2
K:D
 B | A>BAF ABde | fdAF (TE>DE)F | DFAd AdTf>e | dBAF D/D/D D :| f | a(ff)b afed | 
 (Be)(ge) (be)(ge) | afab afed | Begf Te2 d2 | a(ff)b afed | (Be)(ge) (be)(ge) | faef deBd | 
 AFdF D/D/D D |]  