Create a melody using the given alphabetic notations and the provided motif.
X:1
L:1/8
Q:1/8=150
M:2/2
K:D
['AFDB (3ABA GB AFDe', 'gfec dfed']  
X:1
L:1/8
Q:1/8=150
M:2/2
K:D
"^hornpipe" B | AFDF AFDB | (3ABA GB AFDe | fedf edce | dcAB (3cBA (3GFE | ADDF AFDB | 
 (3ABA GB AFDe | (3fgf (3efe (3ded (3ABA | (3FAF D2 D2 :| fg | afdf gfec | dfed BAFA | 
 B/c/B/A/ FA BAGA | B/c/B/A/ GA BAFf | agfa gfec | dfed BAFG | A3 F GBAG | (3FAF D2 D2 :|  