Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:4/4
K:D
['B ABdf efdB AF F2 EDEF ABdf', 'a2 fa'  
X:1
L:1/8
M:4/4
K:D
 B | ABdf efdB | AF F2 EDEF | ABdf efdf | afef d3 :| f | a2 fa bafa | a2 fd edBd | a2 fa bafb | 
 afef defg | a2 fa bafa | a2 fd edBd | AF F2 ABdf | afef d3 |]  