Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
Q:1/8=200
M:2/2
K:D
['d2 dA BAFA', 'BAFA ABde fdec D2 z2 :|2 D3'  
X:1
L:1/8
Q:1/8=200
M:2/2
K:D
"D" d2 dA BAFA | ABdA BAFA | ABde fded |"Em" Beed"A" egfe |"D" d2 dA BAFA | DAFA BAFA | 
 ABde fdec |1"A" dBAF"D" D3 c :|2 d"A"BAF"D" D2 z2 |:"D" a2 ag f2 fe | d2 dA BAFA | ABde fded | 
"Em" Beed"A" efge |"D" a2 ag f2 fe | dcdA BAFA | ABde fdec |1"A" dBAF"D" D2 z2 :|2 
"A" dBAF"D" D3 c |]  