Integration with Javascript

Below is a musical dice game attributed to Mozart (K6 516f). The original score was printed in a musical magazine, Rellstabschen Musikhandlung, in Berlin around 1790. Click on measure numbers in the following grid to construct a score, which will be displayed under the measure grid. When no measures are selected, all of the input measures are displayed. To play the game, roll two dice at a time to select a specific row in the grid. Do this sixteen times to generate a randomized score. Click here to load the full Humdrum score into Verovio Humdrum Viewer, where you can also arrange the measures for the composition using the myank filter. Click here to view the source code for this page. The website dice.humdrum.org gives a stand-alone example of this interactive javascript example with more features and is implemented as a single HTML page.

m1m2m3m4m5m6m7m8m9m10m11m12m13m14m15m16
roll 29622141411051221130701212691124910914
roll 332612863146461348111739126561741811683
roll 469951581315355110246613915132735814579
roll 54017113851612159100901767346716052170
roll 61487416345809736107251436412576136193
roll 7104157271671546811891138711502910116223151
roll 81526017153991332112716155571754316889172
roll 91198411450140861699412088481665111572111
roll 109814242156751296212365771982137381498
roll 113871656113547147331024311641445917378
roll 125413010103283710653520108921212444131