Develop musical compositions in line with the specified format and incorporating the provided musical theme.
X:1
L:1/8
M:4/4
K:D
['d3 A BAFA ABdA BAFA ABde', 'D2 fg a3 g fgfe d3 A'  
X:1
L:1/8
M:4/4
K:D
 z A | d3 A BAFA | ABdA BAFA | ABde f2 ed | Beed egfe | d3 A BAFA | ABdA BAFA | ABde fdec | 
 dBAF D2 :| fg | a3 g fgfe | d3 A BAFA | ABde f2 ed | Beed egfe | abag fgfe | defd edBd | 
 ABde fdec | dBAF D2 :|  