Construct a musical piece by amalgamating the designated alphabetical representation and the supplied musical theme.
X:1
L:1/8
Q:3/8=120
M:9/8
K:D
['A2 A d2 d c2 A', 'f2 d fga a2 f']  
X:1
L:1/8
Q:3/8=120
M:9/8
K:D
 A2 A d2 d c2 A | B2 A Bcd E3 | A2 A d2 d c2 A | Bcd edc d3 :: f2 d fga a2 f | ecA ecA A2 g | 
 f2 d fga a2 f | bge cAc d3 :|  