Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:2/2
K:D
['BAFA ABdA BAFA ABde', 'BAFA ABde'  
X:1
L:1/8
M:2/2
K:D
 d3 A BAFA | ABdA BAFA | ABde f2 ed | Beed egfe | dcdA BAFA | ABdA BAFA | ABde fdec |1 
 dBAF D3 A :|2 dBAF D2 fg |: a2 ag f2 fe | dcdA BAFA | ABde f2 ed | Beed egfe | a3 g fgfe | 
 dcdA BAFA | ABde fdec |1 dBAF D2 fg :|2 dBAF D3 A |]  