Create musical pieces that follow the designated structure and incorporate the provided musical motif.
X:1
L:1/8
Q:1/4=100
M:4/4
K:D
['AB d>edB dAAB d>edB A3 d Bddf', 'd2 fa'  
X:1
L:1/8
Q:1/4=100
M:4/4
K:D
"_Allegro" AB | d>edB dAAB | d>edB A3 d | Bddf efa>b | a<fe>d B2 :: AB | d2 fa d2 fa | dedB A3 d | 
 Beef efab | a<fe>d B2 :|  