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 gives a stand-alone example of this interactive javascript example with more features and is implemented as a single HTML page.