Develop musical compositions in line with the specified format and incorporating the provided musical theme.
X:1
L:1/4
M:4/4
K:G
['D A A B/A/ ^G/A/ F A']  
X:1
L:1/4
M:4/4
K:G
 D | G3/2 D/ B, C | D3/2 E/ D G | B3/2 A/ G A | B3/2 c/ B G | B2 A2 | G2 z D | A A B/A/ ^G/A/ | 
 F A D D | A A B/A/ ^G/A/ | F A D D | E F G A | B3/2 A/ G B | d2 F2 | G3 |]  