Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:6/8
K:Edor
['EGB d2 f edB AGA B2 E', 'EBA B2 E BAB B2 B def'  
X:1
L:1/8
M:6/8
K:Edor
 EGB d2 f | edB AGA | B2 E E2 G | FAF D2 B, | EGB d2 f | edB AGA | B2 E E2 G | FED G2 F :| 
 EBA B2 E | BAB B2 B | def edB | ABd BAF | EBA B2 E | BAB B2 B | def gfe | dGB AFD :|  