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
['A>B Ad e>d BA d>e fa', 'e>d BA d>e fa'  
X:1
L:1/8
M:4/4
K:D
|: d | A>B Ad | e>d BA | d>e fa | fe ef | A>B Ad | e>d BA | d>e fa | fd d :| g | a>f df | e>d BA | 
 d>e fa | fe ef | a>f df | e>d BA | d>e fa | fd dg | a>f df | e>d BA | d>e fa | fe ef | A>B Ad | 
 e>d BA | d>e fa | fd d ||  