Assemble a piece of music by merging the alphabetic representation of the predetermined musical pattern and the provided melodic theme.
X:1
L:1/8
M:2/4
K:D
['B A']  
X:1
L:1/8
M:2/4
K:D
 F A B B | d3/2 e/ B A | E F B A | F4 | F A B B | d3/2 e/ B A | E F B A | B,4 |]  