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
['A2 AA B2 B2 A2 AF E4']  
X:1
L:1/8
M:4/4
K:D
 A2 AA B2 B2 | A2 AF E4 | (D3/2 E/) F3/2 D/ G2 G3/2 G/ | F2 E2 C D3 | A4 B4 | A2 A2 F E2 D | 
 D3 EF F D2 | G3 A B3 G | F4 E3 E | D4 z4 |]  