Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:12/8
K:D
['B2 A', 'Bcd efe d3'  
X:1
L:1/8
M:12/8
K:D
|: A2 F ABd f3 fef | gfe fed B3 B2 A | Bcd B2 A Bcd B2 A |1 Bcd efe d3 dcB :|2 Bcd efe d3 d2 f |: 
 aba a2 f e2 d B3 | e2 d BAB e2 d Bef | aba a2 f e2 d B2 A |1 Bcd efe d3 d2 f :|2 Bcd efe d3 dcB ||  