Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:D
['B A<DA>F A<DD>d A<DA>F E<GG>B A<FA>d B>dA>B', 'f<dd f d<AF<A D<Ad>B A<DA>F E<ee>f d<AFA'  
X:1
L:1/8
M:4/4
K:D
 B | A<DA>F A<DD>d | A<DA>F E<GG>B | A<FA>d B>dA>B | A<FA>g f<dd :| f | d<AF<A D<Ad>B | 
 A<DA>F E<ee>f | d<AFA EADf | d<BA>F A<dd>f | dAFA D<Ad>B | A<DAF E>gfe | faef d>BA>F | 
 A>Bd>e f<dd ||  