Generate music with the following musical form represented in alphabets and the given motif.
X:1
L:1/8
M:4/4
K:D
['B AAAf edBd AAAB dedB AAAf edBg', 'edBg faef d2']  
X:1
L:1/8
M:4/4
K:D
 B | AAAf edBd | AAAB dedB | AAAf edBg |1 faef dedB :|2 faef d2 d |: g | fedf edBg | fefg a>dag |1 
 fedf edBg | faef d2 d :|2 fdaf edBg | faef d2 d |]  