All that's left to do is to say what pattern you want to export by simply writing Export(Result), since our final pattern is named Result
And we get the full program
Pattern = {4/4;Tempo=120;
hh 1/8 |XXXX| 1/4 |X.XXX.Xdd|;
bd 1/4 |X.X.X.X.X.X.|;
sn 1/4 |.X.X.X.X.X.X|;}
Inverse = rev(Pattern)
Result = Pattern + Inverse
export(Result)
And you simply press Render.
If the sound player doesn't change try refreshing the page a couple times.