Compose a piece using the specified musical pattern based on the alphabet and the provided melodic theme.
X:1
L:1/8
M:9/8
K:G
['g3 bag', 'def gdc']  
X:1
L:1/8
M:9/8
K:G
 d2 g BGB{AB} AcA | d2 g BGB"^roll" c3 | .gdc BGB{AB} AcA |"^roll" f3 A2 B cBA :: 
"^roll" g3 bag afd |"^roll" g3 bag c'ba |"^roll" g3 bag afd |"^roll" f3 A2 B cBA :: 
 def gdc B{GB}GB | def gdB"^roll" c3 | def gdc BGB |"^roll" f3 A2 B cBA :|  