Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
Q:1/8=160
M:12/8
K:D
['A FAA AFA', 'a2 f'  
X:1
L:1/8
Q:1/8=160
M:12/8
K:D
 A | FAA AFA B2 A A2 A | FAA AFA f2 e e2 A | FAA AFA d2 e f2 e | dcB ABc d2 D D2 :| f/g/ | 
 a2 f gfe f2 d def | a2 f gfg b2 e efg | agf gfe d2 e f2 e | dcB ABc d2 D D2 :|  