Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:9/8
K:Gmin
['', 'B>AG GAG', 'ded d2'  
X:1
L:1/8
M:9/8
K:Gmin
 c |: B>AG GAG GB | AGF FGF ABc | B>AG GAG G2 B | ABc cdB ABc :| B>cd ded d2 c | Bcd def edc | 
 Bcd ded d2 f | =edc cdB ABc | Bcd ded d2 c | Bcd def ed | Bcd ded def | gfe dcB ABc ||  