Develop a musical piece incorporating the designated alphabet-based pattern and the supplied melodic theme.
X:1
L:1/8
Q:1/8=180
M:2/2
K:D
['d2 Bd A2 FA f3 d edBA', 'd2 fd Adfd']  
X:1
L:1/8
Q:1/8=180
M:2/2
K:D
 d2 Bd A2 FA | f3 d edBA | FAdB AFDF | EDEF D2 FA :| d2 fd Adfd | (3efg fd edBA | d2 fd Adfd | 
 egfe d2 AB | d2 fd Adfd | (3efg fd edBA | defg a3 b | afeg fdec |"^last time" d8 |]  