Compose a musical piece using the designated musical pattern's alphabetic representation and the assigned melodic theme.
X:1
L:1/8
M:2/4
K:D
['ud>(B AF)', '(fd) (fa)']  
X:1
L:1/8
M:2/4
K:D
 ud>(B AF) | A2 A2 | (B/c/d/B/) (AF) | E2 E2 | ud>(B AF) | (Ad) (f3/2{gf}e) | (dB) (AF) | D2 D2 :: 
 (fd) (fa) | (eg) (fe) | (fd) (fa) | [Bf]2 vf>(e | f)d (fa) | (eg) f>(e | dB) AF | D2 D2 :|  