Compose a piece using the specified musical pattern based on the alphabet and the provided melodic theme.
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
['ecAc e2 (dc)', 'e2 (dc)']  
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
 f | ecAc | e2 (dc) | dBBc | dBBf | ecAc | e2 (dc) | BAAc | B>AA :| g | fefg | e2 (dc) | dBBc | 
 dBBg | fefa | e2 (dc) | BAAc | B>AA :|  