Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:6/8
K:D
['B AFD', '', 'afd dfa afb afd']  
X:1
L:1/8
M:6/8
K:D
 B | AFD DED | AFA d2 A | Bcd AFD | Egf edc | dAF DFA | BAB d2 B | AFD EDB, | A,DD D2 :| f |: 
 afd dfa | afb afd | gbg faf | gee e2 f |1 afd dfa | afb afd | gfe fdB | Add d2 f :|2 fed cBA | 
 BdB AFD | GFE FDB, | A,DD D2 ||  