Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/8
M:5/8
K:Bmin
['B3 AB', 'AB GAB dB e2 d eg edB'  
X:1
L:1/8
M:5/8
K:Bmin
 B3 AB | dBA Bd | B3 AB | dgf ed | B3 AB | dBA BG | F3 EF |1 GAB dc :|2 GAB dB |:[K:Emin] e2 d eg | 
 edB dB | A2 G AB | GAB dB | e2 d eg | edB dB |1 a2 g ab | gag fd :|2 aae ae | a2 e d^c ||  