Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
M:2/4
K:D
['BABd AB A2 A>B d2 dB/d/ed/B/ A2']  
X:1
L:1/8
M:2/4
K:D
 BABd | AB A2 | A>B d2 | dB/d/ed/B/ | A2 B2 | ABAF | AB/F/ E2 | ABAF | E2 F2 | BABd | AB A2 | 
 A>B d2 | dB/d/ed/B/ | A2 B2 | ABAF | AB/F/ E2 | ABAF | E2 F2 |]  