Compose a musical piece based on the provided chord pattern.
'D', 'D', 'A', 'D', 'A', 'D', 'D', 'A', 'G', 'D', 'G', 'D', 'D', 'D', 'A', 'D', 'A', 'D', 'A', 'G', 'D', 'D', 'A', 'G', 'D', 'A', 'D', 'D', 'A', 'D'  
X:1
L:1/8
M:2/2
K:D
"D" F2 FG FEDE | FAAB AFED |"D" d2 (3(efg)"A" fdec |"D" dBAF"A" BEED |"D" F2 FG FEDE | FAAB AFED | 
"D" d2 (3(efg)"A" fdec |1"G" dBAG"D" FDDE :|2"G" dBAG"D" FDFA |:"D" d2 AG FDFA |"D" dfaf"A" gfeg | 
"D" fAdf"A" eAce |"D" dfed"A" cA A2 |"G" B2 GB"D" ADFA |"D" dfaf"A" gfed | 
"G" (3(Bcd) ce"^(D)" dBAG |1"D" FA"A"EF"D" D2 FA :|2"D" FA"A"EG"D" D2 DE |]  