Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
Q:1/8=180
M:6/8
K:D
['', 'e f2', 'fgf ede efg fed B2 d A>AA']  
X:1
L:1/8
Q:1/8=180
M:6/8
K:D
 B |: A>AA A<FA | d2 e f2 a | g2 e f2 d | efd B2 d | A>AA A<FA | d2 e f2 g | afd e>fe |1 d3 dcB :|2 
 d3 def |: gdg gag | fdf fgf | ede efg | fed B2 d | A>AA A<FA | d2 e f2 g | afd efe |1 d3- def :|2 
 d3 D2 ||  