View on GitHub

mdginabc2svg

Bash script for generating Musical Dice Games minuets (based on K. 516f, Mozart)

Download this project as a .zip file Download this project as a tar.gz file

An MDG minuet created by mdginabc2svg-sm.sh

Clicking (tapping, for mobile users) on the image below will consequently play the music.

%abc-4.49 %<![CDATA[ %%scale 0.70 %%pagewidth 21cm %%bgcolor white %%topspace 0 %%composerspace 0 %%leftmargin 0.80cm %%rightmargin 0.80cm X:189874916791621 T:7-7-7-7-7-7-7-7-7-7-7-7-7-7-7-7 %%setfont-1 Courier-Bold 12 T:$1K.516f::104:157:27:167:154:68:118:91:138:71:150:29:101:162:23:151::$0 T:$1Perm. No.: 189874916791621$0 M:3/8 L:1/8 Q:1/8=111 %%staves [1 2] V:1 clef=treble V:2 clef=bass K:C %1 [V:1]|: e/d/e/g/c'/g/ |\ [V:2]|: C,2z |\ %2 [V:1] e/d/e/g/c'/g/ |\ [V:2] C,2z |\ %3 [V:1] f/e/f/d/c/B/ |\ [V:2] [B,2G,2]z |\ %4 [V:1] cc/d/e |\ [V:2] [E,2C,2]z |\ %5 [V:1] d/^c/d/^f/a/f/ |\ [V:2] C,2z |\ %6 [V:1] gb/g/d/g/ |\ [V:2] B,,2z |\ %7 [V:1] e/a/g/b/^f/a/ \ [V:2] C,D,D,, \ %8a [V:1]|1 [g2d2B2G2]z :|2 [V:2]|1 G,,G,/=F,/E,/D,/ :|2 %8b [V:1] [g2d2B2G2]z |:\ [V:2] G,,B,/G,/^F,/E,/ |:\ %9 [V:1] [^fdA]!trill!f2 |\ [V:2] D,,/D,/^C,/D,/^C,/D,/ |\ %10 [V:1] g/b/d'/b/g |\ [V:2] [D,2B,,2][D,B,,] |\ %11 [V:1] [ecG]!trill!e2 |\ [V:2] C,/B,,/C,/D,/E,/^F,/ |\ %12 [V:1] B/d/g/d/B |\ [V:2] G,2G,, |\ %13 [V:1] e/d/e/g/c'/g/ |\ [V:2] [G,2C,2] [E,C,] |\ %14 [V:1] e/d/e/g/c'/g/ |\ [V:2] [G,2C,2][E,C,] |\ %15 [V:1] f/e/d/e/f/g/ |\ [V:2] A,/G,/F,/G,/A,/B,/ |\ %16 [V:1] c2z :|] [V:2] C,G,,C,, :|] %]]>


Additional examples

Examples of XHTML files (score-producing audio) containing MDG minuets generated by mdginabc2svg.sh are in the following links:

Essential javascripts

abcweb-1.js and snd-1.js in the sub-folder js (version 1.22.13; 2024-02-23) were authored by Jeff Moin and were created from the source. These javascripts are used to render ABC in the XHTML files. See http://moinejf.free.fr/abcm2ps-doc/tabac.html for an example and template.

The following descriptions are from the ChiselApp abc2svg site.

For the Musikalisches Würfelspiel, K.516f score in ABC notation please see the res folder of the mdginabc2svg directory on GitHub or the GitHub Pages Site of mdginabc2svg: https://justineuro.github.io/mdginabc2svg/res/.

Acknowledgements

My sincerest gratitude to Chris Walshaw et al. for the ABC music notation; Jean-Francois Moine for for abcm2ps, abc2svg, and the accompanying useful javascripts, examples, templates, and pointers for the appropriate use of these resources; Guido Gonzato for the ABC Plus Project and the abcmidi resources available there, more especially for the ABC resource book Making Music with ABC 2; James R. Allwright and Seymour Shlien for abcmidi source and binaries; and Artifex, Inc. for Ghostscript (includes the ps2pdf converter). Special thanks also to the International Music Score Library Project (IMSLP) for making available the score for Musikalisches Würfelspiel, K.516f and to Chris Walshaw et al. for the ABC music notation. Ditto to Machtelt Garrels for the book Bash Guide for Beginners and Vivek Gite for the book Linux Script Shell Tutorial. Much thanks, too, to the Debian Project for the Debian 10 (Buster) GNU/Linux OS, to Brian Fox for Bash, and GitHub for its generosity in providing space for this project.

License

Creative Commons License
mdginabc2svg by Justine Leon A. Uro is licensed under a Creative Commons Attribution 4.0 International License.
Based on a work at https://github.com/justineuro/mdginabc2svg