Develop a musical piece employing the provided motif and an alphabet-based structure.
X:1
L:1/8
Q:1/2=60
M:4/4
K:G
['of D in B/A/ G>G B>A BGGB', 'E2 dg g>f gd d2 ea a>g']  
X:1
L:1/8
Q:1/2=60
M:4/4
K:G
"_key of D in MS" B/A/ | G>G B>A BGGB | AA e>d eA A>B | c>c ce d>c BG | A>c B>A GE E2 || 
 dg g>f gd d2 | ea a>g ae e>f | g>a gf/e/ d>B G>B | A>c B/c/B/A/ GE E2 |]  