changeset 21:dbc7d00fcb7d midi-experiment

Try to add midi playback of sheet music
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 01 Jul 2020 11:41:39 +0200
parents cb6c79b172d1
children
files abcjs-midi.css abcjs_plugin-midi_5.9.1-min.js abcjs_plugin_5.10.3-min.js test.tmpl
diffstat 4 files changed, 179 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/abcjs-midi.css	Wed Jul 01 11:41:39 2020 +0200
@@ -0,0 +1,166 @@
+/* Some basic CSS to make the MIDI controls in abcjs presentable. */
+
+.abcjs-inline-midi {
+	height: 26px;
+	padding: 0 5px;
+	border-radius: 3px;
+	color: #f4f4f4;
+	background-color: #424242;
+	display: flex;
+	align-items: center;
+	box-sizing: border-box;
+}
+
+.abcjs-inline-midi .abcjs-btn {
+	width: 28px;
+	height: 26px;
+	display: inline-block;
+	margin-right: 2px;
+	float: left;
+	padding: 0;
+
+	background: none;
+	font: normal normal normal 14px/1 FontAwesome;
+	font-size: 14px;
+	text-rendering: auto;
+	-webkit-font-smoothing: antialiased;
+	-moz-osx-font-smoothing: grayscale;
+	color: #f4f4f4;
+	border: 1px solid transparent;
+	box-sizing: border-box;
+}
+
+.fa5 .abcjs-inline-midi .abcjs-btn {
+	font-family: "Font Awesome 5 Free";
+	font-weight: 900;
+}
+.abcjs-inline-midi .abcjs-btn:hover {
+	color: #cccccc;
+}
+
+.abcjs-inline-midi .abcjs-midi-selection:before {
+	content: "\f07e"; /* fa-arrows-h [&#xf07e;] */
+}
+
+.abcjs-inline-midi .abcjs-midi-selection.abcjs-pushed {
+	border: 1px solid #cccccc;
+	background-color: #666666;
+	box-sizing: border-box;
+}
+
+.abcjs-inline-midi .abcjs-midi-loop:before {
+	content: "\f021"; /*   fa-refresh [&#xf021;] */
+}
+
+.abcjs-inline-midi .abcjs-midi-loop.abcjs-pushed {
+	border: 1px solid #cccccc;
+	background-color: #666666;
+	box-sizing: border-box;
+}
+
+.abcjs-inline-midi .abcjs-midi-reset:before {
+	content: "\f048"; /*   fa-step-backward [&#xf048;] */
+}
+
+.abcjs-inline-midi .abcjs-midi-reset.abcjs-pushed {
+	border: 1px solid #cccccc;
+	background-color: #666666;
+	box-sizing: border-box;
+}
+
+.abcjs-inline-midi .abcjs-midi-start:before {
+	content: "\f04b"; /*   fa-play [&#xf04b;]    fa-pause [&#xf04c;] */
+}
+
+.abcjs-inline-midi .abcjs-midi-start.abcjs-pushed:before {
+	content: "\f04c"; /*   fa-play [&#xf04b;]    fa-pause [&#xf04c;] */
+}
+
+.abcjs-inline-midi .abcjs-midi-start.abcjs-loading {
+	outline: none;
+	animation: a 1s infinite steps(8);
+}
+
+.abcjs-inline-midi .abcjs-midi-start.abcjs-loading:before {
+	content: "\f110"; /*   fa-loading */
+}
+
+.abcjs-inline-midi .abcjs-midi-progress-background {
+	background-color: #424242;
+	height: 10px;
+	border-radius: 5px;
+	border: 2px solid #cccccc;
+	margin: 0 8px 0 15px;
+	position: relative;
+	flex: 1;
+	padding: 0;
+	box-sizing: border-box;
+}
+
+.abcjs-inline-midi .abcjs-midi-progress-indicator {
+	width: 20px;
+	margin-left: -10px; /* half of the width */
+	height: 14px;
+	background-color: #f4f4f4;
+	position: absolute;
+	display: inline-block;
+	border-radius: 6px;
+	top: -4px;
+	left: 0;
+	box-sizing: border-box;
+}
+
+.abcjs-inline-midi .abcjs-midi-clock, .abcjs-inline-midi .abcjs-midi-post {
+	margin-left: 4px;
+	margin-top: 0;
+	display: inline-block;
+	font-family: sans-serif;
+	font-size: 16px;
+	box-sizing: border-box;
+}
+
+.abcjs-inline-midi .abcjs-midi-pre {
+	display: inline-block;
+	box-sizing: border-box;
+}
+
+.abcjs-inline-midi .abcjs-tempo-wrapper {
+	float: right;
+	font-size: 10px;
+	display: inline-block;
+	color: #f4f4f4;
+	box-sizing: border-box;
+}
+
+.abcjs-inline-midi .abcjs-midi-tempo {
+	border-radius: 2px;
+	border: none;
+	margin: 1px 2px 0 4px;
+	width: 32px;
+	padding-left: 2px;
+	box-sizing: border-box;
+}
+
+/* Adding the class "abcjs-large" will make the control easier on a touch device. */
+.abcjs-large .abcjs-inline-midi {
+	height: 52px;
+}
+.abcjs-large .abcjs-btn {
+	width: 56px;
+	height: 52px;
+	font-size: 28px;
+}
+.abcjs-large .abcjs-midi-progress-background {
+	height: 20px;
+	border: 4px solid #cccccc;
+}
+.abcjs-large .abcjs-midi-progress-indicator {
+	height: 28px;
+	top: -8px;
+	width: 40px;
+}
+.abcjs-large .abcjs-midi-clock {
+	font-size: 32px;
+	margin-right: 10px;
+	margin-left: 10px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/abcjs_plugin-midi_5.9.1-min.js	Wed Jul 01 11:41:39 2020 +0200
@@ -0,0 +1,3 @@
+/*! abcjs_plugin-midi v5.9.1 Copyright © 2009-2019 Paul Rosen and Gregory Dyke (https://abcjs.net) */
+/*! For license information please see abcjs_plugin-midi_5.9.1-min.js.LICENSE */
+!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=13)}([function(e,t){var i={clone:function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},cloneArray:function(e){for(var t=[],n=0;n<e.length;n++)t.push(i.clone(e[n]));return t},cloneHashOfHash:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=i.clone(e[n]));return t},cloneHashOfArrayOfHash:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=i.cloneArray(e[n]));return t},gsub:function(e,t,i){return e.split(t).join(i)},strip:function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(e,t){return 0===e.indexOf(t)},endsWith:function(e,t){var i=e.length-t.length;return i>=0&&e.lastIndexOf(t)===i},each:function(e,t,i){for(var n=0,r=e.length;n<r;n++)t.apply(i,[e[n],n])},last:function(e){return 0===e.length?null:e[e.length-1]},compact:function(e){for(var t=[],i=0;i<e.length;i++)e[i]&&t.push(e[i]);return t},detect:function(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return!0;return!1}};[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})),e.exports=i},function(e,t){var i={FONTEM:360,FONTSIZE:30};i.STEP=93*i.FONTSIZE/720,i.SPACE=10,i.TOPNOTE=15,i.STAVEHEIGHT=100,i.INDENT=50,e.exports=i},function(e,t,i){i(3);var n=function(e,t,i,n,r){switch(r=r||{},this.x=0,this.c=e,this.dx=t,this.w=i,this.pitch=n,this.scalex=r.scalex||1,this.scaley=r.scaley||1,this.type=r.type||"symbol",this.pitch2=r.pitch2,this.linewidth=r.linewidth,this.klass=r.klass,this.top=n,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=n,void 0!==this.pitch2&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),r.thickness&&(this.top+=r.thickness/2,this.bottom-=r.thickness/2),r.stemHeight&&(r.stemHeight>0?this.top+=r.stemHeight:this.bottom+=r.stemHeight),this.height=r.height?r.height:4,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":r.position&&"below"===r.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":r.position&&"below"===r.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?r.position&&"below"===r.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};n.prototype.setX=function(e){this.x=e+this.dx},n.prototype.setUpperAndLowerElements=function(e){switch(this.type){case"part":this.top=e.partHeightAbove+this.height,this.bottom=e.partHeightAbove;break;case"text":case"chord":this.chordHeightAbove?(this.top=e.chordHeightAbove,this.bottom=e.chordHeightAbove):(this.top=e.chordHeightBelow,this.bottom=e.chordHeightBelow);break;case"lyric":this.lyricHeightAbove?(this.top=e.lyricHeightAbove,this.bottom=e.lyricHeightAbove):(this.top=e.lyricHeightBelow,this.bottom=e.lyricHeightBelow);break;case"debug":this.top=e.chordHeightAbove,this.bottom=e.chordHeightAbove}void 0!==this.pitch&&void 0!==this.top||window.console.error("RelativeElement position not set.",this.type,this.pitch,this.top,e)},n.prototype.draw=function(e,t){void 0===this.pitch&&window.console.error(this.type+" Relative Element y-coordinate not set.");var i=e.calcY(this.pitch);switch(this.type){case"symbol":if(null===this.c)return null;var n="symbol";this.klass&&(n+=" "+this.klass),this.graphelem=e.printSymbol(this.x,this.pitch,this.c,this.scalex,this.scaley,e.addClasses(n));break;case"debug":this.graphelem=e.renderText(this.x,e.calcY(15),""+this.c,"debugfont","debug-msg","start");break;case"barNumber":this.graphelem=e.renderText(this.x,i,""+this.c,"measurefont","bar-number","middle");break;case"lyric":this.graphelem=e.renderText(this.x,i,this.c,"vocalfont","lyric","middle");break;case"chord":this.graphelem=e.renderText(this.x,i,this.c,"gchordfont","chord","middle");break;case"decoration":this.graphelem=e.renderText(this.x,i,this.c,"annotationfont","annotation","middle",!0);break;case"text":this.graphelem=e.renderText(this.x,i,this.c,"annotationfont","annotation","start",this.centerVertically);break;case"multimeasure-text":this.graphelem=e.renderText(this.x+this.w/2,i,this.c,"tempofont","rest","middle",!1);break;case"part":this.graphelem=e.renderText(this.x,i,this.c,"partsfont","part","start");break;case"bar":this.graphelem=e.printStem(this.x,this.linewidth,i,t||e.calcY(this.pitch2));break;case"stem":this.graphelem=e.printStem(this.x,this.linewidth,i,e.calcY(this.pitch2));break;case"ledger":this.graphelem=e.printStaveLine(this.x,this.x+this.w,this.pitch)}return 1!==this.scalex&&this.graphelem&&e.scaleExistingElem(this.graphelem,this.scalex,this.scaley,this.x,i),this.graphelem},e.exports=n},function(e,t,i){var n=i(1);e.exports=new function(){"use strict";var e={0:{d:[["M",4.83,-14.97],["c",.33,-.03,1.11,0,1.47,.06],["c",1.68,.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,.81,6.96,-.9,9.27],["c",-.78,1.08,-1.71,1.71,-2.91,1.95],["c",-.45,.09,-1.32,.09,-1.77,0],["c",-.81,-.18,-1.47,-.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,.87],["c",-.21,-.06,-.69,-.09,-.87,-.06],["c",-.54,.12,-.87,.42,-1.17,.99],["c",-.36,.66,-.51,1.56,-.6,3],["c",-.03,.75,-.03,4.59,0,5.31],["c",.09,1.5,.27,2.4,.6,3.06],["c",.24,.48,.57,.78,.96,.9],["c",.27,.09,.78,.09,1.05,0],["c",.39,-.12,.72,-.42,.96,-.9],["c",.33,-.66,.51,-1.56,.6,-3.06],["c",.03,-.72,.03,-4.56,0,-5.31],["c",-.09,-1.47,-.27,-2.37,-.6,-3.03],["c",-.24,-.48,-.54,-.78,-.93,-.9],["z"]],w:10.78,h:14.959},1:{d:[["M",3.3,-15.06],["c",.06,-.06,.21,-.03,.66,.15],["c",.81,.39,1.08,.39,1.83,.03],["c",.21,-.09,.39,-.15,.42,-.15],["c",.12,0,.21,.09,.27,.21],["c",.06,.12,.06,.33,.06,5.94],["c",0,3.93,0,5.85,.03,6.03],["c",.06,.36,.15,.69,.27,.96],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.12,-.27,.21,-.6,.27,-.96],["c",.03,-.18,.03,-1.59,.03,-4.29],["c",0,-3.87,0,-4.05,-.06,-4.14],["c",-.09,-.15,-.18,-.24,-.39,-.24],["c",-.12,0,-.15,.03,-.21,.06],["c",-.03,.06,-.45,.99,-.96,2.13],["c",-.48,1.14,-.9,2.1,-.93,2.16],["c",-.06,.15,-.21,.24,-.33,.24],["c",-.24,0,-.42,-.18,-.42,-.39],["c",0,-.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},2:{d:[["M",4.23,-14.97],["c",.57,-.06,1.68,0,2.34,.18],["c",.69,.18,1.5,.54,2.01,.9],["c",1.35,.96,1.95,2.25,1.77,3.81],["c",-.15,1.35,-.66,2.34,-1.68,3.15],["c",-.6,.48,-1.44,.93,-3.12,1.65],["c",-1.32,.57,-1.8,.81,-2.37,1.14],["c",-.57,.33,-.57,.33,-.24,.27],["c",.39,-.09,1.26,-.09,1.68,0],["c",.72,.15,1.41,.45,2.1,.9],["c",.99,.63,1.86,.87,2.55,.75],["c",.24,-.06,.42,-.15,.57,-.3],["c",.12,-.09,.3,-.42,.3,-.51],["c",0,-.09,.12,-.21,.24,-.24],["c",.18,-.03,.39,.12,.39,.3],["c",0,.12,-.15,.57,-.3,.87],["c",-.54,1.02,-1.56,1.74,-2.79,2.01],["c",-.42,.09,-1.23,.09,-1.62,.03],["c",-.81,-.18,-1.32,-.45,-2.01,-1.11],["c",-.45,-.45,-.63,-.57,-.96,-.69],["c",-.84,-.27,-1.89,.12,-2.25,.9],["c",-.12,.21,-.21,.54,-.21,.72],["c",0,.12,-.12,.21,-.27,.24],["c",-.15,0,-.27,-.03,-.33,-.15],["c",-.09,-.21,.09,-1.08,.33,-1.71],["c",.24,-.66,.66,-1.26,1.29,-1.89],["c",.45,-.45,.9,-.81,1.92,-1.56],["c",1.29,-.93,1.89,-1.44,2.34,-1.98],["c",.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-.06,-1.29,-.39,-2.31,-.96,-2.91],["c",-.36,-.33,-.72,-.51,-1.17,-.54],["c",-.84,-.03,-1.53,.42,-1.59,1.05],["c",-.03,.33,.12,.6,.57,1.14],["c",.45,.54,.54,.87,.42,1.41],["c",-.15,.63,-.54,1.11,-1.08,1.38],["c",-.63,.33,-1.2,.33,-1.83,0],["c",-.24,-.12,-.33,-.18,-.54,-.39],["c",-.18,-.18,-.27,-.3,-.36,-.51],["c",-.24,-.45,-.27,-.84,-.21,-1.38],["c",.12,-.75,.45,-1.41,1.02,-1.98],["c",.72,-.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.97},3:{d:[["M",3.78,-14.97],["c",.3,-.03,1.41,0,1.83,.06],["c",2.22,.3,3.51,1.32,3.72,2.91],["c",.03,.33,.03,1.26,-.03,1.65],["c",-.12,.84,-.48,1.47,-1.05,1.77],["c",-.27,.15,-.36,.24,-.45,.39],["c",-.09,.21,-.09,.36,0,.57],["c",.09,.15,.18,.24,.51,.39],["c",.75,.42,1.23,1.14,1.41,2.13],["c",.06,.42,.06,1.35,0,1.71],["c",-.18,.81,-.48,1.38,-1.02,1.95],["c",-.75,.72,-1.8,1.2,-3.18,1.38],["c",-.42,.06,-1.56,.06,-1.95,0],["c",-1.89,-.33,-3.18,-1.29,-3.51,-2.64],["c",-.03,-.12,-.03,-.33,-.03,-.6],["c",0,-.36,0,-.42,.06,-.63],["c",.12,-.3,.27,-.51,.51,-.75],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.51,.36,-.63,.54,-.6,.87],["c",.06,.54,.54,.9,1.38,.99],["c",.36,.06,.72,.03,.96,-.06],["c",.81,-.27,1.29,-1.23,1.44,-2.79],["c",.03,-.45,.03,-1.95,-.03,-2.37],["c",-.09,-.75,-.33,-1.23,-.75,-1.44],["c",-.33,-.18,-.45,-.18,-1.98,-.18],["c",-1.35,0,-1.41,0,-1.5,-.06],["c",-.18,-.12,-.24,-.39,-.12,-.6],["c",.12,-.15,.15,-.15,1.68,-.15],["c",1.5,0,1.62,0,1.89,-.15],["c",.18,-.09,.42,-.36,.54,-.57],["c",.18,-.42,.27,-.9,.3,-1.95],["c",.03,-1.2,-.06,-1.8,-.36,-2.37],["c",-.24,-.48,-.63,-.81,-1.14,-.96],["c",-.3,-.06,-1.08,-.06,-1.38,.03],["c",-.6,.15,-.9,.42,-.96,.84],["c",-.03,.3,.06,.45,.63,.84],["c",.33,.24,.42,.39,.45,.63],["c",.03,.72,-.57,1.5,-1.32,1.65],["c",-1.05,.27,-2.1,-.57,-2.1,-1.65],["c",0,-.45,.15,-.96,.39,-1.38],["c",.12,-.21,.54,-.63,.81,-.81],["c",.57,-.42,1.38,-.69,2.25,-.81],["z"]],w:9.735,h:14.967},4:{d:[["M",8.64,-14.94],["c",.27,-.09,.42,-.12,.54,-.03],["c",.09,.06,.15,.21,.15,.3],["c",-.03,.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-.03,.06,.12,.06,2.55,.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,.03,-2.37,.06,-2.46],["c",.03,-.06,.21,-.18,.57,-.42],["c",1.08,-.72,1.38,-1.08,1.86,-2.16],["c",.12,-.3,.24,-.54,.27,-.57],["c",.12,-.12,.39,-.06,.45,.12],["c",.06,.09,.06,.57,.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,.06],["c",.24,.15,.24,.54,0,.69],["c",-.09,.06,-.15,.06,-1.2,.06],["l",-1.08,0],["l",0,.33],["c",0,.57,.09,1.11,.3,1.53],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.21,-.42,.3,-.96,.3,-1.53],["l",0,-.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-.15],["c",-.18,-.12,-.3,-.39,-.27,-.54],["c",.03,-.06,.18,-.24,.33,-.45],["c",.75,-.9,1.59,-2.07,2.13,-3.03],["c",.33,-.54,.84,-1.62,1.05,-2.16],["c",.57,-1.41,.84,-2.64,.9,-4.05],["c",.03,-.63,.06,-.72,.24,-.81],["l",.12,-.06],["l",.45,.12],["c",.66,.18,1.02,.24,1.47,.27],["c",.6,.03,1.23,-.09,2.01,-.33],["z"]],w:11.795,h:14.994},5:{d:[["M",1.02,-14.94],["c",.12,-.09,.03,-.09,1.08,.06],["c",2.49,.36,4.35,.36,6.96,-.06],["c",.57,-.09,.66,-.06,.81,.06],["c",.15,.18,.12,.24,-.15,.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-.6,.09,-1.2,.12,-1.71,.12],["c",-.39,0,-.45,0,-.57,.06],["c",-.09,.06,-.15,.12,-.21,.21],["l",-.06,.12],["l",0,1.65],["l",0,1.65],["l",.21,-.21],["c",.66,-.57,1.41,-.96,2.19,-1.14],["c",.33,-.06,1.41,-.06,1.95,0],["c",2.61,.36,4.02,1.74,4.26,4.14],["c",.03,.45,.03,1.08,-.03,1.44],["c",-.18,1.02,-.78,2.01,-1.59,2.7],["c",-.72,.57,-1.62,1.02,-2.49,1.2],["c",-1.38,.27,-3.03,.06,-4.2,-.54],["c",-1.08,-.54,-1.71,-1.32,-1.86,-2.28],["c",-.09,-.69,.09,-1.29,.57,-1.74],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.18,.12,-.36,.3,-.42,.33],["c",-.36,.42,-.18,.99,.36,1.26],["c",.51,.27,1.47,.36,2.01,.27],["c",.93,-.21,1.47,-1.17,1.65,-2.91],["c",.06,-.45,.06,-1.89,0,-2.31],["c",-.15,-1.2,-.51,-2.1,-1.05,-2.55],["c",-.21,-.18,-.54,-.36,-.81,-.39],["c",-.3,-.06,-.84,-.03,-1.26,.06],["c",-.93,.18,-1.65,.6,-2.16,1.2],["c",-.15,.21,-.27,.3,-.39,.3],["c",-.15,0,-.3,-.09,-.36,-.18],["c",-.06,-.09,-.06,-.15,-.06,-3.66],["c",0,-3.39,0,-3.57,.06,-3.66],["c",.03,-.06,.09,-.15,.15,-.18],["z"]],w:10.212,h:14.997},6:{d:[["M",4.98,-14.97],["c",.36,-.03,1.2,0,1.59,.06],["c",.9,.15,1.68,.51,2.25,1.05],["c",.57,.51,.87,1.23,.84,1.98],["c",-.03,.51,-.21,.9,-.6,1.26],["c",-.24,.24,-.45,.39,-.75,.51],["c",-.21,.06,-.27,.06,-.6,.06],["c",-.33,0,-.39,0,-.6,-.06],["c",-.3,-.12,-.51,-.27,-.75,-.51],["c",-.39,-.36,-.57,-.78,-.57,-1.26],["c",0,-.27,0,-.3,.09,-.42],["c",.03,-.09,.18,-.21,.3,-.3],["c",.12,-.09,.3,-.21,.39,-.27],["c",.09,-.06,.21,-.18,.27,-.24],["c",.06,-.12,.09,-.15,.09,-.33],["c",0,-.18,-.03,-.24,-.09,-.36],["c",-.24,-.39,-.75,-.6,-1.38,-.57],["c",-.54,.03,-.9,.18,-1.23,.48],["c",-.81,.72,-1.08,2.16,-.96,5.37],["l",0,.63],["l",.3,-.12],["c",.78,-.27,1.29,-.33,2.1,-.27],["c",1.47,.12,2.49,.54,3.27,1.29],["c",.48,.51,.81,1.11,.96,1.89],["c",.06,.27,.06,.42,.06,.93],["c",0,.54,0,.69,-.06,.96],["c",-.15,.78,-.48,1.38,-.96,1.89],["c",-.54,.51,-1.17,.87,-1.98,1.08],["c",-1.14,.3,-2.4,.33,-3.24,.03],["c",-1.5,-.48,-2.64,-1.89,-3.27,-4.02],["c",-.36,-1.23,-.51,-2.82,-.42,-4.08],["c",.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",.66,7.41],["c",-.27,-.09,-.81,-.12,-1.08,-.06],["c",-.72,.18,-1.08,.69,-1.23,1.71],["c",-.06,.54,-.06,3,0,3.54],["c",.18,1.26,.72,1.77,1.8,1.74],["c",.39,-.03,.63,-.09,.9,-.27],["c",.66,-.42,.9,-1.32,.9,-3.24],["c",0,-2.22,-.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},7:{d:[["M",.21,-14.97],["c",.21,-.06,.45,0,.54,.15],["c",.06,.09,.06,.15,.06,.39],["c",0,.24,0,.33,.06,.42],["c",.06,.12,.21,.24,.27,.24],["c",.03,0,.12,-.12,.24,-.21],["c",.96,-1.2,2.58,-1.35,3.99,-.42],["c",.15,.12,.42,.3,.54,.45],["c",.48,.39,.81,.57,1.29,.6],["c",.69,.03,1.5,-.3,2.13,-.87],["c",.09,-.09,.27,-.3,.39,-.45],["c",.12,-.15,.24,-.27,.3,-.3],["c",.18,-.06,.39,.03,.51,.21],["c",.06,.18,.06,.24,-.27,.72],["c",-.18,.24,-.54,.78,-.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-.03,.33,-.03,.66,-.03,1.26],["c",0,.9,0,1.08,.15,1.89],["c",.06,.45,.06,.48,.03,.6],["c",-.06,.09,-.21,.21,-.3,.21],["c",-.03,0,-.27,-.06,-.54,-.15],["c",-.84,-.27,-1.11,-.3,-1.65,-.3],["c",-.57,0,-.84,.03,-1.56,.27],["c",-.6,.18,-.69,.21,-.81,.15],["c",-.12,-.06,-.21,-.18,-.21,-.3],["c",0,-.15,.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",.21,-.27,.36,-.48,.33,-.48],["c",0,0,-.12,.06,-.27,.12],["c",-.54,.3,-.99,.39,-1.56,.39],["c",-.75,.03,-1.2,-.18,-1.83,-.75],["c",-.99,-.9,-1.83,-1.17,-2.31,-.72],["c",-.18,.15,-.36,.51,-.45,.84],["c",-.06,.24,-.06,.33,-.09,1.98],["c",0,1.62,-.03,1.74,-.06,1.8],["c",-.15,.24,-.54,.24,-.69,0],["c",-.06,-.09,-.06,-.15,-.06,-3.57],["c",0,-3.42,0,-3.48,.06,-3.57],["c",.03,-.06,.09,-.12,.15,-.15],["z"]],w:10.561,h:15.093},8:{d:[["M",4.98,-14.97],["c",.33,-.03,1.02,-.03,1.32,0],["c",1.32,.12,2.49,.6,3.21,1.32],["c",.39,.39,.66,.81,.78,1.29],["c",.09,.36,.09,1.08,0,1.44],["c",-.21,.84,-.66,1.59,-1.59,2.55],["l",-.3,.3],["l",.27,.18],["c",1.47,.93,2.31,2.31,2.25,3.75],["c",-.03,.75,-.24,1.35,-.63,1.95],["c",-.45,.66,-1.02,1.14,-1.83,1.53],["c",-1.8,.87,-4.2,.87,-6,.03],["c",-1.62,-.78,-2.52,-2.16,-2.46,-3.66],["c",.06,-.99,.54,-1.77,1.8,-2.97],["c",.54,-.51,.54,-.54,.48,-.57],["c",-.39,-.27,-.96,-.78,-1.2,-1.14],["c",-.75,-1.11,-.87,-2.4,-.3,-3.6],["c",.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,.69],["c",-.42,-.09,-1.11,-.12,-1.38,-.06],["c",-.3,.06,-.6,.18,-.81,.3],["c",-.21,.12,-.6,.51,-.72,.72],["c",-.51,.87,-.42,1.89,.21,2.52],["c",.21,.21,.36,.3,1.95,1.23],["c",.96,.54,1.74,.99,1.77,1.02],["c",.09,0,.63,-.6,.99,-1.11],["c",.21,-.36,.48,-.87,.57,-1.23],["c",.06,-.24,.06,-.36,.06,-.72],["c",0,-.45,-.03,-.66,-.15,-.99],["c",-.39,-.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-.03,0,-.18,.15,-.39,.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",.09,1.59,1.35,2.85,3.21,3.24],["c",.33,.06,.45,.06,.93,.06],["c",.63,0,.81,-.03,1.29,-.27],["c",.9,-.42,1.47,-1.41,1.41,-2.4],["c",-.06,-.66,-.39,-1.29,-.9,-1.65],["c",-.12,-.09,-1.05,-.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},9:{d:[["M",4.23,-14.97],["c",.42,-.03,1.29,0,1.62,.06],["c",.51,.12,.93,.3,1.38,.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",.18,2.55,-.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-.06,-2.31,-.45,-3.03,-1.14],["c",-.57,-.51,-.87,-1.23,-.84,-1.98],["c",.03,-.51,.21,-.9,.6,-1.26],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.39,.36,.57,.78,.57,1.26],["c",0,.27,0,.3,-.09,.42],["c",-.03,.09,-.18,.21,-.3,.3],["c",-.12,.09,-.3,.21,-.39,.27],["c",-.09,.06,-.21,.18,-.27,.24],["c",-.06,.12,-.06,.15,-.06,.33],["c",0,.18,0,.24,.06,.36],["c",.24,.39,.75,.6,1.38,.57],["c",.54,-.03,.9,-.18,1.23,-.48],["c",.81,-.72,1.08,-2.16,.96,-5.37],["l",0,-.63],["l",-.3,.12],["c",-.78,.27,-1.29,.33,-2.1,.27],["c",-1.47,-.12,-2.49,-.54,-3.27,-1.29],["c",-.48,-.51,-.81,-1.11,-.96,-1.89],["c",-.06,-.27,-.06,-.42,-.06,-.96],["c",0,-.51,0,-.66,.06,-.93],["c",.15,-.78,.48,-1.38,.96,-1.89],["c",.15,-.12,.33,-.27,.42,-.36],["c",.69,-.51,1.62,-.81,2.76,-.93],["z"],["m",1.17,.66],["c",-.21,-.06,-.57,-.06,-.81,-.03],["c",-.78,.12,-1.26,.69,-1.41,1.74],["c",-.12,.63,-.15,1.95,-.09,2.79],["c",.12,1.71,.63,2.4,1.77,2.46],["c",1.08,.03,1.62,-.48,1.8,-1.74],["c",.06,-.54,.06,-3,0,-3.54],["c",-.15,-1.05,-.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},"rests.multimeasure":{d:[["M",0,-4],["l",0,16],["l",1,0],["l",0,-5],["l",40,0],["l",0,5],["l",1,0],["l",0,-16],["l",-1,0],["l",0,5],["l",-40,0],["l",0,-5],["z"]],w:42,h:18},"rests.whole":{d:[["M",.06,.03],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",.06,-4.62],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",.12,-.06,.24,-.06,.36,-.03],["c",.09,.06,4.74,5.58,4.86,5.82],["c",.21,.39,.15,.78,-.15,1.26],["c",-.24,.33,-.72,.81,-1.62,1.56],["c",-.45,.36,-.87,.75,-.96,.84],["c",-.93,.99,-1.14,2.49,-.6,3.63],["c",.18,.39,.27,.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",0,.18,-.18,.36,-.36,.39],["c",-.15,0,-.27,-.06,-.48,-.27],["c",-.75,-.75,-2.46,-1.29,-3.39,-1.08],["c",-.45,.09,-.69,.27,-.9,.69],["c",-.12,.3,-.21,.66,-.24,1.14],["c",-.03,.66,.09,1.35,.3,2.01],["c",.15,.42,.24,.66,.45,.96],["c",.18,.24,.18,.33,.03,.42],["c",-.12,.06,-.18,.03,-.45,-.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-.27,-1.05,-.15,-1.77,.27,-2.07],["c",.21,-.12,.42,-.15,.87,-.15],["c",.87,.06,2.1,.39,3.3,.9],["l",.39,.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-.09,-.24,-.12,-.48,-.03,-.75],["c",.15,-.48,.57,-.96,1.83,-2.01],["c",.45,-.36,.84,-.72,.93,-.78],["c",.69,-.75,1.02,-1.8,.9,-2.79],["c",-.06,-.33,-.21,-.84,-.39,-1.11],["c",-.09,-.15,-.45,-.6,-.81,-1.05],["c",-.36,-.42,-.69,-.81,-.72,-.87],["c",-.09,-.18,0,-.42,.21,-.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.33,-.09],["c",.39,-.18,1.32,-1.29,1.68,-1.98],["c",.09,-.21,.24,-.3,.39,-.3],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.15,-.57,1.68,-4.92],["c",.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-.51,.15],["c",-1.08,.36,-1.74,.48,-2.55,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.87,.42],["c",.39,-.18,1.2,-1.23,1.62,-2.07],["c",.06,-.15,.24,-.24,.36,-.24],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-.03,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.12,-.57,1.44,-4.92],["c",.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-.03,0,-.27,.06,-.54,.15],["c",-1.08,.36,-1.77,.48,-2.58,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.12,0,.18,0,.33,-.09],["c",.33,-.15,1.02,-.93,1.41,-1.59],["c",.12,-.21,.18,-.39,.39,-1.08],["c",.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-.21,.06,-.42,.15],["c",-.51,.15,-1.2,.33,-1.68,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.27,-.06],["c",.33,-.21,.99,-1.11,1.44,-1.98],["c",.09,-.24,.21,-.33,.39,-.33],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.09,-.57,1.23,-4.92],["c",.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-.03,-.12,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.12,.09,.3,.18,.48,.21],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.29,-1.29,1.56,-1.89],["c",.03,-.12,1.23,-4.59,1.23,-4.65],["c",0,-.03,-.18,.03,-.39,.12],["c",-.63,.18,-1.2,.36,-1.74,.45],["c",-.39,.06,-.54,.06,-1.02,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.18,.18,.51,.27,.72,.15],["c",.3,-.12,.69,-.57,1.08,-1.17],["c",.42,-.6,.39,-.51,1.05,-3.03],["c",.33,-1.26,.6,-2.31,.6,-2.34],["c",0,0,-.21,.03,-.45,.12],["c",-.57,.18,-1.14,.33,-1.62,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.54,.3,.75,.18],["c",.24,-.12,.63,-.66,1.08,-1.56],["c",.33,-.66,.39,-.72,.6,-.72],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.06,-.57,1.05,-4.95],["c",.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-.24,.06,-.51,.15],["c",-.66,.24,-1.2,.36,-1.77,.48],["c",-.42,.06,-.57,.06,-1.05,.06],["c",-.69,0,-.87,-.03,-1.35,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.21,.03,.39,-.09,.72,-.42],["c",.45,-.45,1.02,-1.26,1.17,-1.65],["c",.03,-.09,.27,-1.14,.54,-2.34],["c",.27,-1.2,.48,-2.19,.51,-2.22],["c",0,-.03,-.09,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.9,.42],["c",.36,-.18,1.2,-1.26,1.47,-1.89],["c",.03,-.09,.3,-1.2,.57,-2.43],["l",.51,-2.28],["l",-.54,.18],["c",-1.11,.36,-1.8,.48,-2.61,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.21,.21,.54,.3,.75,.18],["c",.36,-.18,.93,-.93,1.29,-1.68],["c",.12,-.24,.18,-.48,.63,-2.55],["l",.51,-2.31],["c",0,-.03,-.18,.03,-.39,.12],["c",-1.14,.36,-2.1,.54,-2.82,.51],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.21,0,.33,-.06,.54,-.36],["c",.15,-.21,.54,-.93,.78,-1.47],["c",.15,-.33,.18,-.39,.3,-.48],["c",.18,-.09,.45,0,.51,.15],["c",.03,.09,-7.11,42.75,-7.17,42.84],["c",-.03,.03,-.15,.09,-.24,.15],["c",-.18,.06,-.24,.06,-.45,.06],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.03,-.57,.84,-4.98],["c",.51,-2.7,.93,-4.92,.9,-4.92],["c",0,0,-.15,.06,-.36,.12],["c",-.78,.27,-1.62,.48,-2.31,.57],["c",-.15,.03,-.54,.03,-.81,.03],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.63,.48],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.14,-1.11,1.5,-1.83],["c",.12,-.27,.12,-.27,.54,-2.52],["c",.24,-1.23,.42,-2.25,.39,-2.25],["c",0,0,-.24,.06,-.51,.18],["c",-1.26,.39,-2.25,.57,-3.06,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.51,.3,.75,.18],["c",.36,-.15,1.05,-.99,1.41,-1.77],["l",.15,-.3],["l",.42,-2.25],["c",.21,-1.26,.42,-2.28,.39,-2.28],["l",-.51,.15],["c",-1.11,.39,-1.89,.51,-2.7,.51],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.18,.48,.27,.72,.21],["c",.33,-.12,1.14,-1.26,1.41,-1.95],["c",0,-.09,.21,-1.11,.45,-2.34],["c",.21,-1.2,.39,-2.22,.39,-2.28],["c",.03,-.03,0,-.03,-.45,.12],["c",-.57,.18,-1.2,.33,-1.71,.42],["c",-.3,.06,-.51,.06,-.93,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.18,0,.36,-.09,.57,-.33],["c",.33,-.36,.78,-1.14,.93,-1.56],["c",.03,-.12,.24,-1.2,.45,-2.4],["c",.24,-1.2,.42,-2.22,.42,-2.28],["c",.03,-.03,0,-.03,-.39,.09],["c",-1.05,.36,-1.8,.48,-2.58,.48],["c",-.63,0,-.84,-.03,-1.29,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.31],["c",0,1.23,0,2.22,.03,2.22],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.43],["c",0,1.32,0,2.43,.03,2.43],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.52],["c",0,2.28,-.03,2.55,-.06,2.64],["c",-.21,.36,-.72,.36,-.93,0],["c",-.03,-.09,-.06,-.33,-.06,-2.43],["l",0,-2.31],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.43],["c",0,2.58,0,2.52,-.15,2.67],["c",-.06,.09,-.27,.18,-.36,.18],["c",-.12,0,-.33,-.09,-.39,-.18],["c",-.15,-.15,-.15,-.09,-.15,-2.43],["c",0,-1.23,0,-2.22,-.03,-2.22],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-.03,-2.43],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.52],["c",0,-2.28,.03,-2.55,.06,-2.64],["c",.21,-.36,.72,-.36,.93,0],["c",.03,.09,.06,.33,.06,2.43],["l",.03,2.31],["l",1.26,-.51],["l",1.26,-.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,.06,-2.55],["c",.06,-.12,.12,-.18,.27,-.24],["z"],["m",-.33,10.65],["l",0,-2.43],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.46],["l",0,2.43],["l",.09,-.03],["c",.06,-.03,.63,-.27,1.29,-.51],["l",1.17,-.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.01],["c",0,1.05,0,1.89,.03,1.89],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.37],["c",0,1.32,0,2.37,.03,2.37],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.25],["c",0,1.95,0,2.28,-.06,2.37],["c",-.06,.12,-.12,.21,-.24,.27],["c",-.27,.12,-.54,.03,-.69,-.24],["c",-.06,-.12,-.06,-.21,-.06,-2.01],["c",0,-1.05,0,-1.89,-.03,-1.89],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-.03,-2.37],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,.06,-2.4],["c",.06,-.12,.12,-.18,.27,-.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",.21,-11.4],["c",.24,-.06,.78,0,.99,.15],["c",.03,.03,.03,.48,0,2.61],["c",-.03,1.44,-.03,2.61,-.03,2.61],["c",0,.03,.75,-.09,1.68,-.24],["c",.96,-.18,1.71,-.27,1.74,-.27],["c",.15,.03,.27,.15,.36,.3],["l",.06,.12],["l",.09,8.67],["c",.09,6.96,.12,8.67,.09,8.67],["c",-.03,.03,-.12,.06,-.21,.09],["c",-.24,.09,-.72,.09,-.96,0],["c",-.09,-.03,-.18,-.06,-.21,-.09],["c",-.03,-.03,-.03,-.48,0,-2.61],["c",.03,-1.44,.03,-2.61,.03,-2.61],["c",0,-.03,-.75,.09,-1.68,.24],["c",-.96,.18,-1.71,.27,-1.74,.27],["c",-.15,-.03,-.27,-.15,-.36,-.3],["l",-.06,-.15],["l",-.09,-7.53],["c",-.06,-4.14,-.09,-8.04,-.12,-8.67],["l",0,-1.11],["l",.15,-.06],["c",.09,-.03,.21,-.06,.27,-.09],["z"],["m",3.75,8.4],["c",0,-.33,0,-.42,-.03,-.42],["c",-.12,0,-2.79,.45,-2.79,.48],["c",-.03,0,-.09,6.3,-.09,6.33],["c",.03,0,2.79,-.45,2.82,-.48],["c",0,0,.09,-4.53,.09,-5.91],["z"]],w:5.4,h:22.8},"accidentals.flat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.6,-.12,9.06],["c",-.09,5.55,-.15,9.06,-.18,9.12],["c",-.03,.09,-.09,.18,-.15,.27],["c",-.24,.21,-.54,.24,-.81,.06],["c",-.06,-.03,-.27,-.24,-.45,-.42],["c",-.36,-.42,-.66,-.66,-1.8,-1.44],["c",-1.23,-.84,-1.83,-1.32,-2.25,-1.77],["c",-.66,-.78,-.96,-1.56,-.93,-2.46],["c",.09,-1.41,1.11,-2.58,2.4,-2.79],["c",.3,-.06,.84,-.03,1.23,.06],["c",.54,.12,1.08,.33,1.53,.63],["c",.12,.09,.24,.15,.24,.12],["c",0,0,-.12,-8.37,-.18,-9.75],["l",0,-.66],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",-1.65,10.95],["c",-.6,-.18,-1.08,.09,-1.38,.69],["c",-.27,.6,-.36,1.38,-.18,2.07],["c",.12,.42,.42,.99,.72,1.41],["c",.3,.42,.93,1.05,1.56,1.59],["l",.48,.39],["l",0,-.12],["c",.03,-.09,.03,-.48,.06,-.9],["c",.03,-.57,.03,-1.08,0,-2.22],["c",-.03,-1.62,-.03,-1.62,-.24,-2.07],["c",-.21,-.42,-.6,-.75,-1.02,-.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.33,-.03,4.89],["c",-.06,2.67,-.09,5.01,-.09,5.22],["l",0,.36],["l",.15,-.15],["c",.36,-.3,.75,-.51,1.2,-.63],["c",.33,-.09,.96,-.09,1.26,-.03],["c",.27,.09,.63,.27,.87,.45],["l",.21,.15],["l",0,-.27],["c",0,-.15,-.03,-2.43,-.09,-5.1],["c",-.09,-4.56,-.09,-4.86,-.03,-4.89],["c",.15,-.12,.39,-.15,.72,-.15],["c",.3,0,.54,.03,.69,.15],["c",.06,.03,.06,.33,-.03,4.95],["c",-.06,2.7,-.09,5.04,-.09,5.22],["l",.03,.3],["l",.21,-.15],["c",.69,-.48,1.44,-.69,2.28,-.69],["c",.51,0,.78,.03,1.2,.21],["c",1.32,.63,2.01,2.28,1.53,3.69],["c",-.21,.57,-.51,1.02,-1.05,1.56],["c",-.42,.42,-.81,.72,-1.92,1.5],["c",-1.26,.87,-1.5,1.08,-1.86,1.5],["c",-.39,.45,-.54,.54,-.81,.51],["c",-.18,0,-.21,0,-.33,-.06],["l",-.21,-.21],["l",-.06,-.12],["l",-.03,-.99],["c",-.03,-.54,-.03,-1.29,-.06,-1.68],["l",0,-.69],["l",-.21,.24],["c",-.36,.42,-.75,.75,-1.8,1.62],["c",-1.02,.84,-1.2,.99,-1.44,1.38],["c",-.36,.51,-.54,.6,-.9,.51],["c",-.15,-.03,-.39,-.27,-.42,-.42],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",2.52,10.98],["c",-.18,-.09,-.48,-.12,-.66,-.06],["c",-.39,.15,-.69,.54,-.84,1.14],["c",-.06,.24,-.06,.39,-.09,1.74],["c",-.03,1.44,0,2.73,.06,3.18],["l",.03,.15],["l",.27,-.27],["c",.93,-.96,1.5,-1.95,1.74,-3.06],["c",.06,-.27,.06,-.39,.06,-.96],["c",0,-.54,0,-.69,-.06,-.93],["c",-.09,-.51,-.27,-.81,-.51,-.93],["z"],["m",5.43,0],["c",-.18,-.09,-.51,-.12,-.72,-.06],["c",-.54,.12,-.96,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.9],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.36,-.3],["c",.42,-.36,1.02,-.96,1.29,-1.29],["c",.36,-.45,.66,-.99,.81,-1.41],["c",.42,-1.23,.15,-2.76,-.6,-3.12],["z"]],w:11.613,h:18.804},"accidentals.dblsharp":{d:[["M",-.18,-3.96],["c",.06,-.03,.12,-.06,.15,-.06],["c",.09,0,2.76,.27,2.79,.3],["c",.12,.03,.15,.12,.15,.51],["c",.06,.96,.24,1.59,.57,2.1],["c",.06,.09,.15,.21,.18,.24],["l",.09,.06],["l",.09,-.06],["c",.03,-.03,.12,-.15,.18,-.24],["c",.33,-.51,.51,-1.14,.57,-2.1],["c",0,-.39,.03,-.45,.12,-.51],["c",.03,0,.66,-.09,1.44,-.15],["c",1.47,-.15,1.5,-.15,1.56,-.03],["c",.03,.06,0,.42,-.09,1.44],["c",-.09,.72,-.15,1.35,-.15,1.38],["c",0,.03,-.03,.09,-.06,.12],["c",-.06,.06,-.12,.09,-.51,.09],["c",-1.08,.06,-1.8,.3,-2.28,.75],["l",-.12,.09],["l",.09,.09],["c",.12,.15,.39,.33,.63,.45],["c",.42,.18,.96,.27,1.68,.33],["c",.39,0,.45,.03,.51,.09],["c",.03,.03,.06,.09,.06,.12],["c",0,.03,.06,.66,.15,1.38],["c",.09,1.02,.12,1.38,.09,1.44],["c",-.06,.12,-.09,.12,-1.56,-.03],["c",-.78,-.06,-1.41,-.15,-1.44,-.15],["c",-.09,-.06,-.12,-.12,-.12,-.54],["c",-.06,-.93,-.24,-1.56,-.57,-2.07],["c",-.06,-.09,-.15,-.21,-.18,-.24],["l",-.09,-.06],["l",-.09,.06],["c",-.03,.03,-.12,.15,-.18,.24],["c",-.33,.51,-.51,1.14,-.57,2.07],["c",0,.42,-.03,.48,-.12,.54],["c",-.03,0,-.66,.09,-1.44,.15],["c",-1.47,.15,-1.5,.15,-1.56,.03],["c",-.03,-.06,0,-.42,.09,-1.44],["c",.09,-.72,.15,-1.35,.15,-1.38],["c",0,-.03,.03,-.09,.06,-.12],["c",.06,-.06,.12,-.09,.51,-.09],["c",.72,-.06,1.26,-.15,1.68,-.33],["c",.24,-.12,.51,-.3,.63,-.45],["l",.09,-.09],["l",-.12,-.09],["c",-.48,-.45,-1.2,-.69,-2.28,-.75],["c",-.39,0,-.45,-.03,-.51,-.09],["c",-.03,-.03,-.06,-.09,-.06,-.12],["c",0,-.03,-.06,-.63,-.12,-1.38],["c",-.09,-.72,-.15,-1.35,-.15,-1.38],["z"]],w:7.95,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",.09,-.03,.27,-.06,.39,-.06],["c",.96,0,1.74,.78,1.74,1.71],["c",0,.96,-.78,1.74,-1.71,1.74],["c",-.96,0,-1.74,-.78,-1.74,-1.71],["c",0,-.78,.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-.69,-4.02],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["c",.06,.15,.06,.18,.06,1.41],["l",0,1.23],["l",.12,-.18],["c",.72,-1.26,2.64,-2.31,4.86,-2.64],["c",.81,-.15,1.11,-.15,2.13,-.15],["c",.99,0,1.29,0,2.1,.15],["c",.75,.12,1.38,.27,2.04,.54],["c",1.35,.51,2.34,1.26,2.82,2.1],["l",.12,.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,.06,-1.38],["c",.09,-.18,.15,-.24,.33,-.33],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,3.54],["l",0,3.54],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.38],["l",0,-1.23],["l",-.12,.18],["c",-.48,.84,-1.47,1.59,-2.82,2.1],["c",-.84,.33,-1.71,.54,-2.85,.66],["c",-.45,.06,-2.16,.06,-2.61,0],["c",-1.14,-.12,-2.01,-.33,-2.85,-.66],["c",-1.35,-.51,-2.34,-1.26,-2.82,-2.1],["l",-.12,-.18],["l",0,1.23],["c",0,1.23,0,1.26,-.06,1.38],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,.06,-3.66],["c",.09,-.18,.15,-.24,.33,-.33],["z"],["m",7.71,.63],["c",-.36,-.06,-.9,-.06,-1.14,0],["c",-.3,.03,-.66,.24,-.87,.42],["c",-.6,.54,-.9,1.62,-.75,2.82],["c",.12,.93,.51,1.68,1.11,2.31],["c",.75,.72,1.83,1.2,2.85,1.26],["c",1.05,.06,1.83,-.54,2.1,-1.65],["c",.21,-.9,.12,-1.95,-.24,-2.82],["c",-.36,-.81,-1.08,-1.53,-1.95,-1.95],["c",-.3,-.15,-.78,-.3,-1.11,-.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",.51,-.03,2.01,0,2.52,.03],["c",1.41,.18,2.64,.51,3.72,1.08],["c",1.2,.63,1.95,1.41,2.19,2.31],["c",.09,.33,.09,.9,0,1.23],["c",-.24,.9,-.99,1.68,-2.19,2.31],["c",-1.08,.57,-2.28,.9,-3.75,1.08],["c",-.66,.06,-2.31,.06,-2.97,0],["c",-1.47,-.18,-2.67,-.51,-3.75,-1.08],["c",-1.2,-.63,-1.95,-1.41,-2.19,-2.31],["c",-.09,-.33,-.09,-.9,0,-1.23],["c",.24,-.9,.99,-1.68,2.19,-2.31],["c",1.2,-.63,2.61,-.99,4.23,-1.11],["z"],["m",.57,.66],["c",-.87,-.15,-1.53,0,-2.04,.51],["c",-.15,.15,-.24,.27,-.33,.48],["c",-.24,.51,-.36,1.08,-.33,1.77],["c",.03,.69,.18,1.26,.42,1.77],["c",.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,.21,1.95,-.15,2.34,-.99],["c",.24,-.51,.36,-1.08,.33,-1.8],["c",-.06,-1.11,-.45,-2.04,-1.17,-2.76],["c",-.63,-.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",.06,-.03,.27,-.03,.48,-.03],["c",1.05,0,1.71,.24,2.1,.81],["c",.42,.6,.45,1.35,.18,2.4],["c",-.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,.93,-3.18,1.44,-5.4,1.53],["c",-1.17,.03,-1.89,-.21,-2.28,-.81],["c",-.42,-.6,-.45,-1.35,-.18,-2.4],["c",.42,-1.59,1.14,-2.73,2.16,-3.39],["c",.63,-.42,1.23,-.72,1.98,-.96],["c",.9,-.3,1.65,-.42,3.12,-.54],["z"],["m",1.29,.87],["c",-.27,-.09,-.63,-.12,-.9,-.03],["c",-.72,.24,-1.53,.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-.36,.72,-.06,1.5,.66,1.77],["c",.24,.12,.69,.09,.99,0],["c",.84,-.3,1.92,-.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",.36,-.72,.06,-1.5,-.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",.36,-.03,1.2,0,1.53,.06],["c",1.17,.24,1.89,.84,2.16,1.83],["c",.06,.18,.06,.3,.06,.66],["c",0,.45,0,.63,-.15,1.08],["c",-.66,2.04,-3.06,3.93,-5.52,4.38],["c",-.54,.09,-1.44,.09,-1.83,.03],["c",-1.23,-.27,-1.98,-.87,-2.25,-1.86],["c",-.06,-.18,-.06,-.3,-.06,-.66],["c",0,-.45,0,-.63,.15,-1.08],["c",.24,-.78,.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[["M",9.3,-7.77],["c",.06,-.06,.18,-.06,1.71,-.06],["l",1.65,0],["l",.09,.09],["c",.06,.06,.06,.09,.06,.15],["c",-.03,.12,-9.21,15.24,-9.3,15.33],["c",-.06,.06,-.18,.06,-1.71,.06],["l",-1.65,0],["l",-.09,-.09],["c",-.06,-.06,-.06,-.09,-.06,-.15],["c",.03,-.12,9.21,-15.24,9.3,-15.33],["z"]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[["M",.78,-4.05],["c",.12,-.03,.24,-.03,.36,.03],["c",.03,.03,.93,.72,1.95,1.56],["l",1.86,1.5],["l",1.86,-1.5],["c",1.02,-.84,1.92,-1.53,1.95,-1.56],["c",.21,-.12,.33,-.09,.75,.24],["c",.3,.27,.36,.36,.36,.54],["c",0,.03,-.03,.12,-.06,.18],["c",-.03,.06,-.9,.75,-1.89,1.56],["l",-1.8,1.47],["c",0,.03,.81,.69,1.8,1.5],["c",.99,.81,1.86,1.5,1.89,1.56],["c",.03,.06,.06,.15,.06,.18],["c",0,.18,-.06,.27,-.36,.54],["c",-.42,.33,-.54,.36,-.75,.24],["c",-.03,-.03,-.93,-.72,-1.95,-1.56],["l",-1.86,-1.5],["l",-1.86,1.5],["c",-1.02,.84,-1.92,1.53,-1.95,1.56],["c",-.21,.12,-.33,.09,-.75,-.24],["c",-.3,-.27,-.36,-.36,-.36,-.54],["c",0,-.03,.03,-.12,.06,-.18],["c",.03,-.06,.9,-.75,1.89,-1.56],["l",1.8,-1.47],["c",0,-.03,-.81,-.69,-1.8,-1.5],["c",-.99,-.81,-1.86,-1.5,-1.89,-1.56],["c",-.06,-.12,-.09,-.21,-.03,-.36],["c",.03,-.09,.57,-.57,.72,-.63],["z"]],w:9.843,h:8.139},"scripts.ufermata":{d:[["M",-.75,-10.77],["c",.12,0,.45,-.03,.69,-.03],["c",2.91,-.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",.12,.51,.12,.57,.03,.69],["c",-.12,.21,-.48,.27,-.69,.12],["c",-.12,-.09,-.18,-.24,-.27,-.69],["c",-.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-.78,-.21,-1.2,-.24,-2.07,-.24],["c",-.63,0,-.84,0,-1.2,.06],["c",-1.83,.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-.09,.45,-.15,.6,-.27,.69],["c",-.21,.15,-.57,.09,-.69,-.12],["c",-.09,-.12,-.09,-.18,.03,-.69],["c",.33,-1.62,.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",.33,7.47],["c",1.38,-.3,2.58,.9,2.31,2.25],["c",-.15,.72,-.78,1.35,-1.47,1.5],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-.42],["c",.15,-.09,.36,-.06,.51,.03],["c",.12,.09,.18,.24,.27,.66],["c",.78,3.66,3.42,6.57,6.78,7.41],["c",.78,.21,1.2,.24,2.07,.24],["c",.63,0,.84,0,1.2,-.06],["c",1.83,-.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",.09,-.42,.15,-.57,.27,-.66],["c",.21,-.15,.57,-.09,.69,.12],["c",.09,.12,.09,.18,-.03,.69],["c",-.33,1.62,-.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-.48,-.96,-.84,-1.92,-1.14,-2.97],["c",-.18,-.69,-.42,-1.74,-.42,-1.92],["c",0,-.12,.09,-.27,.24,-.33],["z"],["m",9.21,0],["c",1.2,-.27,2.34,.63,2.34,1.86],["c",0,.9,-.66,1.68,-1.5,1.89],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",.06,-.03,.15,-.06,.18,-.06],["c",.06,0,2.85,.72,6.24,1.59],["l",6.33,1.65],["c",.33,.06,.45,.21,.45,.51],["c",0,.3,-.12,.45,-.45,.51],["l",-6.33,1.65],["c",-3.39,.87,-6.18,1.59,-6.21,1.59],["c",-.21,0,-.48,-.24,-.51,-.45],["c",0,-.15,.06,-.36,.18,-.45],["c",.09,-.06,.87,-.27,3.84,-1.05],["c",2.04,-.54,3.84,-.99,4.02,-1.02],["c",.15,-.06,1.14,-.24,2.22,-.42],["c",1.05,-.18,1.92,-.36,1.92,-.36],["c",0,0,-.87,-.18,-1.92,-.36],["c",-1.08,-.18,-2.07,-.36,-2.22,-.42],["c",-.18,-.03,-1.98,-.48,-4.02,-1.02],["c",-2.97,-.78,-3.75,-.99,-3.84,-1.05],["c",-.12,-.09,-.18,-.3,-.18,-.45],["c",.03,-.15,.15,-.3,.3,-.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-.36,-1.47],["c",.93,-.21,1.86,.51,1.86,1.47],["c",0,.93,-.87,1.65,-1.8,1.47],["c",-.54,-.12,-1.02,-.57,-1.14,-1.08],["c",-.21,-.81,.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-.48],["l",.12,-.06],["l",4.08,0],["l",4.08,0],["l",.12,.06],["c",.39,.21,.39,.75,0,.96],["l",-.12,.06],["l",-4.08,0],["l",-4.08,0],["l",-.12,-.06],["c",-.39,-.21,-.39,-.75,0,-.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-.15,-8.19],["c",.15,-.12,.36,-.03,.45,.15],["c",.21,.42,3.45,7.65,3.45,7.71],["c",0,.12,-.12,.27,-.21,.3],["c",-.03,.03,-.51,.03,-1.14,.03],["c",-1.05,0,-1.08,0,-1.17,-.06],["c",-.09,-.06,-.24,-.36,-1.17,-2.4],["c",-.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",0,-.03,-.51,1.02,-1.08,2.34],["c",-.93,2.07,-1.08,2.34,-1.14,2.4],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.06,3.24,-7.32,3.45,-7.71],["c",.03,-.06,.09,-.15,.15,-.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,.03],["c",.03,0,.57,-.03,1.17,-.03],["c",1.05,0,1.08,0,1.17,.06],["c",.09,.06,.24,.36,1.17,2.4],["c",.57,1.29,1.05,2.34,1.08,2.34],["c",0,.03,.51,-1.02,1.08,-2.34],["c",.93,-2.07,1.08,-2.34,1.14,-2.4],["c",.06,-.03,.15,-.06,.18,-.06],["c",.15,0,.33,.18,.33,.33],["c",0,.09,-3.45,7.74,-3.54,7.83],["c",-.12,.12,-.3,.12,-.42,0],["c",-.09,-.09,-3.54,-7.74,-3.54,-7.83],["c",0,-.09,.12,-.27,.18,-.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-.27,-4.08],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.5],["l",0,1.47],["l",1.47,0],["l",1.5,0],["l",.15,.06],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.09,.36,0,.54],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.12,.06,-.18,.06,-1.62,.06],["l",-1.47,0],["l",0,1.47],["l",0,1.47],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-1.47],["l",0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.47,0],["l",1.47,0],["l",0,-1.47],["c",0,-1.44,0,-1.5,.06,-1.62],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",.12,-.09,.36,-.06,.48,.03],["c",.03,.03,.09,.09,.12,.15],["c",.03,.06,.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",.63,2.46],["l",.63,-2.46],["c",.63,-2.4,.66,-2.55,2.01,-6.96],["c",.75,-2.49,1.38,-4.56,1.41,-4.62],["c",.06,-.15,.18,-.21,.36,-.24],["c",.15,0,.3,.06,.39,.18],["c",.15,.21,.24,-.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,.12,-.06,.27,-.09,.3],["c",-.12,.21,-.6,.21,-.72,0],["c",-.03,-.03,-.09,-.18,-.09,-.3],["c",-.03,-.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",.03,-.03,.09,-.09,.15,-.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",.09,-.06],["l",5.46,0],["l",5.46,0],["l",.09,.06],["l",.06,.09],["l",0,4.77],["c",0,5.28,0,4.89,-.18,5.01],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.06,-.09,-.06,-.18,-.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-.06,2.97],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.21,-.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",.36,-.06,1.05,-.06,1.44,.03],["c",.78,.15,1.5,.51,2.34,1.14],["c",.6,.45,1.05,.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",.6,.36,1.32,.57,1.92,.57],["c",.9,0,1.71,-.57,1.89,-1.35],["c",.24,-.93,-.39,-1.89,-1.35,-2.1],["l",-.15,-.06],["l",-.09,.15],["c",-.03,.09,-.15,.24,-.24,.33],["c",-.72,.72,-2.04,.54,-2.49,-.36],["c",-.48,-.93,.03,-1.86,1.17,-2.19],["c",.3,-.09,1.02,-.09,1.35,0],["c",.99,.27,1.74,.87,2.25,1.83],["c",.69,1.41,.63,3,-.21,4.26],["c",-.21,.3,-.69,.81,-.99,1.02],["c",-.3,.21,-.84,.45,-1.17,.54],["c",-1.23,.36,-2.49,.15,-3.72,-.6],["c",-.75,-.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-.6,-.36,-1.32,-.57,-1.92,-.57],["c",-.9,0,-1.71,.57,-1.89,1.35],["c",-.24,.93,.39,1.89,1.35,2.1],["l",.15,.06],["l",.09,-.15],["c",.03,-.09,.15,-.24,.24,-.33],["c",.72,-.72,2.04,-.54,2.49,.36],["c",.48,.93,-.03,1.86,-1.17,2.19],["c",-.3,.09,-1.02,.09,-1.35,0],["c",-.99,-.27,-1.74,-.87,-2.25,-1.83],["c",-.69,-1.41,-.63,-3,.21,-4.26],["c",.21,-.3,.69,-.81,.99,-1.02],["c",.48,-.33,1.11,-.57,1.74,-.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-.51,-16.02],["c",.12,-.09,.21,-.18,.21,-.18],["l",-.81,4.02],["l",-.81,4.02],["c",.03,0,.51,-.27,1.08,-.6],["c",.6,-.3,1.14,-.63,1.26,-.66],["c",1.14,-.54,2.31,-.6,3.09,-.18],["c",.27,.15,.54,.36,.6,.51],["l",.06,.12],["l",.21,-.21],["c",.9,-.81,2.22,-.99,3.12,-.42],["c",.6,.42,.9,1.14,.78,2.07],["c",-.15,1.29,-1.05,2.31,-1.95,2.25],["c",-.48,-.03,-.78,-.3,-.96,-.81],["c",-.09,-.27,-.09,-.9,-.03,-1.2],["c",.21,-.75,.81,-1.23,1.59,-1.32],["l",.24,-.03],["l",-.09,-.12],["c",-.51,-.66,-1.62,-.63,-2.31,.03],["c",-.39,.42,-.3,.09,-1.23,4.77],["l",-.81,4.14],["c",-.03,0,-.12,-.03,-.21,-.09],["c",-.33,-.15,-.54,-.18,-.99,-.18],["c",-.42,0,-.66,.03,-1.05,.18],["c",-.12,.06,-.21,.09,-.21,.09],["c",0,-.03,.36,-1.86,.81,-4.11],["c",.9,-4.47,.87,-4.26,.69,-4.53],["c",-.21,-.36,-.66,-.51,-1.17,-.36],["c",-.15,.06,-2.22,1.14,-2.58,1.38],["c",-.12,.09,-.12,.09,-.21,.6],["l",-.09,.51],["l",.21,.24],["c",.63,.75,1.02,1.47,1.2,2.19],["c",.06,.27,.06,.36,.06,.81],["c",0,.42,0,.54,-.06,.78],["c",-.15,.54,-.33,.93,-.63,1.35],["c",-.18,.24,-.57,.63,-.81,.78],["c",-.24,.15,-.63,.36,-.84,.42],["c",-.27,.06,-.66,.06,-.87,.03],["c",-.81,-.18,-1.32,-1.05,-1.38,-2.46],["c",-.03,-.6,.03,-.99,.33,-2.46],["c",.21,-1.08,.24,-1.32,.21,-1.29],["c",-1.2,.48,-2.4,.75,-3.21,.72],["c",-.69,-.06,-1.17,-.3,-1.41,-.72],["c",-.39,-.75,-.12,-1.8,.66,-2.46],["c",.24,-.18,.69,-.42,1.02,-.51],["c",.69,-.18,1.53,-.15,2.31,.09],["c",.3,.09,.75,.3,.99,.45],["c",.12,.09,.15,.09,.15,.03],["c",.03,-.03,.33,-1.59,.72,-3.45],["c",.36,-1.86,.66,-3.42,.69,-3.45],["c",0,-.03,.03,-.03,.21,.03],["c",.21,.06,.27,.06,.48,.06],["c",.42,-.03,.78,-.18,1.26,-.48],["c",.15,-.12,.36,-.27,.48,-.39],["z"],["m",-5.73,7.68],["c",-.27,-.03,-.96,-.06,-1.2,-.03],["c",-.81,.12,-1.35,.57,-1.5,1.2],["c",-.18,.66,.12,1.14,.75,1.29],["c",.66,.12,1.92,-.12,3.18,-.66],["l",.33,-.15],["l",.09,-.39],["c",.06,-.21,.09,-.42,.09,-.45],["c",0,-.03,-.45,-.3,-.75,-.45],["c",-.27,-.15,-.66,-.27,-.99,-.36],["z"],["m",4.29,3.63],["c",-.24,-.39,-.51,-.75,-.51,-.69],["c",-.06,.12,-.39,1.92,-.45,2.28],["c",-.09,.54,-.12,1.14,-.06,1.38],["c",.06,.42,.21,.6,.51,.57],["c",.39,-.06,.75,-.48,.93,-1.14],["c",.09,-.33,.09,-1.05,0,-1.38],["c",-.09,-.39,-.24,-.69,-.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",.78,-.09,1.59,.03,2.31,.42],["c",1.2,.6,2.01,1.71,2.31,3.09],["c",.09,.42,.09,1.2,.03,1.5],["c",-.15,.45,-.39,.81,-.66,.93],["c",-.33,.18,-.84,.21,-1.23,.15],["c",-.81,-.18,-1.32,-.93,-1.26,-1.89],["c",.03,-.36,.09,-.57,.24,-.9],["c",.15,-.33,.45,-.6,.72,-.75],["c",.12,-.06,.18,-.09,.18,-.12],["c",0,-.03,-.03,-.15,-.09,-.24],["c",-.18,-.45,-.54,-.87,-.96,-1.08],["c",-1.11,-.57,-2.34,-.18,-2.88,.9],["c",-.24,.51,-.33,1.11,-.24,1.83],["c",.27,1.92,1.5,3.54,3.93,5.13],["c",.48,.33,1.26,.78,1.29,.78],["c",.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",.84,0],["l",.87,0],["l",-.03,.06],["c",-.15,.21,-6.15,10.41,-6.15,10.44],["c",0,0,.21,.15,.48,.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,.51,5.07,-1.44,6.39],["c",-.66,.42,-1.32,.63,-2.13,.69],["c",-2.01,.09,-3.81,-1.41,-4.26,-3.54],["c",-.09,-.42,-.09,-1.2,-.03,-1.5],["c",.15,-.45,.39,-.81,.66,-.93],["c",.33,-.18,.84,-.21,1.23,-.15],["c",.81,.18,1.32,.93,1.26,1.89],["c",-.03,.36,-.09,.57,-.24,.9],["c",-.15,.33,-.45,.6,-.72,.75],["c",-.12,.06,-.18,.09,-.18,.12],["c",0,.03,.03,.15,.09,.24],["c",.18,.45,.54,.87,.96,1.08],["c",1.11,.57,2.34,.18,2.88,-.9],["c",.24,-.51,.33,-1.11,.24,-1.83],["c",-.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-.48,-.33,-1.26,-.78,-1.29,-.78],["c",-.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-.87,0],["l",-.87,0],["l",.03,-.06],["c",.15,-.21,6.15,-10.41,6.15,-10.44],["c",0,0,-.21,-.15,-.48,-.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-.9,-1.89,-.72,-4.02,.48,-5.52],["c",.69,-.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"],["m",-10.53,2.61],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-.21,-10.47],["c",.18,-.12,.42,-.06,.54,.12],["c",.06,.09,.06,.18,.06,1.5],["l",0,1.38],["l",.18,0],["c",.39,.06,.96,.24,1.38,.48],["c",1.68,.93,2.82,3.24,3.03,6.12],["c",.03,.24,.03,.45,.03,.45],["c",0,.03,.6,.03,1.35,.03],["c",1.5,0,1.47,0,1.59,.18],["c",.09,.12,.09,.3,0,.42],["c",-.12,.18,-.09,.18,-1.59,.18],["c",-.75,0,-1.35,0,-1.35,.03],["c",0,0,0,.21,-.03,.42],["c",-.24,3.15,-1.53,5.58,-3.45,6.36],["c",-.27,.12,-.72,.24,-.96,.27],["l",-.18,0],["l",0,1.38],["c",0,1.32,0,1.41,-.06,1.5],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.18,-.06,-1.5],["l",0,-1.38],["l",-.18,0],["c",-.39,-.06,-.96,-.24,-1.38,-.48],["c",-1.68,-.93,-2.82,-3.24,-3.03,-6.15],["c",-.03,-.21,-.03,-.42,-.03,-.42],["c",0,-.03,-.6,-.03,-1.35,-.03],["c",-1.5,0,-1.47,0,-1.59,-.18],["c",-.09,-.12,-.09,-.3,0,-.42],["c",.12,-.18,.09,-.18,1.59,-.18],["c",.75,0,1.35,0,1.35,-.03],["c",0,0,0,-.21,.03,-.45],["c",.24,-3.12,1.53,-5.55,3.45,-6.33],["c",.27,-.12,.72,-.24,.96,-.27],["l",.18,0],["l",0,-1.38],["c",0,-1.53,0,-1.5,.18,-1.62],["z"],["m",-.18,6.93],["c",0,-2.97,0,-3.15,-.06,-3.15],["c",-.09,0,-.51,.15,-.66,.21],["c",-.87,.51,-1.38,1.62,-1.56,3.51],["c",-.06,.54,-.12,1.59,-.12,2.16],["l",0,.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-.09,-.03,-.21,-.06,-.27,-.09],["l",-.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-.81],["c",-.06,-2.4,-.33,-3.69,-.93,-4.59],["c",-.27,-.39,-.66,-.69,-1.08,-.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,0],["l",-1.2,0],["l",0,.81],["c",.03,.96,.06,1.47,.15,2.13],["c",.24,2.04,.96,3.12,2.13,3.36],["l",.12,0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",.12,0],["c",1.17,-.24,1.89,-1.32,2.13,-3.36],["c",.09,-.66,.12,-1.17,.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",.3,-.12,.69,-.03,.93,.15],["c",.12,.12,.36,.45,.51,.78],["c",.9,1.77,.54,4.05,-1.08,6.75],["c",-.36,.63,-.87,1.38,-.96,1.44],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.09,-.18,-.09,-.3,.12,-.6],["c",.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-.06,-.93,-.3,-1.68,-.78,-2.46],["c",-.27,-.39,-.33,-.63,-.24,-.96],["c",.09,-.27,.36,-.54,.66,-.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",.21,-.09,.36,-.09,.57,0],["c",.39,.15,.63,.39,1.47,1.35],["c",.66,.75,.78,.87,1.08,1.05],["c",.75,.45,1.65,.42,2.4,-.06],["c",.12,-.09,.27,-.27,.54,-.6],["c",.42,-.54,.51,-.63,.69,-.63],["c",.09,0,.3,.12,.36,.21],["c",.09,.12,.12,.3,.03,.42],["c",-.06,.12,-3.15,3.9,-3.3,4.08],["c",-.06,.06,-.18,.12,-.27,.18],["c",-.27,.12,-.6,.06,-.99,-.27],["c",-.27,-.21,-.42,-.39,-1.08,-1.14],["c",-.63,-.72,-.81,-.9,-1.17,-1.08],["c",-.36,-.18,-.57,-.21,-.99,-.21],["c",-.39,0,-.63,.03,-.93,.18],["c",-.36,.15,-.51,.27,-.9,.81],["c",-.24,.27,-.45,.51,-.48,.54],["c",-.12,.09,-.27,.06,-.39,0],["c",-.24,-.15,-.33,-.39,-.21,-.6],["c",.09,-.12,3.18,-3.87,3.33,-4.02],["c",.06,-.06,.18,-.15,.24,-.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.57,-.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-.03,0,-.57,.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.arpeggio":{d:[["M",1.5,0],["c",1.5,2,1.5,3,1.5,3],["s",0,1,-2,1.5],["s",-.5,3,1,5.5],["l",1.5,0],["s",-1.75,-2,-1.9,-3.25],["s",2.15,-.6,2.95,-1.6],["s",.45,-1,.5,-1.25],["s",0,-1,-2,-3.9],["l",-1.5,0],["z"]],w:5,h:10},"scripts.mordent":{d:[["M",-.21,-4.95],["c",.27,-.15,.63,0,.75,.27],["c",.06,.12,.06,.24,.06,1.44],["l",0,1.29],["l",.57,-.84],["c",.51,-.75,.57,-.84,.69,-.9],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.83,-1.89],["c",-.81,-.99,-1.5,-1.8,-1.53,-1.86],["c",-.06,-.03,-.06,-.03,-.12,.03],["c",-.06,.06,-.06,.15,-.06,2.28],["c",0,1.95,0,2.25,-.06,2.34],["c",-.18,.45,-.81,.48,-1.05,.03],["c",-.03,-.06,-.06,-.24,-.06,-1.41],["l",0,-1.35],["l",-.57,.84],["c",-.54,.78,-.6,.87,-.72,.93],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.06,-.06,.09,-.09],["c",.06,-.12,.06,-.15,.06,-2.28],["c",0,-1.92,0,-2.22,.06,-2.31],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-.42,3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",0,.18],["c",0,.3,.06,.84,.12,1.23],["c",.24,1.53,.9,3.12,2.13,5.16],["l",.99,1.59],["c",.87,1.44,1.38,2.34,1.77,3.09],["c",.81,1.68,1.2,3.06,1.26,4.53],["c",.03,1.53,-.21,3.27,-.75,5.01],["c",-.21,.69,-.51,1.5,-.6,1.59],["c",-.09,.12,-.27,.21,-.42,.21],["c",-.15,0,-.42,-.12,-.51,-.21],["c",-.15,-.18,-.18,-.42,-.09,-.66],["c",.15,-.33,.45,-1.2,.57,-1.62],["c",.42,-1.38,.6,-2.58,.6,-3.9],["c",0,-.66,0,-.81,-.06,-1.11],["c",-.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-.42,-.45],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-.42,7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,.39],["c",.06,1.08,.39,2.19,.99,3.39],["c",.45,.9,.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",.45,.93,.72,1.8,.87,2.64],["c",.06,.51,.06,1.5,0,1.92],["c",-.12,.6,-.3,1.2,-.54,1.71],["l",-.09,.24],["l",.18,.45],["c",.51,1.2,.72,2.22,.69,3.42],["c",-.06,1.53,-.39,3.03,-.99,4.53],["c",-.3,.75,-.36,.81,-.57,.9],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.12,-.75],["c",.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-.6,-.03,-1.05,-.18,-1.59],["c",-.3,-1.2,-.99,-2.4,-2.25,-3.87],["c",-.42,-.48,-1.53,-1.62,-2.19,-2.22],["l",-.45,-.42],["l",-.03,1.11],["l",0,1.11],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["z"],["m",1.65,.09],["c",-.3,-.3,-.69,-.72,-.9,-.87],["l",-.33,-.33],["l",0,.15],["c",0,.3,.06,.81,.15,1.26],["c",.27,1.29,.87,2.61,2.04,4.29],["c",.15,.24,.6,.87,.96,1.38],["l",1.08,1.53],["l",.42,.63],["c",.03,0,.12,-.36,.21,-.72],["c",.06,-.33,.06,-1.2,0,-1.62],["c",-.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-.42,11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,.36],["c",.09,1.68,.69,3.27,2.07,5.46],["l",.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",.48,1.02,.78,1.92,.93,2.88],["c",.06,.48,.06,1.5,0,1.89],["c",-.09,.42,-.21,.87,-.36,1.26],["l",-.12,.3],["l",.15,.39],["c",.69,1.56,.84,2.88,.54,4.38],["c",-.09,.45,-.27,1.08,-.45,1.47],["l",-.12,.24],["l",.18,.36],["c",.33,.72,.57,1.56,.69,2.34],["c",.12,1.02,-.06,2.52,-.42,3.84],["c",-.27,.93,-.75,2.13,-.93,2.31],["c",-.18,.15,-.45,.18,-.66,.09],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.06,-.6],["c",.21,-.36,.42,-.9,.57,-1.38],["c",.51,-1.41,.69,-3.06,.48,-4.08],["c",-.15,-.81,-.57,-1.68,-1.2,-2.55],["c",-.72,-.99,-1.83,-2.13,-3.3,-3.33],["l",-.48,-.42],["l",-.03,1.53],["l",0,1.56],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-.27,-.3,-.54,-.6,-.66,-.72],["l",-.18,-.21],["l",0,.42],["c",.06,.87,.24,1.74,.66,2.67],["c",.36,.87,.96,1.86,1.92,3.18],["c",.21,.33,.63,.87,.87,1.23],["c",.27,.39,.6,.84,.75,1.08],["l",.27,.39],["l",.03,-.12],["c",.12,-.45,.15,-1.05,.09,-1.59],["c",-.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-.27,6.09],["c",-.27,-.21,-.48,-.42,-.51,-.45],["c",-.06,-.03,-.06,-.03,-.06,.21],["c",0,.9,.3,2.04,.81,3.09],["c",.48,1.02,.96,1.77,2.37,3.63],["c",.6,.78,1.05,1.44,1.29,1.77],["c",.06,.12,.15,.21,.15,.18],["c",.03,-.03,.18,-.57,.24,-.87],["c",.06,-.45,.06,-1.32,-.03,-1.74],["c",-.09,-.48,-.24,-.9,-.51,-1.44],["c",-.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-.42,15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,.36],["c",.06,1.2,.39,2.37,1.02,3.66],["c",.39,.81,.84,1.56,1.8,3.09],["c",.81,1.26,1.05,1.68,1.35,2.22],["c",.87,1.5,1.35,2.79,1.56,4.08],["c",.06,.54,.06,1.56,-.03,2.04],["c",-.09,.48,-.21,.99,-.36,1.35],["l",-.12,.27],["l",.12,.27],["c",.09,.15,.21,.45,.27,.66],["c",.69,1.89,.63,3.66,-.18,5.46],["l",-.18,.39],["l",.15,.33],["c",.3,.66,.51,1.44,.63,2.1],["c",.06,.48,.06,1.35,0,1.71],["c",-.15,.57,-.42,1.2,-.78,1.68],["l",-.21,.27],["l",.18,.33],["c",.57,1.05,.93,2.13,1.02,3.18],["c",.06,.72,0,1.83,-.21,2.79],["c",-.18,1.02,-.63,2.34,-1.02,3.09],["c",-.15,.33,-.48,.45,-.78,.3],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.03,-.54],["c",.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-.06,-1.02,-.42,-2.01,-1.17,-3.15],["c",-.48,-.72,-1.02,-1.35,-1.89,-2.22],["c",-.57,-.57,-1.56,-1.5,-1.92,-1.77],["l",-.12,-.09],["l",0,1.68],["l",0,1.68],["l",-.21,0],["l",-.21,0],["l",0,-15],["z"],["m",.93,-8.07],["c",-.27,-.3,-.48,-.54,-.51,-.54],["c",0,0,0,.69,.03,1.02],["c",.15,1.47,.75,2.94,2.04,4.83],["l",1.08,1.53],["c",.39,.57,.84,1.2,.99,1.44],["c",.15,.24,.3,.45,.3,.45],["c",0,0,.03,-.09,.06,-.21],["c",.36,-1.59,-.15,-3.33,-1.47,-5.4],["c",-.63,-.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",.06,6.72],["c",-.24,-.21,-.48,-.42,-.51,-.45],["l",-.06,-.06],["l",0,.33],["c",0,1.2,.3,2.34,.93,3.6],["c",.45,.9,.96,1.68,2.25,3.51],["c",.39,.54,.84,1.17,1.02,1.44],["c",.21,.33,.33,.51,.33,.48],["c",.06,-.09,.21,-.63,.3,-.99],["c",.06,-.33,.06,-.45,.06,-.96],["c",0,-.6,-.03,-.84,-.18,-1.35],["c",-.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-.39,-.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-.24,-.21,-.48,-.39,-.51,-.42],["l",-.06,-.06],["l",0,.33],["c",0,1.41,.45,2.82,1.38,4.35],["c",.42,.72,.72,1.14,1.86,2.73],["c",.36,.45,.75,.99,.87,1.2],["c",.15,.21,.3,.36,.3,.36],["c",.06,0,.3,-.48,.39,-.75],["c",.09,-.36,.12,-.63,.12,-1.05],["c",-.06,-1.05,-.45,-2.04,-1.2,-3.18],["c",-.57,-.87,-1.11,-1.53,-2.07,-2.49],["c",-.36,-.33,-.84,-.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",.24,-.12,.54,-.06,.69,.15],["c",.06,.06,.21,.36,.39,.66],["c",.84,1.77,1.26,3.36,1.32,5.1],["c",.03,1.29,-.21,2.37,-.81,3.63],["c",-.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-.63,.93,-1.11,1.92,-1.38,2.79],["c",-.15,.54,-.27,1.35,-.27,1.8],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",.48,-.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",.78,-.81,1.32,-1.53,1.71,-2.31],["c",.45,-.93,.6,-1.74,.51,-2.88],["c",-.12,-1.56,-.63,-3.18,-1.47,-4.68],["c",-.12,-.21,-.15,-.33,-.06,-.51],["c",.06,-.15,.15,-.24,.33,-.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",.15,-.09,.33,-.06,.51,0],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.06,.39,-.03,.54],["c",-.06,.15,-10.89,8.88,-11.07,8.97],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.06,-.39,.03,-.54],["c",.06,-.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",.18,-.09,.33,-.12,.48,-.06],["c",.18,.09,14.01,8.04,14.1,8.1],["c",.12,.12,.18,.33,.18,.51],["c",-.03,.21,-.15,.39,-.36,.48],["c",-.18,.09,-.33,.12,-.48,.06],["c",-.18,-.09,-14.01,-8.04,-14.1,-8.1],["c",-.12,-.12,-.18,-.33,-.18,-.51],["c",.03,-.21,.15,-.39,.36,-.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",.27,-.12,.57,-.06,.72,.15],["c",.15,.15,.33,.87,.45,1.56],["c",.06,.33,.06,1.35,0,1.65],["c",-.06,.33,-.15,.78,-.27,1.11],["c",-.12,.33,-.45,.96,-.66,1.32],["l",-.18,.27],["l",.09,.18],["c",.48,1.02,.72,2.25,.69,3.3],["c",-.06,1.23,-.42,2.28,-1.26,3.45],["c",-.57,.87,-.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-.42,.84,-.66,1.8,-.66,2.55],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,1.14],["l",0,1.11],["l",.27,-.15],["c",1.11,-.57,1.77,-.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",.03,-.18,.03,-.39,.03,-.78],["c",0,-.6,-.03,-.93,-.24,-1.5],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.5],["c",-.06,-.18,-.15,-.36,-.15,-.36],["c",-.03,0,-.03,.03,-.06,.06],["c",-.06,.12,-.96,1.02,-1.95,1.98],["c",-.63,.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-.03,.18,-.03,.54,-.06,.99],["l",0,.69],["l",.18,-.09],["c",.93,-.54,2.1,-1.29,2.82,-1.83],["c",.69,-.51,1.02,-.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.84,-29.13],["c",.27,-.12,.57,-.06,.72,.15],["c",.12,.12,.27,.63,.36,1.11],["c",.33,1.59,.06,3.06,-.81,4.47],["l",-.18,.27],["l",.09,.15],["c",.12,.24,.33,.69,.45,1.05],["c",.63,1.83,.45,3.57,-.57,5.22],["l",-.18,.3],["l",.15,.27],["c",.42,.87,.6,1.71,.57,2.61],["c",-.06,1.29,-.48,2.46,-1.35,3.78],["c",-.54,.81,-.93,1.29,-2.46,3],["c",-.51,.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,.33],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,1.35],["l",.03,1.35],["l",.78,-.39],["c",1.38,-.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",.15,-.48,.18,-.72,.18,-1.29],["c",0,-.57,-.06,-.9,-.24,-1.47],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.2],["c",-.09,-.18,-.12,-.21,-.12,-.15],["c",-.03,.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-.84,.96,-1.38,1.86,-1.68,2.76],["c",-.21,.57,-.27,.99,-.3,1.65],["l",0,.54],["l",.66,-.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",.06,-.39,.06,-1.2,-.03,-1.65],["c",-.06,-.39,-.24,-.9,-.36,-1.2],["z"],["m",-.06,7.2],["c",-.06,-.15,-.12,-.33,-.15,-.45],["l",-.06,-.18],["l",-.18,.21],["l",-1.83,1.83],["c",-.87,.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-.06,.3,-.06,.51,-.09,.93],["l",0,.57],["l",.09,-.06],["c",.75,-.45,1.89,-1.26,2.52,-1.74],["c",.81,-.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.385,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",.3,-.12,.66,-.03,.78,.24],["c",.18,.33,.27,2.1,.15,2.64],["c",-.09,.39,-.21,.78,-.39,1.08],["l",-.15,.3],["l",.09,.27],["c",.03,.12,.09,.45,.12,.69],["c",.27,1.44,.18,2.55,-.3,3.6],["l",-.12,.33],["l",.06,.42],["c",.27,1.35,.33,2.82,.21,3.63],["c",-.12,.6,-.3,1.23,-.57,1.8],["l",-.15,.27],["l",.03,.42],["c",.06,1.02,.06,2.7,.03,3.06],["c",-.15,1.47,-.66,2.76,-1.74,4.41],["c",-.45,.69,-.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,.42],["l",-.21,0],["l",-.21,0],["l",0,-15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,1.86],["l",0,1.89],["c",0,0,.21,-.03,.45,-.09],["c",2.22,-.39,4.08,-1.11,5.19,-2.01],["c",.63,-.54,1.02,-1.14,1.2,-1.8],["c",.06,-.3,.06,-1.14,-.03,-1.65],["c",-.03,-.18,-.06,-.39,-.09,-.48],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.45,6.15],["c",-.03,-.18,-.06,-.42,-.06,-.54],["l",-.03,-.18],["l",-.33,.3],["c",-.42,.36,-.87,.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-.75,.69,-1.23,1.44,-1.47,2.19],["c",-.15,.45,-.18,.63,-.21,1.35],["l",0,.66],["l",.39,-.18],["c",1.83,-.9,3.45,-1.95,4.47,-2.91],["c",.93,-.9,1.53,-1.83,1.74,-2.82],["c",.06,-.33,.06,-.87,.03,-1.32],["z"],["m",-.27,4.86],["c",-.03,-.21,-.06,-.36,-.06,-.36],["c",0,-.03,-.12,.09,-.24,.24],["c",-.39,.48,-.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-.66,.87,-1.08,1.74,-1.29,2.58],["c",-.09,.42,-.15,.87,-.15,1.44],["l",0,.54],["l",.48,-.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",.03,-.39,.03,-1.17,-.03,-1.71],["z"],["m",-.66,7.68],["c",.03,-.15,.03,-.6,.03,-.99],["l",0,-.72],["l",-.27,.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-.51,1.02,-.72,1.77,-.75,2.91],["c",0,.63,0,.63,.06,.6],["c",.03,-.03,.3,-.27,.63,-.54],["c",.66,-.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",.06,-14.94],["l",.09,-.06],["l",1.92,0],["l",1.92,0],["l",.09,.06],["l",.06,.09],["l",0,14.85],["l",0,14.82],["l",-.06,.09],["l",-.09,.06],["l",-1.92,0],["l",-1.92,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",.09,-.06,.09,-.06,.57,-.06],["c",.45,0,.45,0,.54,.06],["l",.06,.09],["l",0,7.14],["l",0,7.11],["l",.09,-.06],["c",.18,-.18,.72,-.84,.96,-1.2],["c",.3,-.45,.66,-1.17,.84,-1.65],["c",.36,-.9,.57,-1.83,.6,-2.79],["c",.03,-.48,.03,-.54,.09,-.63],["c",.12,-.18,.36,-.21,.54,-.12],["c",.18,.09,.21,.15,.24,.66],["c",.06,.87,.21,1.56,.57,2.22],["c",.51,1.02,1.26,1.68,2.22,1.92],["c",.21,.06,.33,.06,.78,.06],["c",.45,0,.57,0,.84,-.06],["c",.45,-.12,.81,-.33,1.08,-.6],["c",.57,-.57,.87,-1.41,.99,-2.88],["c",.06,-.54,.06,-3,0,-3.57],["c",-.21,-2.58,-.84,-3.87,-2.16,-4.5],["c",-.48,-.21,-1.17,-.36,-1.77,-.36],["c",-.69,0,-1.29,.27,-1.5,.72],["c",-.06,.15,-.06,.21,-.06,.42],["c",0,.24,0,.3,.06,.45],["c",.12,.24,.24,.39,.63,.66],["c",.42,.3,.57,.48,.69,.72],["c",.06,.15,.06,.21,.06,.48],["c",0,.39,-.03,.63,-.21,.96],["c",-.3,.6,-.87,1.08,-1.5,1.26],["c",-.27,.06,-.87,.06,-1.14,0],["c",-.78,-.24,-1.44,-.87,-1.65,-1.68],["c",-.12,-.42,-.09,-1.17,.09,-1.71],["c",.51,-1.65,1.98,-2.82,3.81,-3.09],["c",.84,-.09,2.46,.03,3.51,.27],["c",2.22,.57,3.69,1.8,4.44,3.75],["c",.36,.93,.57,2.13,.57,3.36],["c",0,1.44,-.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-.48,0,-.51,0,-.75,-.09],["c",-.15,-.03,-.48,-.21,-.78,-.36],["c",-.69,-.36,-.87,-.42,-1.26,-.42],["c",-.27,0,-.3,0,-.51,.09],["c",-.57,.3,-.81,.9,-.81,2.1],["c",0,1.23,.24,1.83,.81,2.13],["c",.21,.09,.24,.09,.51,.09],["c",.39,0,.57,-.06,1.26,-.42],["c",.3,-.15,.63,-.33,.78,-.36],["c",.24,-.09,.27,-.09,.75,-.09],["c",2.01,0,4.02,.93,5.28,2.4],["c",.9,1.11,1.38,2.4,1.38,3.84],["c",0,1.5,-.3,2.88,-.84,3.96],["c",-.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,.24,-2.67,.36,-3.51,.27],["c",-1.83,-.27,-3.3,-1.44,-3.81,-3.09],["c",-.18,-.54,-.21,-1.29,-.09,-1.74],["c",.15,-.6,.63,-1.2,1.23,-1.47],["c",.36,-.18,.57,-.21,.99,-.21],["c",.42,0,.63,.03,1.02,.21],["c",.42,.21,.84,.63,1.05,1.05],["c",.18,.36,.21,.6,.21,.96],["c",0,.3,0,.36,-.06,.51],["c",-.12,.24,-.27,.42,-.69,.72],["c",-.57,.42,-.69,.63,-.69,1.08],["c",0,.24,0,.3,.06,.45],["c",.12,.21,.3,.39,.57,.54],["c",.42,.18,.87,.21,1.53,.15],["c",1.08,-.15,1.8,-.57,2.34,-1.32],["c",.54,-.75,.84,-1.83,.99,-3.51],["c",.06,-.57,.06,-3.03,0,-3.57],["c",-.12,-1.47,-.42,-2.31,-.99,-2.88],["c",-.27,-.27,-.63,-.48,-1.08,-.6],["c",-.27,-.06,-.39,-.06,-.84,-.06],["c",-.45,0,-.57,0,-.78,.06],["c",-1.14,.27,-2.01,1.17,-2.46,2.49],["c",-.21,.57,-.3,.99,-.33,1.65],["c",-.03,.51,-.06,.57,-.24,.66],["c",-.12,.06,-.27,.06,-.39,0],["c",-.21,-.09,-.21,-.15,-.24,-.75],["c",-.09,-1.92,-.78,-3.72,-2.01,-5.19],["c",-.18,-.21,-.36,-.42,-.39,-.45],["l",-.09,-.06],["l",0,7.11],["l",0,7.14],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.54,.06],["c",-.48,0,-.48,0,-.57,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",.36,-.03,1.65,0,2.13,.03],["c",3.6,.42,6.03,2.1,6.93,4.86],["c",.27,.84,.36,1.5,.36,2.58],["c",0,.9,-.03,1.35,-.18,2.16],["c",-.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-.39,.18,-.75,.33,-.81,.36],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.15,.06,-.21,.51,-.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",.51,-.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",.06,-.42,.06,-1.77,0,-2.19],["c",-.24,-2.01,-.93,-3.63,-2.04,-4.71],["c",-.63,-.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-.39,-3.36,.15,-4.56,1.44],["c",-.54,.6,-1.05,1.47,-1.32,2.22],["l",-.09,.21],["l",.24,-.12],["c",.39,-.21,.63,-.24,1.11,-.24],["c",.3,0,.45,0,.66,.06],["c",1.92,.48,2.85,2.55,1.95,4.38],["c",-.45,.99,-1.41,1.62,-2.46,1.71],["c",-1.47,.09,-2.91,-.87,-3.39,-2.25],["c",-.18,-.57,-.21,-1.32,-.03,-2.28],["c",.39,-2.25,1.83,-4.2,3.81,-5.19],["c",.69,-.36,1.59,-.6,2.37,-.69],["z"],["m",11.58,2.52],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.3,1.17,-.72,2.19,-1.89,1.89],["c",-.99,-.21,-1.5,-1.32,-1.02,-2.25],["c",.18,-.39,.6,-.69,1.02,-.78],["z"],["m",0,7.5],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.21,.87,-.3,1.71,-1.14,1.89],["c",-.87,.21,-1.71,-.3,-1.89,-1.14],["c",-.21,-.84,.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",.09,-.09,.24,-.06,.36,0],["c",.12,.09,.57,.6,.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",.21,1.56,.03,3.27,-.45,4.86],["c",-.69,2.31,-1.92,4.47,-4.23,7.44],["c",-.3,.39,-.57,.72,-.6,.75],["c",-.03,.06,0,.15,.18,.78],["c",.54,1.68,1.38,4.44,1.68,5.49],["l",.09,.42],["l",.39,0],["c",1.47,.09,2.76,.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",.09,.45,.12,1.29,.06,1.74],["c",-.09,1.02,-.33,1.83,-.75,2.73],["c",-.84,1.71,-2.28,3.06,-4.02,3.72],["l",-.33,.12],["l",.03,1.26],["c",0,1.74,-.06,3.63,-.21,4.62],["c",-.45,3.06,-2.19,5.49,-4.47,6.21],["c",-.57,.18,-.9,.21,-1.59,.21],["c",-.69,0,-1.02,-.03,-1.65,-.21],["c",-1.14,-.27,-2.13,-.84,-2.94,-1.65],["c",-.99,-.99,-1.56,-2.16,-1.71,-3.54],["c",-.09,-.81,.06,-1.53,.45,-2.13],["c",.63,-.99,1.83,-1.56,3,-1.53],["c",1.5,.09,2.64,1.32,2.73,2.94],["c",.06,1.47,-.93,2.7,-2.37,2.97],["c",-.45,.06,-.84,.03,-1.29,-.09],["l",-.21,-.09],["l",.09,.12],["c",.39,.54,.78,.93,1.32,1.26],["c",1.35,.87,3.06,1.02,4.35,.36],["c",1.44,-.72,2.52,-2.28,2.97,-4.35],["c",.15,-.66,.24,-1.5,.3,-3.03],["c",.03,-.84,.03,-2.94,0,-3],["c",-.03,0,-.18,0,-.36,.03],["c",-.66,.12,-.99,.12,-1.83,.12],["c",-1.05,0,-1.71,-.06,-2.61,-.3],["c",-4.02,-.99,-7.11,-4.35,-7.8,-8.46],["c",-.12,-.66,-.12,-.99,-.12,-1.83],["c",0,-.84,0,-1.14,.15,-1.92],["c",.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",.54,-.66,.96,-1.2,.96,-1.23],["c",0,-.03,-.09,-.33,-.18,-.69],["c",-.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-.12,-1.38,-.15,-3.09,-.06,-3.96],["c",.33,-2.67,1.38,-5.07,3.12,-7.08],["c",.36,-.42,.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-.15,-.3,-.3,-.54,-.3,-.54],["c",-.03,0,-.18,.09,-.3,.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-.06,.54,-.06,1.41,-.03,1.89],["c",.09,1.29,.48,3.12,1.08,5.22],["c",.15,.42,.24,.78,.24,.81],["c",0,.03,.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",.09,-.57,.12,-1.74,.06,-2.37],["c",-.09,-1.23,-.27,-1.92,-.87,-3.12],["z"],["m",-2.94,20.7],["c",-.21,-.72,-.39,-1.32,-.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-.03,.21,-.03,.69,-.03,1.08],["c",0,.69,0,.75,.06,1.11],["c",.12,.54,.27,.99,.51,1.47],["c",.69,1.38,1.83,2.55,3.42,3.42],["c",.96,.54,2.07,.9,3.21,1.08],["c",.78,.12,2.04,.12,2.94,-.03],["c",.51,-.06,.45,-.03,.42,-.3],["c",-.24,-3.33,-.72,-6.33,-1.62,-10.08],["c",-.09,-.39,-.18,-.75,-.18,-.78],["c",-.03,-.03,-.42,0,-.81,.09],["c",-.9,.18,-1.65,.57,-2.22,1.14],["c",-.72,.72,-1.08,1.65,-1.05,2.64],["c",.06,.96,.48,1.83,1.23,2.58],["c",.36,.36,.72,.63,1.17,.9],["c",.33,.18,.36,.21,.42,.33],["c",.18,.42,-.18,.9,-.6,.87],["c",-.18,-.03,-.84,-.36,-1.26,-.63],["c",-.78,-.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-.99,-6.42,1.71,-8.19],["c",.3,-.21,.81,-.48,1.17,-.63],["c",.3,-.09,1.02,-.3,1.14,-.3],["c",.06,0,.09,0,.09,-.03],["c",.03,-.03,-.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-.18,-.03,-.36,-.06,-.39,-.06],["c",-.03,0,0,.21,.18,1.02],["c",.75,3.18,1.26,6.3,1.5,9.09],["c",.06,.72,0,.69,.51,.42],["c",.78,-.36,1.44,-.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,.3,-5.55],["c",-.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:9.99,h:14.97},"timesig.common":{d:[["M",6.66,-7.83],["c",.72,-.06,1.41,-.03,1.98,.09],["c",1.2,.27,2.34,.96,3.09,1.92],["c",.63,.81,1.08,1.86,1.14,2.73],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,0,-.09,-.12,-.24,-.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,.15,-2.04,.69,-2.4,1.74],["c",-.36,.93,-.42,1.89,-.42,5.37],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.63,1.68,1.41,2.07],["c",.81,.39,2.16,.45,3.18,.09],["c",1.29,-.45,2.37,-1.53,3.03,-2.97],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.06,.39,-.42,1.38,-.69,1.89],["c",-.96,1.8,-2.49,2.94,-4.23,3.18],["c",-.99,.12,-2.58,-.06,-3.63,-.45],["c",-.96,-.36,-1.71,-.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.9,-3.45,2.01,-4.56],["c",.69,-.66,1.44,-1.11,2.37,-1.47],["c",.63,-.24,1.47,-.42,2.22,-.48],["z"]],w:13.038,h:15.689},"timesig.cut":{d:[["M",6.24,-10.44],["c",.09,-.06,.09,-.06,.48,-.06],["c",.36,0,.36,0,.45,.06],["l",.06,.09],["l",0,1.23],["l",0,1.26],["l",.27,0],["c",1.26,0,2.49,.45,3.48,1.29],["c",1.05,.87,1.8,2.28,1.89,3.48],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,-.03,-.45,-.51,-.66,-.69],["c",-.87,-.69,-1.83,-1.05,-2.94,-1.11],["l",-.42,0],["l",0,7.17],["l",0,7.14],["l",.42,0],["c",.69,-.03,1.23,-.18,1.86,-.51],["c",1.05,-.51,1.89,-1.47,2.46,-2.7],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.03,.24,-.21,.78,-.39,1.2],["c",-.96,2.37,-2.94,3.9,-5.13,3.9],["l",-.3,0],["l",0,1.26],["l",0,1.23],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.45,.06],["c",-.39,0,-.39,0,-.48,-.06],["l",-.06,-.09],["l",0,-1.29],["l",0,-1.29],["l",-.21,-.03],["c",-1.23,-.21,-2.31,-.63,-3.21,-1.29],["c",-.15,-.09,-.45,-.36,-.66,-.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.93,-3.45,2.04,-4.59],["c",.42,-.39,.78,-.66,1.26,-.93],["c",.75,-.45,1.65,-.75,2.61,-.9],["l",.21,-.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-.06,10.44],["c",0,-5.58,0,-6.99,-.03,-6.99],["c",-.15,0,-.63,.27,-.87,.45],["c",-.45,.36,-.75,.93,-.93,1.77],["c",-.18,.81,-.24,1.8,-.24,4.74],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.66,1.68,1.41,2.07],["c",.12,.06,.3,.12,.33,.15],["l",.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"timesig.imperfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[["M",9.93,-14.28],["c",1.53,-.18,2.88,.45,3.12,1.5],["c",.12,.51,0,1.32,-.27,1.86],["c",-.15,.3,-.42,.57,-.63,.69],["c",-.69,.36,-1.56,.03,-1.83,-.69],["c",-.09,-.24,-.09,-.69,0,-.87],["c",.06,-.12,.21,-.24,.45,-.42],["c",.42,-.24,.57,-.45,.6,-.72],["c",.03,-.33,-.09,-.39,-.63,-.42],["c",-.3,0,-.45,0,-.6,.03],["c",-.81,.21,-1.35,.93,-1.74,2.46],["c",-.06,.27,-.48,2.25,-.48,2.31],["c",0,.03,.39,.03,.9,.03],["c",.72,0,.9,0,.99,.06],["c",.42,.15,.45,.72,.03,.9],["c",-.12,.06,-.24,.06,-1.17,.06],["l",-1.05,0],["l",-.78,2.55],["c",-.45,1.41,-.87,2.79,-.96,3.06],["c",-.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-.18,-1.89,-.78,-2.04,-1.59],["c",-.12,-.66,.15,-1.71,.54,-2.19],["c",.69,-.75,1.86,-.54,2.22,.39],["c",.06,.15,.09,.27,.09,.48],["c",0,.24,-.03,.27,-.12,.42],["c",-.03,.09,-.15,.18,-.27,.27],["c",-.09,.06,-.27,.21,-.36,.27],["c",-.24,.18,-.36,.36,-.39,.6],["c",-.03,.33,.09,.39,.63,.42],["c",.42,0,.63,-.03,.9,-.15],["c",.6,-.3,.96,-.96,1.38,-2.64],["c",.09,-.42,.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",0,-.03,-.36,-.03,-.81,-.03],["c",-.72,0,-.81,0,-.93,-.06],["c",-.42,-.18,-.39,-.75,.03,-.9],["c",.09,-.06,.27,-.06,1.05,-.06],["l",.96,0],["l",0,-.09],["c",.06,-.18,.3,-.72,.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",.09,0,.3,-.03,.45,-.03],["c",.24,.03,.3,.03,.45,.12],["c",.36,.15,.63,.54,.75,1.02],["l",.03,.21],["l",.33,-.3],["c",.69,-.69,1.38,-1.02,2.07,-1.02],["c",.27,0,.33,0,.48,.06],["c",.21,.09,.48,.36,.63,.6],["c",.03,.09,.12,.27,.18,.42],["c",.03,.15,.09,.27,.12,.27],["c",0,0,.09,-.09,.18,-.21],["c",.33,-.39,.87,-.81,1.29,-.99],["c",.78,-.33,1.47,-.21,2.01,.33],["c",.3,.33,.48,.69,.6,1.14],["c",.09,.42,.06,.54,-.54,3.06],["c",-.33,1.29,-.57,2.4,-.57,2.43],["c",0,.12,.09,.21,.21,.21],["c",.24,0,.75,-.3,1.2,-.72],["c",.45,-.39,.6,-.45,.78,-.27],["c",.18,.18,.09,.36,-.45,.87],["c",-1.05,.96,-1.83,1.47,-2.58,1.71],["c",-.93,.33,-1.53,.21,-1.8,-.33],["c",-.06,-.15,-.06,-.21,-.06,-.45],["c",0,-.24,.03,-.48,.6,-2.82],["c",.42,-1.71,.6,-2.64,.63,-2.79],["c",.03,-.57,-.3,-.75,-.84,-.48],["c",-.24,.12,-.54,.39,-.66,.63],["c",-.03,.09,-.42,1.38,-.9,3],["c",-.9,3.15,-.84,3,-1.14,3.15],["l",-.15,.09],["l",-.78,0],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.36,-1.38,.84,-2.97],["c",.57,-2.04,.81,-2.97,.84,-3.12],["c",.03,-.54,-.3,-.72,-.84,-.45],["c",-.24,.12,-.57,.42,-.66,.63],["c",-.06,.09,-.51,1.44,-1.05,2.97],["c",-.51,1.56,-.99,2.85,-.99,2.91],["c",-.06,.12,-.21,.24,-.36,.3],["c",-.12,.06,-.21,.06,-.9,.06],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.45,-1.38,.99,-2.97],["c",1.05,-3.18,1.05,-3.18,.93,-3.45],["c",-.12,-.27,-.39,-.3,-.72,-.15],["c",-.54,.27,-1.14,1.17,-1.56,2.4],["c",-.06,.15,-.15,.3,-.18,.36],["c",-.21,.21,-.57,.27,-.72,.09],["c",-.09,-.09,-.06,-.21,.06,-.63],["c",.48,-1.26,1.26,-2.46,2.01,-3.21],["c",.57,-.54,1.2,-.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",.27,-.09,.81,-.06,1.11,.03],["c",.54,.18,.93,.51,1.17,.99],["c",.09,.15,.15,.33,.18,.36],["l",0,.12],["l",.3,-.27],["c",.66,-.6,1.35,-1.02,2.13,-1.2],["c",.21,-.06,.33,-.06,.78,-.06],["c",.45,0,.51,0,.84,.09],["c",1.29,.33,2.07,1.32,2.25,2.79],["c",.09,.81,-.09,2.01,-.45,2.79],["c",-.54,1.26,-1.86,2.55,-3.18,3.03],["c",-.45,.18,-.81,.24,-1.29,.24],["c",-.69,-.03,-1.35,-.18,-1.86,-.45],["c",-.3,-.15,-.51,-.18,-.69,-.09],["c",-.09,.03,-.18,.09,-.18,.12],["c",-.09,.12,-1.05,2.94,-1.05,3.06],["c",0,.24,.18,.48,.51,.63],["c",.18,.06,.54,.15,.75,.15],["c",.21,0,.36,.06,.42,.18],["c",.12,.18,.06,.42,-.12,.54],["c",-.09,.03,-.15,.03,-.78,0],["c",-1.98,-.15,-3.81,-.15,-5.79,0],["c",-.63,.03,-.69,.03,-.78,0],["c",-.24,-.15,-.24,-.57,.03,-.66],["c",.06,-.03,.48,-.09,.99,-.12],["c",.87,-.06,1.11,-.09,1.35,-.21],["c",.18,-.06,.33,-.18,.39,-.3],["c",.06,-.12,3.24,-9.42,3.27,-9.6],["c",.06,-.33,.03,-.57,-.15,-.69],["c",-.09,-.06,-.12,-.06,-.3,-.06],["c",-.69,.06,-1.53,1.02,-2.28,2.61],["c",-.09,.21,-.21,.45,-.27,.51],["c",-.09,.12,-.33,.24,-.48,.24],["c",-.18,0,-.36,-.15,-.36,-.3],["c",0,-.24,.78,-1.83,1.26,-2.55],["c",.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-.27,-.12,-.75,-.03,-1.14,.21],["c",-.75,.48,-1.47,1.68,-1.89,3.15],["c",-.45,1.47,-.42,2.34,0,2.7],["c",.45,.39,1.26,.21,1.83,-.36],["c",.51,-.51,.99,-1.68,1.38,-3.27],["c",.3,-1.17,.33,-1.74,.15,-2.13],["c",-.09,-.15,-.15,-.21,-.33,-.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",.27,-.03,.93,0,1.2,.06],["c",.84,.21,1.23,.81,1.02,1.53],["c",-.24,.75,-.9,1.17,-1.56,.96],["c",-.33,-.09,-.51,-.3,-.66,-.75],["c",-.03,-.12,-.09,-.24,-.12,-.3],["c",-.09,-.15,-.3,-.24,-.48,-.24],["c",-.57,0,-1.38,.54,-1.65,1.08],["c",-.06,.15,-.33,1.17,-.9,3.27],["c",-.57,2.31,-.81,3.12,-.87,3.21],["c",-.03,.06,-.12,.15,-.18,.21],["l",-.12,.06],["l",-.81,.03],["c",-.69,0,-.81,0,-.9,-.03],["c",-.09,-.06,-.18,-.21,-.18,-.3],["c",0,-.06,.39,-1.62,.9,-3.51],["c",.84,-3.24,.87,-3.45,.87,-3.72],["c",0,-.21,0,-.27,-.03,-.36],["c",-.12,-.15,-.21,-.24,-.42,-.24],["c",-.24,0,-.45,.15,-.78,.42],["c",-.33,.36,-.45,.54,-.72,1.14],["c",-.03,.12,-.21,.24,-.36,.27],["c",-.12,0,-.15,0,-.24,-.06],["c",-.18,-.12,-.18,-.21,-.06,-.54],["c",.21,-.57,.42,-.93,.78,-1.32],["c",.54,-.51,1.2,-.81,1.95,-.87],["c",.81,-.03,1.53,.3,1.92,.87],["l",.12,.18],["l",.09,-.09],["c",.57,-.45,1.41,-.84,2.19,-.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",.09,0,.36,-.03,.57,-.03],["c",.75,.03,1.29,.24,1.71,.63],["c",.51,.54,.66,1.26,.36,1.83],["c",-.24,.42,-.63,.57,-1.11,.42],["c",-.33,-.09,-.6,-.36,-.6,-.57],["c",0,-.03,.06,-.21,.15,-.39],["c",.12,-.21,.15,-.33,.18,-.48],["c",0,-.24,-.06,-.48,-.15,-.6],["c",-.15,-.21,-.42,-.24,-.75,-.15],["c",-.27,.06,-.48,.18,-.69,.36],["c",-.39,.39,-.51,.96,-.33,1.38],["c",.09,.21,.42,.51,.78,.72],["c",1.11,.69,1.59,1.11,1.89,1.68],["c",.21,.39,.24,.78,.15,1.29],["c",-.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,.24,-1.95,.12,-2.7,-.42],["c",-.72,-.51,-.99,-1.47,-.6,-2.19],["c",.24,-.48,.72,-.63,1.17,-.42],["c",.33,.18,.54,.45,.57,.81],["c",0,.21,-.03,.3,-.33,.51],["c",-.33,.24,-.39,.42,-.27,.69],["c",.06,.15,.21,.27,.45,.33],["c",.3,.09,.87,.09,1.2,0],["c",.75,-.21,1.23,-.72,1.29,-1.35],["c",.03,-.42,-.15,-.81,-.54,-1.2],["c",-.24,-.24,-.48,-.42,-1.41,-1.02],["c",-.69,-.42,-1.05,-.93,-1.05,-1.47],["c",0,-.39,.12,-.87,.3,-1.23],["c",.27,-.57,.78,-1.05,1.38,-1.35],["c",.24,-.12,.63,-.27,.9,-.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",.36,-.09,.81,-.03,1.71,.27],["c",.78,.21,.96,.27,1.74,.3],["c",.87,.06,1.02,.03,1.38,-.21],["c",.21,-.15,.33,-.15,.48,-.06],["c",.15,.09,.21,.3,.15,.45],["c",-.03,.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",.54,.03],["c",.54,.03,.72,.03,2.01,.15],["c",.36,.03,.9,.06,1.2,.09],["c",.66,0,.81,-.03,1.02,-.24],["c",.3,-.3,.39,-.72,.27,-1.23],["c",-.06,-.27,-.06,-.27,-.03,-.39],["c",.15,-.3,.54,-.27,.69,.03],["c",.15,.33,.27,1.02,.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-.57,.03,-1.02,-.09,-2.01,-.51],["c",-1.02,-.42,-1.23,-.48,-2.13,-.54],["c",-.81,-.06,-.96,-.03,-1.26,.18],["c",-.12,.06,-.24,.12,-.27,.12],["c",-.27,0,-.45,-.3,-.36,-.51],["c",.03,-.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-.03,0,-.21,.03,-.42,.06],["c",-.21,.03,-.78,.09,-1.23,.12],["c",-1.11,.12,-1.23,.15,-1.95,.27],["c",-.72,.15,-1.17,.18,-1.29,.09],["c",-.27,-.18,-.21,-.75,.12,-1.26],["c",.39,-.6,.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-9.3],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,.06],["c",.06,.03,.15,.09,.18,.12],["c",.12,.09,.21,.33,.21,.48],["c",0,.15,-.09,.39,-.21,.48],["c",-.03,.03,-.12,.09,-.18,.12],["c",-.12,.06,-.18,.06,-1.41,.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-.06,1.41],["c",-.09,.18,-.15,.24,-.3,.33],["c",-.21,.09,-.39,.09,-.57,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,.06,-1.41],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.32,-3.36],["c",.57,-.15,1.17,.03,1.59,.45],["c",.45,.45,.6,.96,.51,1.89],["c",-.09,1.23,-.42,2.46,-.99,3.93],["c",-.3,.72,-.72,1.62,-.78,1.68],["c",-.18,.21,-.51,.18,-.66,-.06],["c",-.03,-.06,-.06,-.15,-.06,-.18],["c",0,-.06,.12,-.33,.24,-.63],["c",.84,-1.8,1.02,-2.61,.69,-3.24],["c",-.12,-.24,-.27,-.36,-.75,-.6],["c",-.36,-.15,-.42,-.21,-.6,-.39],["c",-.69,-.69,-.69,-1.71,0,-2.4],["c",.21,-.21,.51,-.39,.81,-.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",.18,-5.34],["c",.09,-.06,.15,-.06,2.31,-.06],["c",2.46,0,2.37,0,2.46,.21],["c",.12,.21,.03,.42,-.15,.54],["c",-.09,.06,-.15,.06,-2.28,.06],["c",-2.16,0,-2.22,0,-2.31,-.06],["c",-.27,-.15,-.27,-.54,-.03,-.69],["z"]],w:5.001,h:.81},".":{d:[["M",1.32,-3.36],["c",1.05,-.27,2.1,.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-.9,-.21,-1.5,-1.14,-1.26,-2.04],["c",.12,-.63,.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402},"scripts.wedge":{d:[["M",-3.66,-7.44],["c",.06,-.09,0,-.09,.81,.03],["c",1.86,.3,3.84,.3,5.73,0],["c",.78,-.12,.72,-.12,.78,-.03],["c",.15,.15,.12,.24,-.24,.6],["c",-.93,.93,-1.98,2.76,-2.67,4.62],["c",-.3,.78,-.51,1.71,-.51,2.13],["c",0,.15,0,.18,-.06,.27],["c",-.12,.09,-.24,.09,-.36,0],["c",-.06,-.09,-.06,-.12,-.06,-.27],["c",0,-.42,-.21,-1.35,-.51,-2.13],["c",-.69,-1.86,-1.74,-3.69,-2.67,-4.62],["c",-.36,-.36,-.39,-.45,-.24,-.6],["z"]],w:7.49,h:7.752},"scripts.thumb":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.27,1.41,-1.08,2.43,-2.16,2.73],["l",-.18,.06],["l",0,.12],["c",.03,.06,.06,.45,.09,.87],["c",.03,.57,.03,.78,0,.84],["c",-.09,.27,-.39,.48,-.66,.48],["c",-.27,0,-.57,-.21,-.66,-.48],["c",-.03,-.06,-.03,-.27,0,-.84],["c",.03,-.42,.06,-.81,.09,-.87],["l",0,-.12],["l",-.18,-.06],["c",-1.08,-.3,-1.89,-1.32,-2.16,-2.73],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.05,.9],["c",-.15,-.09,-.21,-.09,-.45,-.12],["c",-.15,0,-.3,.03,-.39,.03],["c",-.57,.18,-.9,.72,-1.08,1.74],["c",-.06,.48,-.06,1.8,0,2.28],["c",.15,.9,.42,1.44,.9,1.65],["c",.18,.09,.21,.09,.51,.09],["c",.3,0,.33,0,.51,-.09],["c",.48,-.21,.75,-.75,.9,-1.65],["c",.03,-.27,.03,-.54,.03,-1.14],["c",0,-.6,0,-.87,-.03,-1.14],["c",-.15,-.9,-.45,-1.44,-.9,-1.65],["z"]],w:5.955,h:9.75},"scripts.open":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.33,1.74,-1.47,2.85,-2.91,2.85],["c",-1.44,0,-2.58,-1.11,-2.91,-2.85],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.11,.9],["c",-.21,-.09,-.27,-.09,-.51,-.12],["c",-.3,0,-.42,.03,-.66,.15],["c",-.24,.12,-.51,.39,-.66,.63],["c",-.54,.93,-.63,2.64,-.21,3.81],["c",.21,.54,.51,.9,.93,1.11],["c",.21,.09,.24,.09,.54,.09],["c",.3,0,.33,0,.54,-.09],["c",.42,-.21,.72,-.57,.93,-1.11],["c",.36,-.99,.36,-2.37,0,-3.36],["c",-.21,-.54,-.51,-.9,-.9,-1.11],["z"]],w:5.955,h:7.5},"scripts.longphrase":{d:[["M",1.47,-15.09],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.54,.06,11.25],["l",0,11.25],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-3.39,-.03,-11.25],["l",0,-11.25],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.39,.06,7.5],["l",0,7.5],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-2.28,-.03,-7.5],["l",0,-7.5],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:15.54},"scripts.shortphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.21,.06,3.75],["l",0,3.75],["l",-.42,.09],["c",-.57,.18,-1.65,.45,-1.71,.45],["c",-.03,0,-.03,-.72,-.03,-3.75],["l",0,-3.75],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:8.04},"scripts.snap":{d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84},"noteheads.slash.whole":{d:[["M",5,-5],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"],["m",0,-2],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",-4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"]],w:10.81,h:15.63},"noteheads.slash.quarter":{d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},"noteheads.harmonic.quarter":{d:[["M",3.63,-4.02],["c",.09,-.06,.18,-.09,.24,-.03],["c",.03,.03,.87,.93,1.83,2.01],["c",1.5,1.65,1.8,1.98,1.8,2.04],["c",0,.06,-.3,.39,-1.8,2.04],["c",-.96,1.08,-1.8,1.98,-1.83,2.01],["c",-.06,.06,-.15,.03,-.24,-.03],["c",-.12,-.09,-3.54,-3.84,-3.6,-3.93],["c",-.03,-.03,-.03,-.09,-.03,-.15],["c",.03,-.06,3.45,-3.84,3.63,-3.96],["z"]],w:7.5,h:8.165}};this.printSymbol=function(t,i,n,r,a){if(!e[n])return null;var s=this.pathClone(e[n].d);s[0][1]+=t,s[0][2]+=i;for(var o="",c=0;c<s.length;c++)o+=s[c].join(" ");return r.path({path:o,stroke:"none",fill:"#000000",class:a})},this.getPathForSymbol=function(t,i,n,r,a){if(r=r||1,a=a||1,!e[n])return null;var s=this.pathClone(e[n].d);return 1===r&&1===a||this.pathScale(s,r,a),s[0][1]+=t,s[0][2]+=i,s},this.getSymbolWidth=function(t){return e[t]?e[t].w:0},this.getSymbolHeight=function(t){return e[t]?e[t].h:0},this.symbolHeightInPitches=function(e){return this.getSymbolHeight(e)/n.STEP},this.getSymbolAlign=function(e){return"scripts"===e.substring(0,7)&&"scripts.roll"!==e?"center":"left"},this.pathClone=function(e){for(var t=[],i=0,n=e.length;i<n;i++){t[i]=[];for(var r=0,a=e[i].length;r<a;r++)t[i][r]=e[i][r]}return t},this.pathScale=function(e,t,i){for(var n=0,r=e.length;n<r;n++){var a,s,o=e[n];for(a=1,s=o.length;a<s;a++)o[a]*=a%2?t:i}},this.getYCorr=function(e){switch(e){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":return-2;case"timesig.common":case"timesig.cut":return 0;case"flags.d32nd":return-1;case"flags.d64th":return-2;case"flags.u32nd":return 1;case"flags.u64th":return 3;case"rests.whole":return 1;case"rests.half":case"rests.8th":case"rests.quarter":case"rests.16th":case"rests.32nd":case"rests.64th":return-1;case"f":case"m":case"p":case"s":case"z":return-4;case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return-2;case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return-1;case"scripts.dfermata":return 1;default:return 0}}}},function(e,t,i){var n=i(1),r=function(e,t,i,n,r,a){a||(a={}),this.tuneNumber=r,this.abcelem=e,this.duration=t,this.durationClass=a.durationClassOveride?a.durationClassOveride:this.duration,this.minspacing=i||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=n,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};r.prototype.setUpperAndLowerElements=function(e){for(var t=0;t<this.children.length;t++){var i=this.children[t];for(var n in this.specialY)this.specialY.hasOwnProperty(n)&&i[n]&&(i.pitch=e[n],void 0===i.top&&(i.setUpperAndLowerElements(e),this.pushTop(i.top),this.pushBottom(i.bottom)))}},r.prototype.getMinWidth=function(){return this.w},r.prototype.getExtraWidth=function(){return-this.extraw},r.prototype.addExtra=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.extra[this.extra.length]=e,this.addChild(e)},r.prototype.addHead=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.heads[this.heads.length]=e,this.addRight(e)},r.prototype.addRight=function(e){e.dx+e.w>this.w&&(this.w=e.dx+e.w),this.right[this.right.length]=e,this.addChild(e)},r.prototype.addCentered=function(e){var t=e.w/2;-t<this.extraw&&(this.extraw=-t),this.extra[this.extra.length]=e,e.dx+t>this.w&&(this.w=e.dx+t),this.right[this.right.length]=e,this.addChild(e)},r.prototype.setLimit=function(e,t){t[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],t[e]):this.specialY[e]=t[e])},r.prototype.addChild=function(e){e.parent=this,this.children[this.children.length]=e,this.pushTop(e.top),this.pushBottom(e.bottom),this.setLimit("tempoHeightAbove",e),this.setLimit("partHeightAbove",e),this.setLimit("volumeHeightAbove",e),this.setLimit("dynamicHeightAbove",e),this.setLimit("endingHeightAbove",e),this.setLimit("chordHeightAbove",e),this.setLimit("lyricHeightAbove",e),this.setLimit("lyricHeightBelow",e),this.setLimit("chordHeightBelow",e),this.setLimit("volumeHeightBelow",e),this.setLimit("dynamicHeightBelow",e)},r.prototype.pushTop=function(e){void 0!==e&&(void 0===this.top?this.top=e:this.top=Math.max(e,this.top))},r.prototype.pushBottom=function(e){void 0!==e&&(void 0===this.bottom?this.bottom=e:this.bottom=Math.min(e,this.bottom))},r.prototype.setX=function(e){this.x=e;for(var t=0;t<this.children.length;t++)this.children[t].setX(e)},r.prototype.setHint=function(){this.hint=!0},r.prototype.draw=function(e,t){if(!this.invisible){this.elemset=[],e.beginGroup();for(var i=0;i<this.children.length;i++){0;var r=this.children[i].draw(e,t);r&&this.elemset.push(r)}var a=this.type;if(("note"===this.type||"rest"===this.type)&&(a=(a+=" d"+this.durationClass).replace(/\./g,"-"),this.abcelem.pitches))for(var s=0;s<this.abcelem.pitches.length;s++)a+=" p"+this.abcelem.pitches[s].pitch;var o=e.endGroup(a);o&&this.elemset.push(o),this.klass&&this.setClass("mark","","#00ff00"),this.hint&&this.setClass("abcjs-hint","",null);var c=e.printShadedBox(this.x,e.calcY(this.top),this.w,e.calcY(this.bottom)-e.calcY(this.top),"#000000",0),l=this,h=e.controller;c.addEventListener("mouseup",(function(){var e=[];if(l.elemset)for(var t=0;t<l.elemset.length;t++){var i=l.elemset[t];i&&e.push(i.getAttribute("class"))}h.notifySelect(l,l.tuneNumber,e)})),this.abcelem.abselem=this;n.STEP}},r.prototype.isIE=!1,r.prototype.setClass=function(e,t,i){for(var n=0;n<this.elemset.length;n++){var r=this.elemset[n];r.setAttribute("fill",i);var a=r.getAttribute("class");a||(a=""),a=(a=a.replace(t,"")).replace(e,""),e.length>0&&(a.length>0&&" "!==a.charAt(a.length-1)&&(a+=" "),a+=e),r.setAttribute("class",a)}},r.prototype.highlight=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#ff0000"),this.setClass(e,"",t)},r.prototype.unhighlight=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#000000"),this.setClass("",e,t)},e.exports=r},function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){for(var e,t,n,r,a,s=0,o=arguments[s++],c=[];o;){if(t=/^[^\x25]+/.exec(o))c.push(t[0]);else if(t=/^\x25{2}/.exec(o))c.push("%");else{if(!(t=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(o)))throw"Huh ?!";if(null==(e=arguments[t[1]||s++])||null==e)throw"Too few arguments.";if(/[^s]/.test(t[7])&&"number"!=typeof e)throw"Expecting number but found "+i(e);switch(t[7]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e);break;case"e":e=t[6]?e.toExponential(t[6]):e.toExponential();break;case"f":e=t[6]?parseFloat(e).toFixed(t[6]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&t[6]?e.substring(0,t[6]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(t[7])&&t[2]&&e>0?"+"+e:e,r=t[3]?"0"==t[3]?"0":t[3].charAt(1):" ",a=t[5]-String(e).length,n=t[5]?str_repeat(r,a):"",c.push(t[4]?e+n:n+e)}o=o.substring(t[0].length)}return c.join("")}},function(e,t,i){var n=i(0),r={};!function(){"use strict";var e,t,i,a;r.initialize=function(n,r,s,o){e=n,t=r,a=o,(i=s).annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},i.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},i.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},i.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},i.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},a.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},a.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},a.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},a.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},a.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},a.formatting.annotationfont=i.annotationfont,a.formatting.gchordfont=i.gchordfont,a.formatting.historyfont=i.historyfont,a.formatting.infofont=i.infofont,a.formatting.measurefont=i.measurefont,a.formatting.partsfont=i.partsfont,a.formatting.repeatfont=i.repeatfont,a.formatting.textfont=i.textfont,a.formatting.tripletfont=i.tripletfont,a.formatting.vocalfont=i.vocalfont,a.formatting.wordsfont=i.wordsfont};var s={gchordfont:!0,measurefont:!0,partsfont:!0},o=function(e,i,n,r,a){function o(){var o=parseInt(e[0].token);return e.shift(),i?0===e.length?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:o}:1===e.length&&"box"===e[0].token&&s[a]?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:o,box:!0}:(t("Extra parameters in font definition.",n,r),{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:o}):(t("Can't set just the size of the font since there is no default value.",n,r),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:o})}if("*"===e[0].token){if(e.shift(),"number"===e[0].type)return o();t("Expected font size number after *.",n,r)}if("number"===e[0].type)return o();for(var c,l=[],h="normal",u="normal",d="none",f=!1,p="face",m=!1;e.length;){var g=e.shift(),v=g.token.toLowerCase();switch(p){case"face":m||"utf"!==v&&"number"!==g.type&&"bold"!==v&&"italic"!==v&&"underline"!==v&&"box"!==v?l.length>0&&"-"===g.token?(m=!0,l[l.length-1]=l[l.length-1]+g.token):m?(m=!1,l[l.length-1]=l[l.length-1]+g.token):l.push(g.token):"number"===g.type?(c?t("Font size specified twice in font definition.",n,r):c=g.token,p="modifier"):"bold"===v?h="bold":"italic"===v?u="italic":"underline"===v?d="underline":"box"===v?(s[a]?f=!0:t('This font style doesn\'t support "box"',n,r),p="finished"):"utf"===v?(g=e.shift(),p="size"):t("Unknown parameter "+g.token+" in font definition.",n,r);break;case"size":"number"===g.type?c?t("Font size specified twice in font definition.",n,r):c=g.token:t("Expected font size in font definition.",n,r),p="modifier";break;case"modifier":"bold"===v?h="bold":"italic"===v?u="italic":"underline"===v?d="underline":"box"===v?(s[a]?f=!0:t('This font style doesn\'t support "box"',n,r),p="finished"):t("Unknown parameter "+g.token+" in font definition.",n,r);break;case"finished":t('Extra characters found after "box" in font definition.',n,r)}}void 0===c?i?c=i.size:(t("Must specify the size of the font since there is no default value.",n,r),c=12):c=parseFloat(c);var b=function(e){switch(e){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}}(l=l.join(" ")),y={};return b?(y.face=b.face,y.weight=b.weight,y.style=b.style,y.decoration=b.decoration,y.size=c,f&&(y.box=!0),y):(y.face=l,y.weight=h,y.style=u,y.decoration=d,y.size=c,f&&(y.box=!0),y)},c=function(e,t,n){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(i[e]=o(t,i[e],n,0,e),i.is_in_header&&(a.formatting[e]=i[e]),null)},l=function(e,t){var i="";n.each(t,(function(e){i+=e.token}));var r=parseFloat(i);if(isNaN(r)||0===r)return'Directive "'+e+'" requires a number as a parameter.';a.formatting.scale=r},h=function(e,t,n,r,a){if(1!==n.length||"number"!==n[0].type)return'Directive "'+t+'" requires a number as a parameter.';var s=n[0].intt;return void 0!==r&&s<r?'Directive "'+t+'" requires a number greater than or equal to '+r+" as a parameter.":void 0!==a&&s>a?'Directive "'+t+'" requires a number less than or equal to '+a+" as a parameter.":(i[e]=s,null)},u=function(e,t,n){var r=h(e,t,n,0,1);return null!==r?r:(i[e]=1===i[e],null)},d=function(e,t,n,r){if(1!==n.length)return'Directive "'+t+'" requires one of [ '+r.join(", ")+" ] as a parameter.";for(var a=n[0].token,s=!1,o=0;!s&&o<r.length;o++)r[o]===a&&(s=!0);return s?(i[e]=a,null):'Directive "'+t+'" requires one of [ '+r.join(", ")+" ] as a parameter."},f=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],p=["gchord","ptstress","beatstring"],m=["bassvol","chordvol","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","volinc"],g=["program"],v=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],b=["beat"],y=["drone"],w=["portamento"],A=["expand","grace","trim"],k=["drum","chordname"];r.parseFontChangeLine=function(e){var t=e.split("$");if(t.length>1&&i.setfont){for(var n=[{text:t[0]}],r=1;r<t.length;r++)"0"===t[r].charAt(0)?n.push({text:t[r].substring(1)}):"1"===t[r].charAt(0)&&i.setfont[1]?n.push({font:i.setfont[1],text:t[r].substring(1)}):"2"===t[r].charAt(0)&&i.setfont[2]?n.push({font:i.setfont[2],text:t[r].substring(1)}):"3"===t[r].charAt(0)&&i.setfont[3]?n.push({font:i.setfont[3],text:t[r].substring(1)}):"4"===t[r].charAt(0)&&i.setfont[4]?n.push({font:i.setfont[4],text:t[r].substring(1)}):n[n.length-1].text+="$"+t[r];if(n.length>1)return n}return e};var x=["auto","above","below","hidden"];r.addDirective=function(s){var T=e.tokenize(s,0,s.length);if(0===T.length||"alpha"!==T[0].type)return null;var S=s.substring(s.indexOf(T[0].token)+T[0].token.length);S=e.stripComment(S);var N=T.shift().token.toLowerCase(),M="";switch(N){case"bagpipes":a.formatting.bagpipes=!0;break;case"flatbeams":a.formatting.flatbeams=!0;break;case"landscape":i.landscape=!0;break;case"papersize":i.papersize=S;break;case"slurgraces":a.formatting.slurgraces=!0;break;case"stretchlast":a.formatting.stretchlast=!0;break;case"titlecaps":i.titlecaps=!0;break;case"titleleft":a.formatting.titleleft=!0;break;case"measurebox":a.formatting.measurebox=!0;break;case"vocal":return d("vocalPosition",N,T,x);case"dynamic":return d("dynamicPosition",N,T,x);case"gchord":return d("chordPosition",N,T,x);case"ornament":return d("ornamentPosition",N,T,x);case"volume":return d("volumePosition",N,T,x);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return function(t,i){var n=e.getMeasurement(i);return 0===n.used||0!==i.length?'Directive "'+t+'" requires a measurement as a parameter.':(a.formatting[t]=n.value,null)}(N,T);case"voicescale":if(1!==T.length||"number"!==T[0].type)return"voicescale requires one float as a parameter";var I=T.shift();return i.currentVoice&&(i.currentVoice.scale=I.floatt,a.changeVoiceScale(i.currentVoice.scale)),null;case"vskip":var C=function(t,i){var n=e.getMeasurement(i);return 0===n.used||0!==i.length?{error:'Directive "'+t+'" requires a measurement as a parameter.'}:n.value}(N,T);return C.error?C.error:(a.addSpacing(C),null);case"scale":l(N,T);break;case"sep":if(0===T.length)a.addSeparator();else{var E=e.getMeasurement(T);if(0===E.used)return'Directive "'+N+'" requires 3 numbers: space above, space below, length of line';var _=E.value;if(0===(E=e.getMeasurement(T)).used)return'Directive "'+N+'" requires 3 numbers: space above, space below, length of line';var B=E.value;if(0===(E=e.getMeasurement(T)).used||0!==T.length)return'Directive "'+N+'" requires 3 numbers: space above, space below, length of line';var P=E.value;a.addSeparator(_,B,P)}break;case"barsperstaff":if(null!==(M=h("barsperstaff",N,T)))return M;break;case"staffnonote":if(1!==T.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===T[0].token)i.staffnonote=!0;else{if("1"!==T[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+T[0].token+")";i.staffnonote=!1}break;case"printtempo":if(null!==(M=u("printTempo",N,T)))return M;break;case"partsbox":if(null!==(M=u("partsBox",N,T)))return M;i.partsfont.box=i.partsBox;break;case"measurenb":case"barnumbers":if(null!==(M=h("barNumbers",N,T)))return M;break;case"setbarnb":if(1!==T.length||"number"!==T[0].type)return"Directive setbarnb requires a number as a parameter.";i.currBarNumber=a.setBarNumberImmediate(T[0].intt);break;case"begintext":i.inTextBlock=!0;break;case"continueall":i.continueall=!0;break;case"beginps":i.inPsBlock=!0,t("Postscript ignored",s,0);break;case"deco":S.length>0&&i.ignoredDecorations.push(S.substring(0,S.indexOf(" "))),t("Decoration redefinition ignored",s,0);break;case"text":var D=e.translateString(S);a.addText(r.parseFontChangeLine(D));break;case"center":var L=e.translateString(S);a.addCentered(r.parseFontChangeLine(L));break;case"font":break;case"setfont":var H=e.tokenize(S,0,S.length);if(H.length>=4&&"-"===H[0].token&&"number"===H[1].type){var V=parseInt(H[1].token);V>=1&&V<=4&&(i.setfont||(i.setfont=[]),H.shift(),H.shift(),i.setfont[V]=o(H,i.setfont[V],s,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return c(N,T,s);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(e,t,i){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(a.formatting[e]=o(t,a.formatting[e],i,0,e),null)}(N,T,s);case"barlabelfont":case"barnumberfont":case"barnumfont":return c("measurefont",T,s);case"staves":case"score":i.score_is_present=!0;for(var z,O=function(e,t,r,a,s){(t||0===i.staves.length)&&i.staves.push({index:i.staves.length,numVoices:0});var o=n.last(i.staves);void 0!==r&&(o.bracket=r),void 0!==a&&(o.brace=a),s&&(o.connectBarLines="end"),void 0===i.voices[e]&&(i.voices[e]={staffNum:o.index,index:o.numVoices},o.numVoices++)},q=!1,j=!1,F=!1,R=!1,W=!1,Y=!1,U=!1,G=function(){if(U=!0,z){var e="start";z.staffNum>0&&("start"!==i.staves[z.staffNum-1].connectBarLines&&"continue"!==i.staves[z.staffNum-1].connectBarLines||(e="continue")),i.staves[z.staffNum].connectBarLines=e}};T.length;){var K=T.shift();switch(K.token){case"(":q?t("Can't nest parenthesis in %%score",s,K.start):(q=!0,R=!0);break;case")":!q||R?t("Unexpected close parenthesis in %%score",s,K.start):q=!1;break;case"[":j?t("Can't nest brackets in %%score",s,K.start):(j=!0,W=!0);break;case"]":!j||W?t("Unexpected close bracket in %%score",s,K.start):(j=!1,i.staves[z.staffNum].bracket="end");break;case"{":F?t("Can't nest braces in %%score",s,K.start):(F=!0,Y=!0);break;case"}":!F||Y?t("Unexpected close brace in %%score",s,K.start):(F=!1,i.staves[z.staffNum].brace="end");break;case"|":G();break;default:for(var X="";("alpha"===K.type||"number"===K.type)&&(X+=K.token,K.continueId);)K=T.shift();O(X,!q||R,W?"start":j?"continue":void 0,Y?"start":F?"continue":void 0,U),R=!1,W=!1,Y=!1,U=!1,z=i.voices[X],"staves"===N&&G()}}break;case"newpage":var Z=e.getInt(S);a.addNewPage(0===Z.digits?-1:Z.value);break;case"abc":var Q=S.split(" ");switch(Q[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var J=Q.shift();a.addMetaText(N+J,Q.join(" "));break;default:return"Unknown directive: "+N+Q[0]}break;case"header":case"footer":var $=e.getMeat(S,0,S.length);'"'===($=S.substring($.start,$.end)).charAt(0)&&'"'===$.charAt($.length-1)&&($=$.substring(1,$.length-1));var ee=$.split("\t"),te={};te=1===ee.length?{left:"",center:ee[0],right:""}:2===ee.length?{left:ee[0],center:ee[1],right:""}:{left:ee[0],center:ee[1],right:ee[2]},ee.length>3&&t("Too many tabs in "+N+": "+ee.length+" found.",S,0),a.addMetaTextObj(N,te);break;case"midi":var ie=e.tokenize(S,0,S.length,!0);ie.length>0&&"="===ie[0].token&&ie.shift(),0===ie.length?t("Expected midi command",S,0):function(e,i,n){var r=e.shift().token,a=[];if(f.indexOf(r)>=0)0!==e.length&&t("Unexpected parameter in MIDI "+r,n,0);else if(p.indexOf(r)>=0)1!==e.length?t("Expected one parameter in MIDI "+r,n,0):a.push(e[0].token);else if(m.indexOf(r)>=0)1!==e.length?t("Expected one parameter in MIDI "+r,n,0):"number"!==e[0].type?t("Expected one integer parameter in MIDI "+r,n,0):a.push(e[0].intt);else if(g.indexOf(r)>=0)1!==e.length&&2!==e.length?t("Expected one or two parameters in MIDI "+r,n,0):"number"!==e[0].type?t("Expected integer parameter in MIDI "+r,n,0):2===e.length&&"number"!==e[1].type?t("Expected integer parameter in MIDI "+r,n,0):(a.push(e[0].intt),2===e.length&&a.push(e[1].intt));else if(v.indexOf(r)>=0)2!==e.length?t("Expected two parameters in MIDI "+r,n,0):"number"!==e[0].type||"number"!==e[1].type?t("Expected two integer parameters in MIDI "+r,n,0):(a.push(e[0].intt),a.push(e[1].intt));else if(w.indexOf(r)>=0)2!==e.length?t("Expected two parameters in MIDI "+r,n,0):"alpha"!==e[0].type||"number"!==e[1].type?t("Expected one string and one integer parameters in MIDI "+r,n,0):(a.push(e[0].token),a.push(e[1].intt));else if("drummap"===r)2===e.length&&"alpha"===e[0].type&&"number"===e[1].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[e[0].token]=e[1].intt,a=i.formatting.midi.drummap):3===e.length&&"punct"===e[0].type&&"alpha"===e[1].type&&"number"===e[2].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[e[0].token+e[1].token]=e[2].intt,a=i.formatting.midi.drummap):t("Expected one note name and one integer parameter in MIDI "+r,n,0);else if(A.indexOf(r)>=0)3!==e.length?t("Expected fraction parameter in MIDI "+r,n,0):"number"!==e[0].type||"/"!==e[1].token||"number"!==e[2].type?t("Expected fraction parameter in MIDI "+r,n,0):(a.push(e[0].intt),a.push(e[2].intt));else if(b.indexOf(r)>=0)4!==e.length?t("Expected four parameters in MIDI "+r,n,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type?t("Expected four integer parameters in MIDI "+r,n,0):(a.push(e[0].intt),a.push(e[1].intt),a.push(e[2].intt),a.push(e[3].intt));else if(y.indexOf(r)>=0)5!==e.length?t("Expected five parameters in MIDI "+r,n,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type||"number"!==e[4].type?t("Expected five integer parameters in MIDI "+r,n,0):(a.push(e[0].intt),a.push(e[1].intt),a.push(e[2].intt),a.push(e[3].intt),a.push(e[4].intt));else if(g.indexOf(r)>=0)1!==e.length||4!==e.length?t("Expected one or two parameters in MIDI "+r,n,0):"number"!==e[0].type?t("Expected integer parameter in MIDI "+r,n,0):4===e.length?("octave"!==e[1].token&&t("Expected octave parameter in MIDI "+r,n,0),"="!==e[2].token&&t("Expected octave parameter in MIDI "+r,n,0),"number"!==e[3].type&&t("Expected integer parameter for octave in MIDI "+r,n,0)):(a.push(e[0].intt),4===e.length&&a.push(e[3].intt));else if(k.indexOf(r)>=0)if(e.length<2)t("Expected string parameter and at least one integer parameter in MIDI "+r,n,0);else if("alpha"!==e[0].type)t("Expected string parameter and at least one integer parameter in MIDI "+r,n,0);else{var s=e.shift();for(a.push(s.token);e.length>0;)"number"!==(s=e.shift()).type&&t("Expected integer parameter in MIDI "+r,n,0),a.push(s.intt)}i.hasBeginMusic()?i.appendElement("midi",-1,-1,{cmd:r,params:a}):(void 0===i.formatting.midi&&(i.formatting.midi={}),i.formatting.midi[r]=a)}(ie,a,S);break;case"map":case"percmap":case"playtempo":case"auquality":case"continuous":case"nobarcheck":a.formatting[N]=S;break;default:return"Unknown directive: "+N}return null},r.globalFormatting=function(n){for(var r in n)if(n.hasOwnProperty(r)){var a,s=""+n[r],o=e.tokenize(s,0,s.length);switch(r){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":c(r,o,s);break;case"scale":l(r,o);break;case"partsbox":null!==(a=u("partsBox",r,o))&&t(a),i.partsfont.box=i.partsBox;break;default:t("Formatting directive unrecognized: ",r,0)}}}}(),e.exports=r},function(e,t,i){var n=i(0),r=i(6),a=i(10),s={};!function(){var e,t,i,o;s.initialize=function(n,r,a,s){e=n,t=r,i=a,o=s},s.standardKey=function(e,t,n,r){var s={acc:"sharp",note:"f"},o={acc:"sharp",note:"c"},c={acc:"sharp",note:"g"},l={acc:"sharp",note:"d"},h={acc:"sharp",note:"A"},u={acc:"sharp",note:"e"},d={acc:"sharp",note:"B"},f={acc:"flat",note:"B"},p={acc:"flat",note:"e"},m={acc:"flat",note:"A"},g={acc:"flat",note:"d"},v={acc:"flat",note:"G"},b={acc:"flat",note:"c"},y={acc:"flat",note:"F"},w={"C#":[s,o,c,l,h,u,d],"A#m":[s,o,c,l,h,u,d],"G#Mix":[s,o,c,l,h,u,d],"D#Dor":[s,o,c,l,h,u,d],"E#Phr":[s,o,c,l,h,u,d],"F#Lyd":[s,o,c,l,h,u,d],"B#Loc":[s,o,c,l,h,u,d],"F#":[s,o,c,l,h,u],"D#m":[s,o,c,l,h,u],"C#Mix":[s,o,c,l,h,u],"G#Dor":[s,o,c,l,h,u],"A#Phr":[s,o,c,l,h,u],BLyd:[s,o,c,l,h,u],"E#Loc":[s,o,c,l,h,u],B:[s,o,c,l,h],"G#m":[s,o,c,l,h],"F#Mix":[s,o,c,l,h],"C#Dor":[s,o,c,l,h],"D#Phr":[s,o,c,l,h],ELyd:[s,o,c,l,h],"A#Loc":[s,o,c,l,h],E:[s,o,c,l],"C#m":[s,o,c,l],BMix:[s,o,c,l],"F#Dor":[s,o,c,l],"G#Phr":[s,o,c,l],ALyd:[s,o,c,l],"D#Loc":[s,o,c,l],A:[s,o,c],"F#m":[s,o,c],EMix:[s,o,c],BDor:[s,o,c],"C#Phr":[s,o,c],DLyd:[s,o,c],"G#Loc":[s,o,c],D:[s,o],Bm:[s,o],AMix:[s,o],EDor:[s,o],"F#Phr":[s,o],GLyd:[s,o],"C#Loc":[s,o],G:[s],Em:[s],DMix:[s],ADor:[s],BPhr:[s],CLyd:[s],"F#Loc":[s],C:[],Am:[],GMix:[],DDor:[],EPhr:[],FLyd:[],BLoc:[],F:[f],Dm:[f],CMix:[f],GDor:[f],APhr:[f],BbLyd:[f],ELoc:[f],Bb:[f,p],Gm:[f,p],FMix:[f,p],CDor:[f,p],DPhr:[f,p],EbLyd:[f,p],ALoc:[f,p],Eb:[f,p,m],Cm:[f,p,m],BbMix:[f,p,m],FDor:[f,p,m],GPhr:[f,p,m],AbLyd:[f,p,m],DLoc:[f,p,m],Ab:[f,p,m,g],Fm:[f,p,m,g],EbMix:[f,p,m,g],BbDor:[f,p,m,g],CPhr:[f,p,m,g],DbLyd:[f,p,m,g],GLoc:[f,p,m,g],Db:[f,p,m,g,v],Bbm:[f,p,m,g,v],AbMix:[f,p,m,g,v],EbDor:[f,p,m,g,v],FPhr:[f,p,m,g,v],GbLyd:[f,p,m,g,v],CLoc:[f,p,m,g,v],Gb:[f,p,m,g,v,b],Ebm:[f,p,m,g,v,b],DbMix:[f,p,m,g,v,b],AbDor:[f,p,m,g,v,b],BbPhr:[f,p,m,g,v,b],CbLyd:[f,p,m,g,v,b],FLoc:[f,p,m,g,v,b],Cb:[f,p,m,g,v,b,y],Abm:[f,p,m,g,v,b,y],GbMix:[f,p,m,g,v,b,y],DbDor:[f,p,m,g,v,b,y],EbPhr:[f,p,m,g,v,b,y],FbLyd:[f,p,m,g,v,b,y],BbLoc:[f,p,m,g,v,b,y],"A#":[f,p],"B#":[],"D#":[f,p,m],"E#":[f],"G#":[f,p,m,g],Gbm:[s,o,c,l,h,u,d]};return a.keySignature(i,w,e,t,n,r)};var c={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},l=function(e,t){var i=c[e];return(i?i.mid:0)+t};s.fixClef=function(e){var t=c[e.type];t&&(e.clefPos=t.pitch,e.type=t.clef)},s.deepCopyKey=function(e){var t={accidentals:[],root:e.root,acc:e.acc,mode:e.mode};return n.each(e.accidentals,(function(e){t.accidentals.push(n.clone(e))})),t};var h={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};s.addPosToKey=function(e,t){var i=e.verticalPos;n.each(t.accidentals,(function(e){var t=h[e.note];t-=i,e.verticalPos=t})),t.impliedNaturals&&n.each(t.impliedNaturals,(function(e){var t=h[e.note];t-=i,e.verticalPos=t})),i<-10?(n.each(t.accidentals,(function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),"G"!==e.note&&"F"!==e.note||"flat"!==e.acc||(e.verticalPos-=7)})),t.impliedNaturals&&n.each(t.impliedNaturals,(function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),"G"!==e.note&&"F"!==e.note||"flat"!==e.acc||(e.verticalPos-=7)}))):i<-4?(n.each(t.accidentals,(function(e){e.verticalPos-=7,-8!==i||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)})),t.impliedNaturals&&n.each(t.impliedNaturals,(function(e){e.verticalPos-=7,-8!==i||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)}))):i>=7&&(n.each(t.accidentals,(function(e){e.verticalPos+=7})),t.impliedNaturals&&n.each(t.impliedNaturals,(function(e){e.verticalPos+=7})))},s.fixKey=function(e,t){var i=n.clone(t);return s.addPosToKey(e,i),i};var u=function(e){var t=0,i=e.charAt(t++);"^"!==i&&"_"!==i||(i=e.charAt(t++));var n=h[i];for(void 0===n&&(n=6);t<e.length;t++)if(","===e.charAt(t))n-=7;else{if("'"!==e.charAt(t))break;n+=7}return{mid:n-6,str:e.substring(t)}};s.parseKey=function(n){0===n.length&&(n="none");var a=e.tokenize(n,0,n.length),o={};switch(a[0].token){case"HP":r.addDirective("bagpipes"),i.key={root:"HP",accidentals:[],acc:"",mode:""},o.foundKey=!0,a.shift();break;case"Hp":r.addDirective("bagpipes"),i.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},o.foundKey=!0,a.shift();break;case"none":i.key={root:"none",accidentals:[],acc:"",mode:""},o.foundKey=!0,a.shift();break;default:var c=e.getKeyPitch(a[0].token);if(c.len>0){o.foundKey=!0;var h="",u="";a[0].token.length>1?a[0].token=a[0].token.substring(1):a.shift();var d=c.token;if(a.length>0){var f=e.getSharpFlat(a[0].token);if(f.len>0&&(a[0].token.length>1?a[0].token=a[0].token.substring(1):a.shift(),d+=f.token,h=f.token),a.length>0){var p=e.getMode(a[0].token);p.len>0&&(a.shift(),d+=p.token,u=p.token)}if(void 0===s.standardKey(d,c.token,h,0))return t("Unsupported key signature: "+d,n,0),o}var m=s.deepCopyKey(i.key),g=i.globalTranspose?-i.globalTranspose:0;if(i.key=s.deepCopyKey(s.standardKey(d,c.token,h,g)),i.key.mode=u,m){for(var v,b=0;b<i.key.accidentals.length;b++)for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&i.key.accidentals[b].note.toLowerCase()===m.accidentals[v].note.toLowerCase()&&(m.accidentals[v].note=null);for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&(i.key.impliedNaturals||(i.key.impliedNaturals=[]),i.key.impliedNaturals.push({acc:"natural",note:m.accidentals[v].note}))}}}if(0===a.length)return o;if("exp"===a[0].token&&a.shift(),0===a.length)return o;if("oct"===a[0].token&&a.shift(),0===a.length)return o;var y,w=e.getKeyAccidentals2(a);if(w.warn&&t(w.warn,n,0),w.accs){o.foundKey||(o.foundKey=!0,i.key={root:"none",acc:"",mode:"",accidentals:[]}),function(e){for(var t=0;t<e.length;t++)"b"===e[t].note?e[t].note="B":"a"===e[t].note?e[t].note="A":"F"===e[t].note?e[t].note="f":"E"===e[t].note?e[t].note="e":"D"===e[t].note?e[t].note="d":"C"===e[t].note?e[t].note="c":"G"===e[t].note&&"sharp"===e[t].acc?e[t].note="g":"g"===e[t].note&&"flat"===e[t].acc&&(e[t].note="G")}(w.accs);for(var A=0;A<w.accs.length;A++){for(var k=!1,x=0;x<i.key.accidentals.length&&!k;x++)i.key.accidentals[x].note===w.accs[A].note&&(k=!0,i.key.accidentals[x].acc!==w.accs[A].acc&&(i.key.accidentals[x].acc=w.accs[A].acc,i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[A])));if(!k&&(i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[A]),i.key.accidentals.push(w.accs[A]),i.key.impliedNaturals))for(var T=0;T<i.key.impliedNaturals.length;T++)i.key.impliedNaturals[T].note===w.accs[A].note&&i.key.impliedNaturals.splice(T,1)}}for(;a.length>0;)switch(a[0].token){case"m":case"middle":if(a.shift(),0===a.length)return t("Expected = after middle",n,0),o;if("="!==(y=a.shift()).token){t("Expected = after middle",n,y.start);break}if(0===a.length)return t("Expected parameter after middle=",n,0),o;var S=e.getPitchFromTokens(a);S.warn&&t(S.warn,n,0),S.position&&(i.clef.verticalPos=S.position-6);break;case"transpose":if(a.shift(),0===a.length)return t("Expected = after transpose",n,0),o;if("="!==(y=a.shift()).token){t("Expected = after transpose",n,y.start);break}if(0===a.length)return t("Expected parameter after transpose=",n,0),o;if("number"!==a[0].type){t("Expected number after transpose",n,a[0].start);break}i.clef.transpose=a[0].intt,a.shift();break;case"stafflines":if(a.shift(),0===a.length)return t("Expected = after stafflines",n,0),o;if("="!==(y=a.shift()).token){t("Expected = after stafflines",n,y.start);break}if(0===a.length)return t("Expected parameter after stafflines=",n,0),o;if("number"!==a[0].type){t("Expected number after stafflines",n,a[0].start);break}i.clef.stafflines=a[0].intt,a.shift();break;case"staffscale":if(a.shift(),0===a.length)return t("Expected = after staffscale",n,0),o;if("="!==(y=a.shift()).token){t("Expected = after staffscale",n,y.start);break}if(0===a.length)return t("Expected parameter after staffscale=",n,0),o;if("number"!==a[0].type){t("Expected number after staffscale",n,a[0].start);break}i.clef.staffscale=a[0].floatt,a.shift();break;case"style":if(a.shift(),0===a.length)return t("Expected = after style",n,0),o;if("="!==(y=a.shift()).token){t("Expected = after style",n,y.start);break}if(0===a.length)return t("Expected parameter after style=",n,0),o;switch(a[0].token){case"normal":case"harmonic":case"rhythm":case"x":i.style=a[0].token,a.shift();break;default:t("error parsing style element: "+a[0].token,n,a[0].start)}break;case"clef":if(a.shift(),0===a.length)return t("Expected = after clef",n,0),o;if("="!==(y=a.shift()).token){t("Expected = after clef",n,y.start);break}if(0===a.length)return t("Expected parameter after clef=",n,0),o;case"treble":case"bass":case"alto":case"tenor":case"perc":var N=a.shift();switch(N.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":N.token="alto";break;case"F":N.token="bass";break;case"G":N.token="treble";break;case"c":N.token="alto";break;case"f":N.token="bass";break;case"g":N.token="treble";break;default:t("Expected clef name. Found "+N.token,n,N.start)}a.length>0&&"number"===a[0].type&&(N.token+=a[0].token,a.shift()),a.length>1&&("-"===a[0].token||"+"===a[0].token||"^"===a[0].token||"_"===a[0].token)&&"8"===a[1].token&&(N.token+=a[0].token+a[1].token,a.shift(),a.shift()),i.clef={type:N.token,verticalPos:l(N.token,0)},i.currentVoice&&void 0!==i.currentVoice.transpose&&(i.clef.transpose=i.currentVoice.transpose),o.foundClef=!0;break;default:t("Unknown parameter: "+a[0].token,n,a[0].start),a.shift()}return o};s.parseVoice=function(n,r,a){var s=e.getMeat(n,r,a),c=s.start,h=s.end,d=e.getToken(n,c,h);if(0!==d.length){var f=!1;void 0===i.voices[d]&&(i.voices[d]={},f=!0,i.score_is_present&&t("Can't have an unknown V: id when the %score directive is present",n,c)),c+=d.length,c+=e.eatWhiteSpace(n,c);for(var p={startStaff:f},m=function(i){var r=e.getVoiceToken(n,c,h);void 0!==r.warn?t("Expected value for "+i+" in voice: "+r.warn,n,c):0===r.token.length&&'"'!==n.charAt(c)?t("Expected value for "+i+" in voice",n,c):p[i]=r.token,c+=r.len},g=function(r,a,s){var o=e.getVoiceToken(n,c,h);void 0!==o.warn?t("Expected value for "+a+" in voice: "+o.warn,n,c):0===o.token.length&&'"'!==n.charAt(c)?t("Expected value for "+a+" in voice",n,c):("number"===s&&(o.token=parseFloat(o.token)),i.voices[r][a]=o.token),c+=o.len},v=function(i,r){var a=e.getVoiceToken(n,c,h);if(void 0!==a.warn)t("Expected value for "+i+" in voice: "+a.warn,n,c);else{if(0!==a.token.length||'"'===n.charAt(c))return"number"===r&&(a.token=parseFloat(a.token)),a.token;t("Expected value for "+i+" in voice",n,c)}c+=a.len},b=function(r,a){var s=e.getVoiceToken(n,c,h);if(void 0!==s.warn)t("Expected one of (_B, _E, _b, _e) for "+a+" in voice: "+s.warn,n,c);else if(0===s.token.length&&'"'!==n.charAt(c))t("Expected one of (_B, _E, _b, _e) for "+a+" in voice",n,c);else{var o={_B:2,_E:9,_b:-10,_e:-3}[s.token];o?i.voices[r][a]=o:t("Expected one of (_B, _E, _b, _e) for "+a+" in voice",n,c)}c+=s.len};c<h;){var y=e.getVoiceToken(n,c,h);if(c+=y.len,y.warn)t("Error parsing voice: "+y.warn,n,c);else{var w=null;switch(y.token){case"clef":case"cl":m("clef");var A=0;void 0!==p.clef&&(p.clef=p.clef.replace(/[',]/g,""),-1!==p.clef.indexOf("+16")&&(A+=14,p.clef=p.clef.replace("+16","")),p.verticalPos=l(p.clef,A));break;case"treble":case"bass":case"tenor":case"alto":case"perc":case"none":case"treble'":case"bass'":case"tenor'":case"alto'":case"none'":case"treble''":case"bass''":case"tenor''":case"alto''":case"none''":case"treble,":case"bass,":case"tenor,":case"alto,":case"none,":case"treble,,":case"bass,,":case"tenor,,":case"alto,,":case"none,,":p.clef=y.token.replace(/[',]/g,""),p.verticalPos=l(p.clef,0),i.voices[d].clef=y.token;break;case"staves":case"stave":case"stv":m("staves");break;case"brace":case"brc":m("brace");break;case"bracket":case"brk":m("bracket");break;case"name":case"nm":m("name");break;case"subname":case"sname":case"snm":m("subname");break;case"merge":p.startStaff=!1;break;case"stem":case"stems":void 0!==(w=e.getVoiceToken(n,c,h)).warn?t("Expected value for stems in voice: "+w.warn,n,c):"up"===w.token||"down"===w.token?i.voices[d].stem=w.token:t("Expected up or down for voice stem",n,c),c+=w.len;break;case"up":case"down":i.voices[d].stem=y.token;break;case"middle":case"m":m("verticalPos"),p.verticalPos=u(p.verticalPos).mid;break;case"gchords":case"gch":i.voices[d].suppressChords=!0,"0"===(w=e.getVoiceToken(n,c,h)).token&&(c+=w.len);break;case"space":case"spc":m("spacing");break;case"scale":g(d,"scale","number");break;case"score":b(d,"scoreTranspose");break;case"transpose":g(d,"transpose","number");break;case"stafflines":g(d,"stafflines","number");break;case"staffscale":g(d,"staffscale","number");break;case"octave":g(d,"octave","number");break;case"volume":g(d,"volume","number");break;case"cue":var k=v("cue","string");i.voices[d].scale="on"===k?.6:1;break;case"style":void 0!==(w=e.getVoiceToken(n,c,h)).warn?t("Expected value for style in voice: "+w.warn,n,c):"normal"===w.token||"harmonic"===w.token||"rhythm"===w.token||"x"===w.token?i.voices[d].style=w.token:t("Expected one of [normal, harmonic, rhythm, x] for voice style",n,c),c+=w.len}}c+=e.eatWhiteSpace(n,c)}if((p.startStaff||0===i.staves.length)&&(i.staves.push({index:i.staves.length,meter:i.origMeter}),i.score_is_present||(i.staves[i.staves.length-1].numVoices=0)),void 0===i.voices[d].staffNum){i.voices[d].staffNum=i.staves.length-1;var x=0;for(var T in i.voices)i.voices.hasOwnProperty(T)&&i.voices[T].staffNum===i.voices[d].staffNum&&x++;i.voices[d].index=x-1}var S=i.staves[i.voices[d].staffNum];i.score_is_present||S.numVoices++,p.clef&&(S.clef={type:p.clef,verticalPos:p.verticalPos}),p.spacing&&(S.spacing_below_offset=p.spacing),p.verticalPos&&(S.verticalPos=p.verticalPos),p.name&&(S.name?S.name.push(p.name):S.name=[p.name]),p.subname&&(S.subname?S.subname.push(p.subname):S.subname=[p.subname]),function(e){i.currentVoice=i.voices[e],o.setCurrentVoice(i.currentVoice.staffNum,i.currentVoice.index)}(d)}else t("Expected a voice id",n,c)}}(),e.exports=s},function(e,t,i){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=i(0),a=i(9),s={};!function(){"use strict";s.numberOfTunes=function(e){var t=e.split("\nX:").length;return 0===t&&(t=1),t};var e=s.TuneBook=function(e){for(var t=this,i="",n=(e=r.strip(e)).split("\nX:"),a=1;a<n.length;a++)n[a]="X:"+n[a];var s=0;if(t.tunes=[],r.each(n,(function(e){t.tunes.push({abc:e,startPos:s}),s+=e.length+1})),t.tunes.length>1&&!r.startsWith(t.tunes[0].abc,"X:")){var o=t.tunes.shift().abc.split("\n");r.each(o,(function(e){r.startsWith(e,"%%")&&(i+=e+"\n")}))}t.header=i,r.each(t.tunes,(function(e){var t=e.abc.indexOf("\n\n");t>0&&(e.abc=e.abc.substring(0,t)),e.pure=e.abc,e.abc=i+e.abc;var n=e.pure.split("T:");n.length>1?(n=n[1].split("\n"),e.title=n[0].replace(/^\s+|\s+$/g,"")):e.title="";var r=e.pure.substring(2,e.pure.indexOf("\n"));e.id=r.replace(/^\s+|\s+$/g,"")}))};e.prototype.getTuneById=function(e){for(var t=0;t<this.tunes.length;t++)if(this.tunes[t].id===e)return this.tunes[t];return null},e.prototype.getTuneByTitle=function(e){for(var t=0;t<this.tunes.length;t++)if(this.tunes[t].title===e)return this.tunes[t];return null},s.parseOnly=function(e,t){for(var i=s.numberOfTunes(e),n=[],r=0;r<i;r++)n.push(1);return s.renderEngine((function(){}),n,e,t)},s.renderEngine=function(t,i,r,s){var o=[];if(void 0!==i&&void 0!==r){var c;(!(c=i)||c.propertyIsEnumerable("length")||"object"!==n(c)||"number"!=typeof c.length)&&(i=[i]),void 0===s&&(s={});for(var l=s.startingTune?parseInt(s.startingTune,10):0,h=new e(r),u=new a,d=0;d<i.length;d++){var f=i[d];if("string"==typeof f&&(f=document.getElementById(f)),f)if(l>=0&&l<h.tunes.length){u.parse(h.tunes[l].abc,s,h.tunes[l].startPos-h.header.length);var p=u.getTune(),m=t(f,p,d,h.tunes[l].abc);o.push(m||p)}else f.hasOwnProperty("innerHTML")&&(f.innerHTML="");l++}return o}},s.extractMeasures=function(t){for(var i=[],n=new e(t),r=0;r<n.tunes.length;r++){for(var a=n.tunes[r],o=a.abc.split("K:"),c=o[1].split("\n"),l=o[0]+"K:"+c[0]+"\n",h=null,u=null,d=null,f=[],p=!1,m=s.parseOnly(a.abc)[0],g=m.getPickupLength()>0,v=0;v<m.lines.length;v++){var b=m.lines[v];if(b.staff)for(var y=0;y<1;y++)for(var w=b.staff[y],A=0;A<1;A++)for(var k=w.voices[A],x=0;x<k.length;x++){var T=k[x];if(null===d&&T.startChar>=0&&(d=T.startChar,u=void 0===T.chord?h:null),T.chord&&(h=T),"bar"===T.el_type){if(p){var S={abc:a.abc.substring(d,T.endChar)};(h=u&&u.chord&&u.chord.length>0?u.chord[0].name:null)&&(S.lastChord=h),T.startEnding&&(S.startEnding=T.startEnding),T.endEnding&&(S.endEnding=T.endEnding),f.push(S),d=null,p=!1}}else"note"===T.el_type&&(p=!0)}}i.push({header:l,measures:f,hasPickup:g})}return i}}(),e.exports=s},function(e,t,i){var n=i(0),r=i(6),a=i(17),s=i(7),o=i(18),c=i(10),l=i(11),h=i(19);e.exports=function(){"use strict";var e=new h,t=new o;function i(e,t,i){e.positioning||(e.positioning={}),e.positioning[t]=i}function u(e,t,i){e.fonts||(e.fonts={}),e.fonts[t]=i}this.getTune=function(){return{formatting:e.formatting,lines:e.lines,media:e.media,metaText:e.metaText,version:e.version,addElementToEvents:e.addElementToEvents,addUsefulCallbackInfo:e.addUsefulCallbackInfo,getBarLength:e.getBarLength,getBeatLength:e.getBeatLength,getBeatsPerMeasure:e.getBeatsPerMeasure,getBpm:e.getBpm,getMeter:e.getMeter,getMeterFraction:e.getMeterFraction,getPickupLength:e.getPickupLength,makeVoicesArray:e.makeVoicesArray,millisecondsPerMeasure:e.millisecondsPerMeasure,setupEvents:e.setupEvents,setTiming:e.setTiming}};var d={reset:function(){for(var e in this)this.hasOwnProperty(e)&&"function"!=typeof this[e]&&delete this[e];this.iChar=0,this.key={accidentals:[],root:"none",acc:"",mode:""},this.meter=null,this.origMeter=null,this.hasMainTitle=!1,this.default_length=.125,this.clef={type:"treble",verticalPos:0},this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.is_in_history=!1,this.partForNextLine={},this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.inTextBlock=!1,this.inPsBlock=!1,this.ignoredDecorations=[],this.textBlock="",this.score_is_present=!1,this.inEnding=!1,this.inTie=[!1],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[]},differentFont:function(e,t){return this[e].decoration!==t[e].decoration||(this[e].face!==t[e].face||(this[e].size!==t[e].size||(this[e].style!==t[e].style||this[e].weight!==t[e].weight)))},addFormattingOptions:function(e,t,n){"note"===n?("auto"!==this.vocalPosition&&i(e,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&i(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(e,"volumePosition",this.volumePosition),this.differentFont("annotationfont",t)&&u(e,"annotationfont",this.annotationfont),this.differentFont("gchordfont",t)&&u(e,"gchordfont",this.gchordfont),this.differentFont("vocalfont",t)&&u(e,"vocalfont",this.vocalfont),this.differentFont("tripletfont",t)&&u(e,"tripletfont",this.tripletfont)):"bar"===n&&("auto"!==this.dynamicPosition&&i(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(e,"volumePosition",this.volumePosition),this.differentFont("measurefont",t)&&u(e,"measurefont",this.measurefont),this.differentFont("repeatfont",t)&&u(e,"repeatfont",this.repeatfont))}},f=function(e){var t=n.gsub(e,""," ");return t=n.gsub(t,"&","&amp;"),t=n.gsub(t,"<","&lt;"),n.gsub(t,">","&gt;")},p=function(t,i,n){i||(i=" ");var r=i.charAt(n);" "===r&&(r="SPACE");var a,s=f(i.substring(0,n))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+r+"</span>"+f(i.substring(n+1));!function(e){d.warnings||(d.warnings=[]),d.warnings.push(e)}("Music Line:"+e.getNumLines()+":"+(n+1)+": "+t+":  "+s),a={message:t,line:i,startChar:d.iChar+n,column:n},d.warningObjects||(d.warningObjects=[]),d.warningObjects.push(a)},m=new a(t,p,d,e);this.getWarnings=function(){return d.warnings},this.getWarningObjects=function(){return d.warningObjects};var g=function(e,i){if('"'===e.charAt(i)){var n=t.getBrackettedSubstring(e,i,5);if(n[2]||p("Missing the closing quote while parsing the chord symbol",e,i),n[0]>0&&n[1].length>0&&"^"===n[1].charAt(0))n[1]=n[1].substring(1),n[2]="above";else if(n[0]>0&&n[1].length>0&&"_"===n[1].charAt(0))n[1]=n[1].substring(1),n[2]="below";else if(n[0]>0&&n[1].length>0&&"<"===n[1].charAt(0))n[1]=n[1].substring(1),n[2]="left";else if(n[0]>0&&n[1].length>0&&">"===n[1].charAt(0))n[1]=n[1].substring(1),n[2]="right";else if(n[0]>0&&n[1].length>0&&"@"===n[1].charAt(0)){n[1]=n[1].substring(1);var r=t.getFloat(n[1]);0===r.digits&&p("Missing first position in absolutely positioned annotation.",e,i),n[1]=n[1].substring(r.digits),","!==n[1][0]&&p("Missing comma absolutely positioned annotation.",e,i),n[1]=n[1].substring(1);var a=t.getFloat(n[1]);0===a.digits&&p("Missing second position in absolutely positioned annotation.",e,i),n[1]=n[1].substring(a.digits);var s=t.skipWhiteSpace(n[1]);n[1]=n[1].substring(s),n[2]=null,n[3]={x:r.value,y:a.value}}else n[1]=n[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),n[1]=n[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),n[2]="default",n[1]=c.chordName(d,n[1]);return n}return[0,""]},v=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","slide","^","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x"],b=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],y=["crescendo(","crescendo)","diminuendo(","diminuendo)"],w=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],A=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],k=function(e,i){var r=d.macros[e.charAt(i)];if(void 0!==r)return"!"!==r.charAt(0)&&"+"!==r.charAt(0)||(r=r.substring(1)),"!"!==r.charAt(r.length-1)&&"+"!==r.charAt(r.length-1)||(r=r.substring(0,r.length-1)),n.detect(v,(function(e){return r===e}))?[1,r]:n.detect(b,(function(e){return r===e}))?("hidden"===d.volumePosition&&(r=""),[1,r]):n.detect(y,(function(e){return"hidden"===d.dynamicPosition&&(r=""),r===e}))?[1,r]:(n.detect(d.ignoredDecorations,(function(e){return r===e}))||p("Unknown macro: "+r,e,i),[1,""]);switch(e.charAt(i)){case".":return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var a=t.getBrackettedSubstring(e,i,5);return a[1].length>0&&("^"===a[1].charAt(0)||"_"===a[1].charAt(0))&&(a[1]=a[1].substring(1)),n.detect(v,(function(e){return a[1]===e}))?a:n.detect(b,(function(e){return a[1]===e}))?("hidden"===d.volumePosition&&(a[1]=""),a):n.detect(y,(function(e){return a[1]===e}))?("hidden"===d.dynamicPosition&&(a[1]=""),a):n.detect(w,(function(e){return a[1]===e[0]&&(a[1]=e[1],!0)}))?a:n.detect(A,(function(e){return a[1]===e[0]&&(a[1]=e[1],!0)}))?("hidden"===d.dynamicPosition&&(a[1]=""),a):"!"!==e.charAt(i)||1!==a[0]&&"!"===e.charAt(i+a[0]-1)?(p("Unknown decoration: "+a[1],e,i),a[1]="",a):[1,null];case"H":return[1,"fermata"];case"J":return[1,"slide"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"]}return[0,0]},x=function(e,i){for(var n=i;t.isWhiteSpace(e.charAt(i));)i++;return[i-n]},T=function(e,i){var n=t.getBarLine(e,i);if(0===n.len)return[0,""];if(n.warn)return p(n.warn,e,i),[n.len,""];for(var r=0;r<e.length&&" "===e.charAt(i+n.len+r);r++);var a=n.len;if("["===e.charAt(i+n.len+r)&&(n.len+=r+1),'"'===e.charAt(i+n.len)&&"["===e.charAt(i+n.len-1)){var s=t.getBrackettedSubstring(e,i+n.len,5);return[n.len+s[0],n.token,s[1]]}var o=t.getTokenOf(e.substring(i+n.len),"1234567890-,");return 0===o.len||"-"===o.token[0]?[a,n.token]:[n.len+o.len,n.token,o.token]},S={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2},N=function(e,i){for(var n={},r=i;"("===e.charAt(i)||t.isWhiteSpace(e.charAt(i));)"("===e.charAt(i)&&(i+1<e.length&&e.charAt(i+1)>="2"&&e.charAt(i+1)<="9"?(void 0!==n.triplet?p("Can't nest triplets",e,i):(n.triplet=e.charAt(i+1)-"0",n.tripletQ=S[n.triplet],n.num_notes=n.triplet,i+2<e.length&&":"===e.charAt(i+2)&&(i+3<e.length&&":"===e.charAt(i+3)?i+4<e.length&&e.charAt(i+4)>="1"&&e.charAt(i+4)<="9"?(n.num_notes=e.charAt(i+4)-"0",i+=3):p("expected number after the two colons after the triplet to mark the duration",e,i):i+3<e.length&&e.charAt(i+3)>="1"&&e.charAt(i+3)<="9"?(n.tripletQ=e.charAt(i+3)-"0",i+4<e.length&&":"===e.charAt(i+4)?i+5<e.length&&e.charAt(i+5)>="1"&&e.charAt(i+5)<="9"&&(n.num_notes=e.charAt(i+5)-"0",i+=4):i+=2):p("expected number after the triplet to mark the duration",e,i))),i++):void 0===n.startSlur?n.startSlur=1:n.startSlur++),i++;return n.consumed=i-r,n},M=function(e,t){switch(e.charAt(t)){case">":return t<e.length-1&&">"===e.charAt(t+1)?[2,1.75,.25]:[1,1.5,.5];case"<":return t<e.length-1&&"<"===e.charAt(t+1)?[2,.25,1.75]:[1,.5,1.5]}return null},I=function(e){return void 0!==e.duration&&e.duration<.25&&(e.end_beam=!0),e},C={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11},E={x:"invisible",y:"spacer",z:"rest",Z:"multimeasure"},_=function(i,n,r,a){for(var s=function(e){return"octave"===e||"duration"===e||"Zduration"===e||"broken_rhythm"===e||"end_slur"===e},o="startSlur",l=!1;;){switch(i.charAt(n)){case"(":if("startSlur"!==o)return s(o)?(r.endChar=n,r):null;void 0===r.startSlur?r.startSlur=1:r.startSlur++;break;case")":if(!s(o))return null;void 0===r.endSlur?r.endSlur=1:r.endSlur++;break;case"^":if("startSlur"===o)r.accidental="sharp",o="sharp2";else{if("sharp2"!==o)return s(o)?(r.endChar=n,r):null;r.accidental="dblsharp",o="pitch"}break;case"_":if("startSlur"===o)r.accidental="flat",o="flat2";else{if("flat2"!==o)return s(o)?(r.endChar=n,r):null;r.accidental="dblflat",o="pitch"}break;case"=":if("startSlur"!==o)return s(o)?(r.endChar=n,r):null;r.accidental="natural",o="pitch";break;case"A":case"B":case"C":case"D":case"E":case"F":case"G":case"a":case"b":case"c":case"d":case"e":case"f":case"g":if("startSlur"!==o&&"sharp2"!==o&&"flat2"!==o&&"pitch"!==o)return s(o)?(r.endChar=n,r):null;if(r.pitch=C[i.charAt(n)],c.note(d,r),o="octave",a&&0!==d.next_note_duration?(r.duration=d.default_length*d.next_note_duration,d.next_note_duration=0,l=!0):r.duration=d.default_length,d.clef&&"perc"===d.clef.type||d.currentVoice&&"perc"===d.currentVoice.clef){var h=i.charAt(n);if(r.accidental){h={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^"}[r.accidental]+h}e.formatting&&e.formatting.midi&&e.formatting.midi.drummap&&(r.midipitch=e.formatting.midi.drummap[h])}break;case",":if("octave"!==o)return s(o)?(r.endChar=n,r):null;r.pitch-=7;break;case"'":if("octave"!==o)return s(o)?(r.endChar=n,r):null;r.pitch+=7;break;case"x":case"y":case"z":case"Z":if("startSlur"!==o)return s(o)?(r.endChar=n,r):null;r.rest={type:E[i.charAt(n)]},delete r.accidental,delete r.startSlur,delete r.startTie,delete r.endSlur,delete r.endTie,delete r.end_beam,delete r.grace_notes,"multimeasure"===r.rest.type?(r.duration=1,o="Zduration"):(a&&0!==d.next_note_duration?(r.duration=d.default_length*d.next_note_duration,d.next_note_duration=0,l=!0):r.duration=d.default_length,o="duration");break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if("octave"===o||"duration"===o){var u=t.getFraction(i,n);for(r.duration=r.duration*u.value,r.endChar=u.index;u.index<i.length&&(t.isWhiteSpace(i.charAt(u.index))||"-"===i.charAt(u.index));)"-"===i.charAt(u.index)?r.startTie={}:r=I(r),u.index++;n=u.index-1,o="broken_rhythm"}else if("sharp2"===o)r.accidental="quartersharp",o="pitch";else{if("flat2"!==o){if("Zduration"===o){var f=t.getNumber(i,n);return r.duration=f.num,r.endChar=f.index,r}return null}r.accidental="quarterflat",o="pitch"}break;case"-":if("startSlur"===o)e.addTieToLastNote(),r.endTie=!0;else{if("octave"!==o&&"duration"!==o&&"end_slur"!==o)return"broken_rhythm"===o?(r.endChar=n,r):null;if(r.startTie={},l||!a)return t.isWhiteSpace(i.charAt(n+1))&&I(r),r.endChar=n+1,r;o="broken_rhythm"}break;case" ":case"\t":if(!s(o))return null;r.end_beam=!0;do{"-"===i.charAt(n)&&(r.startTie={}),n++}while(n<i.length&&(t.isWhiteSpace(i.charAt(n))||"-"===i.charAt(n)));if(r.endChar=n,l||!a||"<"!==i.charAt(n)&&">"!==i.charAt(n))return r;n--,o="broken_rhythm";break;case">":case"<":if(!s(o))return null;if(!a)return r.endChar=n,r;var p=M(i,n);n+=p[0]-1,d.next_note_duration=p[2],r.duration=p[1]*r.duration,o="end_slur";break;default:return s(o)?(r.endChar=n,r):null}if(++n===i.length)return s(o)?(r.endChar=n,r):null}return null};function B(){var t={startChar:-1,endChar:-1};d.partForNextLine.title&&(t.part=d.partForNextLine),t.clef=d.currentVoice&&void 0!==d.staves[d.currentVoice.staffNum].clef?n.clone(d.staves[d.currentVoice.staffNum].clef):n.clone(d.clef);var i=d.currentVoice?d.currentVoice.scoreTranspose:0;if(t.key=s.standardKey(d.key.root+d.key.acc+d.key.mode,d.key.root,d.key.acc,i),t.key.mode=d.key.mode,d.key.impliedNaturals&&(t.key.impliedNaturals=d.key.impliedNaturals),d.key.explicitAccidentals)for(var r=0;r<d.key.explicitAccidentals.length;r++){for(var a=!1,o=0;o<t.key.accidentals.length;o++)t.key.accidentals[o].note===d.key.explicitAccidentals[r].note&&(t.key.accidentals[o].acc=d.key.explicitAccidentals[r].acc,a=!0);a||t.key.accidentals.push(d.key.explicitAccidentals[r])}if(d.targetKey=t.key,t.key.explicitAccidentals&&delete t.key.explicitAccidentals,s.addPosToKey(t.clef,t.key),null!==d.meter?(d.currentVoice?(n.each(d.staves,(function(e){e.meter=d.meter})),t.meter=d.staves[d.currentVoice.staffNum].meter,d.staves[d.currentVoice.staffNum].meter=null):t.meter=d.meter,d.meter=null):d.currentVoice&&d.staves[d.currentVoice.staffNum].meter&&(t.meter=d.staves[d.currentVoice.staffNum].meter,d.staves[d.currentVoice.staffNum].meter=null),d.currentVoice&&d.currentVoice.name&&(t.name=d.currentVoice.name),d.vocalfont&&(t.vocalfont=d.vocalfont),d.tripletfont&&(t.tripletfont=d.tripletfont),d.style&&(t.style=d.style),d.currentVoice){var c=d.staves[d.currentVoice.staffNum];c.brace&&(t.brace=c.brace),c.bracket&&(t.bracket=c.bracket),c.connectBarLines&&(t.connectBarLines=c.connectBarLines),c.name&&(t.name=c.name[d.currentVoice.index]),c.subname&&(t.subname=c.subname[d.currentVoice.index]),d.currentVoice.stem&&(t.stem=d.currentVoice.stem),d.currentVoice.stafflines&&(t.stafflines=d.currentVoice.stafflines),d.currentVoice.staffscale&&(t.staffscale=d.currentVoice.staffscale),d.currentVoice.scale&&(t.scale=d.currentVoice.scale),d.currentVoice.style&&(t.style=d.currentVoice.style),d.currentVoice.transpose&&(t.clef.transpose=d.currentVoice.transpose)}var l=void 0===d.currentVoice||0===d.currentVoice.staffNum&&0===d.currentVoice.index;0===d.barNumbers&&l&&1!==d.currBarNumber&&(t.barNumber=d.currBarNumber),e.startNewLine(t),d.key.impliedNaturals&&delete d.key.impliedNaturals,d.partForNextLine={}}var P=function(e,i){if("{"===e.charAt(i)){var n=t.getBrackettedSubstring(e,i,1,"}");n[2]||p("Missing the closing '}' while parsing grace note",e,i),")"===e[i+n[0]]&&(n[0]++,n[1]+=")");for(var r=[],a=0,s=!1;a<n[1].length;){var o=!1;"/"===n[1].charAt(a)&&(o=!0,a++);var c=_(n[1],a,{},!1);null!==c?(c.duration=c.duration/(8*d.default_length),o&&(c.acciaccatura=!0),r.push(c),s&&(c.endTie=!0,s=!1),c.startTie&&(s=!0),a=c.endChar,delete c.endChar):(" "===n[1].charAt(a)?r.length>0&&(r[r.length-1].end_beam=!0):p("Unknown character '"+n[1].charAt(a)+"' while parsing grace note",e,i),a++)}if(r.length)return[n[0],r]}return[0]};function D(e,t){if("&"===e.charAt(t)){for(var i=t;e.charAt(t)&&":"!==e.charAt(t)&&"|"!==e.charAt(t);)t++;return[t-i,e.substring(i+1,t)]}return[0]}function L(e){var t=e.origMeter;return t&&"specified"===t.type&&t.value&&0!==t.value.length?parseInt(t.value[0].num,10)/parseInt(t.value[0].den,10):1}var H=function i(r){var a=m.parseHeader(r);a.regular&&function(i){m.resolveTempo(),d.is_in_header=!1;for(var r=0,a=d.iChar;t.isWhiteSpace(i.charAt(r))&&r<i.length;)r++;if(r!==i.length&&"%"!==i.charAt(r)){var s=d.start_new_line;void 0===d.continueall?d.start_new_line=!0:d.start_new_line=!1;var o=0,c=m.letter_to_body_header(i,r);c[0]>0&&(r+=c[0],"V"===c[1]&&(s=!0));for(var l={},h=0;r<i.length;){var u=r;if("%"===i.charAt(r))break;var f=m.letter_to_inline_header(i,r);if(f[0]>0)r+=f[0],"V"===f[1]&&(s=!0);else{var v;for(s&&(B(),s=!1);;)if((v=t.eatWhiteSpace(i,r))>0&&(r+=v),r>0&&""===i.charAt(r-1)&&(v=m.letter_to_body_header(i,r))[0]>0&&("V"===v[1]&&B(),r=v[0],d.start_new_line=!1),(v=x(i,r))[0]>0&&(r+=v[0]),(v=g(i,r))[0]>0){l.chord||(l.chord=[]);var b=t.translateString(v[1]);b=b.replace(/;/g,"\n");for(var y=!1,w=0;w<l.chord.length;w++)l.chord[w].position===v[2]&&(y=!0,l.chord[w].name+="\n"+b);!1===y&&(null===v[2]&&v[3]?l.chord.push({name:b,rel_position:v[3]}):l.chord.push({name:b,position:v[2]})),r+=v[0];var A=t.skipWhiteSpace(i.substring(r));A>0&&(l.force_end_beam_last=!0),r+=A}else if((v=-1==="ABCDEFGabcdefgxyzZ[]|^_{".indexOf(i.charAt(r))?k(i,r):[0])[0]>0)null===v[1]?r+1<i.length&&B():v[1].length>0&&(0===v[1].indexOf("style=")?l.style=v[1].substr(6):(void 0===l.decoration&&(l.decoration=[]),l.decoration.push(v[1]))),r+=v[0];else{if(!((v=P(i,r))[0]>0))break;l.gracenotes=v[1],r+=v[0]}if((v=T(i,r))[0]>0){h=0,void 0!==l.gracenotes&&(l.rest={type:"spacer"},l.duration=.125,d.addFormattingOptions(l,e.formatting,"note"),e.appendElement("note",a+r,a+r+v[0],l),d.measureNotEmpty=!0,l={});var S={type:v[1]};if(0===S.type.length)p("Unknown bar type",i,r);else{if(d.inEnding&&"bar_thin"!==S.type&&(S.endEnding=!0,d.inEnding=!1),v[2]&&(S.startEnding=v[2],d.inEnding&&(S.endEnding=!0),d.inEnding=!0),void 0!==l.decoration&&(S.decoration=l.decoration),void 0!==l.chord&&(S.chord=l.chord),S.startEnding&&void 0===d.barFirstEndingNum?d.barFirstEndingNum=d.currBarNumber:S.startEnding&&S.endEnding&&d.barFirstEndingNum?d.currBarNumber=d.barFirstEndingNum:S.endEnding&&(d.barFirstEndingNum=void 0),"bar_invisible"!==S.type&&d.measureNotEmpty)(void 0===d.currentVoice||0===d.currentVoice.staffNum&&0===d.currentVoice.index)&&(d.currBarNumber++,d.barNumbers&&d.currBarNumber%d.barNumbers==0&&(S.barNumber=d.currBarNumber));d.addFormattingOptions(l,e.formatting,"bar"),e.appendElement("bar",a+r,a+r+v[0],S),d.measureNotEmpty=!1,l={}}r+=v[0];d.currentVoice&&(d.currentVoice.staffNum,d.currentVoice.index)}else if("&"===i[r])(v=D(i,r))[0]>0&&(e.appendElement("overlay",a,a+1,{}),r+=1,h++);else{if((v=N(i,r)).consumed>0&&(void 0!==v.startSlur&&(l.startSlur=v.startSlur),void 0!==v.triplet&&(o>0?p("Can't nest triplets",i,r):(l.startTriplet=v.triplet,l.tripletMultiplier=v.tripletQ/v.triplet,o=void 0===v.num_notes?v.triplet:v.num_notes)),r+=v.consumed),"["===i.charAt(r)){var C=r;r++;for(var E=null,H=!1,V=!1;!V;){var z=k(i,r);z[0]>0&&(r+=z[0]);var O=_(i,r,{},!1);if(null!==O)z[0]>0&&0!==z[1].indexOf("style=")&&(void 0===l.decoration&&(l.decoration=[]),l.decoration.push(z[1])),O.end_beam&&(l.end_beam=!0,delete O.end_beam),void 0===l.pitches?(l.duration=O.duration,l.pitches=[O]):l.pitches.push(O),delete O.duration,z[0]>0&&0===z[1].indexOf("style=")&&(l.pitches[l.pitches.length-1].style=z[1].substr(6)),d.inTieChord[l.pitches.length]&&(O.endTie=!0,d.inTieChord[l.pitches.length]=void 0),O.startTie&&(d.inTieChord[l.pitches.length]=!0),r=O.endChar,delete O.endChar;else if(" "===i.charAt(r))p("Spaces are not allowed in chords",i,r),r++;else{if(r<i.length&&"]"===i.charAt(r)){r++,0!==d.next_note_duration&&(l.duration=l.duration*d.next_note_duration,d.next_note_duration=0),d.inTie[h]&&(n.each(l.pitches,(function(e){e.endTie=!0})),d.inTie[h]=!1),o>0&&0===--o&&(l.endTriplet=!0);for(var q=!1;r<i.length&&!q;){switch(i.charAt(r)){case" ":case"\t":I(l);break;case")":void 0===l.endSlur?l.endSlur=1:l.endSlur++;break;case"-":n.each(l.pitches,(function(e){e.startTie={}})),d.inTie[h]=!0;break;case">":case"<":var j=M(i,r);r+=j[0]-1,d.next_note_duration=j[2],E?E*=j[1]:E=j[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var F=t.getFraction(i,r);E=F.value,r=F.index," "===i.charAt(r)&&(H=!0),"-"===i.charAt(r)||")"===i.charAt(r)||" "===i.charAt(r)||"<"===i.charAt(r)||">"===i.charAt(r)?r--:q=!0;break;default:q=!0}q||r++}}else p("Expected ']' to end the chords",i,r);void 0!==l.pitches&&(null!==E&&(l.duration=l.duration*E,H&&I(l)),d.addFormattingOptions(l,e.formatting,"note"),e.appendElement("note",a+C,a+r,l),d.measureNotEmpty=!0,l={}),V=!0}}}else{var R={},W=_(i,r,R,!0);void 0!==R.endTie&&(d.inTie[h]=!0),null!==W&&(void 0!==W.pitch?(l.pitches=[{}],void 0!==W.accidental&&(l.pitches[0].accidental=W.accidental),l.pitches[0].pitch=W.pitch,W.midipitch&&(l.pitches[0].midipitch=W.midipitch),void 0!==W.endSlur&&(l.pitches[0].endSlur=W.endSlur),void 0!==W.endTie&&(l.pitches[0].endTie=W.endTie),void 0!==W.startSlur&&(l.pitches[0].startSlur=W.startSlur),void 0!==l.startSlur&&(l.pitches[0].startSlur=l.startSlur),void 0!==W.startTie&&(l.pitches[0].startTie=W.startTie),void 0!==l.startTie&&(l.pitches[0].startTie=l.startTie)):(l.rest=W.rest,void 0!==W.endSlur&&(l.endSlur=W.endSlur),void 0!==W.endTie&&(l.rest.endTie=W.endTie),void 0!==W.startSlur&&(l.startSlur=W.startSlur),void 0!==W.startTie&&(l.rest.startTie=W.startTie),void 0!==l.startTie&&(l.rest.startTie=l.startTie)),void 0!==W.chord&&(l.chord=W.chord),void 0!==W.duration&&(l.duration=W.duration),void 0!==W.decoration&&(l.decoration=W.decoration),void 0!==W.graceNotes&&(l.graceNotes=W.graceNotes),delete l.startSlur,d.inTie[h]&&(void 0!==l.pitches?(l.pitches[0].endTie=!0,d.inTie[h]=!1):"spacer"!==l.rest.type&&(l.rest.endTie=!0,d.inTie[h]=!1)),(W.startTie||l.startTie)&&(d.inTie[h]=!0),r=W.endChar,o>0&&0===--o&&(l.endTriplet=!0),W.end_beam&&I(l),l.rest&&"rest"===l.rest.type&&1===l.duration&&L(d)<=1&&(l.rest.type="whole",l.duration=L(d)),d.addFormattingOptions(l,e.formatting,"note"),e.appendElement("note",a+u,a+r,l),d.measureNotEmpty=!0,l={})}r===u&&(" "!==i.charAt(r)&&"`"!==i.charAt(r)&&p("Unknown character ignored",i,r),r++)}}}}}(a.str),a.newline&&B(),a.words&&function(e,i){if(e){"-"!==(i=n.strip(i)).charAt(i.length-1)&&(i+=" ");for(var r=[],a=0,s=!1,o=function(e){var o=n.strip(i.substring(a,e));if(a=e+1,o.length>0){s&&(o=n.gsub(o,"~"," "));var c=i.charAt(e);return"_"!==c&&"-"!==c&&(c=" "),r.push({syllable:t.translateString(o),divider:c}),s=!1,!0}return!1},c=0;c<i.length;c++)switch(i.charAt(c)){case" ":case"":o(c);break;case"-":!o(c)&&r.length>0&&(n.last(r).divider="-",r.push({skip:!0,to:"next"}));break;case"_":o(c),r.push({skip:!0,to:"slur"});break;case"*":o(c),r.push({skip:!0,to:"next"});break;case"|":o(c),r.push({skip:!0,to:"bar"});break;case"~":s=!0}n.each(e,(function(e){if(0!==r.length)if(r[0].skip){switch(r[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&r.shift();break;case"bar":"bar"===e.el_type&&r.shift()}"bar"!==e.el_type&&(void 0===e.lyric?e.lyric=[{syllable:"",divider:" "}]:e.lyric.push({syllable:"",divider:" "}))}else if("note"===e.el_type&&void 0===e.rest){var t=r.shift();t.syllable&&(t.syllable=t.syllable.replace(/ +/g," ")),void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}))}else p("Can't add words before the first line of music",e,0)}(e.getCurrentVoice(),r.substring(2)),a.symbols&&function(e,i){if(e){"-"!==(i=n.strip(i)).charAt(i.length-1)&&(i+=" ");for(var r=[],a=0,s=!1,o=function(e){var o=n.strip(i.substring(a,e));if(a=e+1,o.length>0){s&&(o=n.gsub(o,"~"," "));var c=i.charAt(e);return"_"!==c&&"-"!==c&&(c=" "),r.push({syllable:t.translateString(o),divider:c}),s=!1,!0}return!1},c=0;c<i.length;c++)switch(i.charAt(c)){case" ":case"":o(c);break;case"-":!o(c)&&r.length>0&&(n.last(r).divider="-",r.push({skip:!0,to:"next"}));break;case"_":o(c),r.push({skip:!0,to:"slur"});break;case"*":o(c),r.push({skip:!0,to:"next"});break;case"|":o(c),r.push({skip:!0,to:"bar"});break;case"~":s=!0}n.each(e,(function(e){if(0!==r.length)if(r[0].skip)switch(r[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&r.shift();break;case"bar":"bar"===e.el_type&&r.shift()}else if("note"===e.el_type&&void 0===e.rest){var t=r.shift();void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}))}else p("Can't add symbols before the first line of music",e,0)}(e.getCurrentVoice(),r.substring(2)),a.recurse&&i(a.str)};function V(e,t){e.push({el_type:"hint"});for(var i=0;i<t.length;i++){var r=t[i],a=n.clone(r);if(e.push(a),"bar"===r.el_type)return}}function z(e,t){for(var i=0;i<e.length;i++){var n=e[i],r=t[i];if(r)for(var a=0;a<r.voices.length;a++){var s=r.voices[a],o=n.voices[a];o&&V(o,s)}}}this.parse=function(i,a,s){if(a||(a={}),s||(s=0),e.reset(),a.print&&(e.media="print"),d.reset(),d.iChar=s,a.visualTranspose?(d.globalTranspose=parseInt(a.visualTranspose),0===d.globalTranspose&&(d.globalTranspose=void 0)):d.globalTranspose=void 0,a.lineBreaks){d.lineBreaks={};for(var o=0;o<a.lineBreaks.length;o++)d.lineBreaks[""+(a.lineBreaks[o]+1)]=!0}m.reset(t,p,d,e),i=n.gsub(i,"\r\n","\n"),i=n.gsub(i,"\r","\n");var c=(i=(i=(i+="\n").replace(/\n\\.*\n/g,"\n")).replace(/\\([ \t]*)(%.*)*\n/g,(function(e,t,i){return t+" "+(i?"                                                                                                                                                                                                     ".substring(0,i.length):"")}))).split("\n");0===n.last(c).length&&c.pop();try{a.format&&r.globalFormatting(a.format),n.each(c,(function(i){if(a.header_only&&!1===d.is_in_header)throw"normal_abort";if(a.stop_on_warning&&d.warnings)throw"normal_abort";d.is_in_history?":"===i.charAt(1)?(d.is_in_history=!1,H(i)):e.addMetaText("history",t.translateString(t.stripComment(i))):d.inTextBlock?n.startsWith(i,"%%endtext")?(e.addText(d.textBlock),d.inTextBlock=!1):n.startsWith(i,"%%")?d.textBlock+=" "+i.substring(2):d.textBlock+=" "+i:d.inPsBlock?n.startsWith(i,"%%endps")?d.inPsBlock=!1:d.textBlock+=" "+i:H(i),d.iChar+=i.length+1}));var h=792,u=612;switch(d.papersize){case"legal":h=1008,u=612;break;case"A4":h=842.4,u=597.6}if(d.landscape){var f=h;h=u,u=f}d.openSlurs=e.cleanUp(u,h,d.barsperstaff,d.staffnonote,d.openSlurs)}catch(e){if("normal_abort"!==e)throw e}a.hint_measures&&function(){for(var t=0;t<e.lines.length;t++){var i=e.lines[t].staff;if(i){for(var n=t+1;n<e.lines.length&&void 0===e.lines[n].staff;)n++;if(n<e.lines.length)z(i,e.lines[n].staff)}}}(),l.wrapLines(e,d.lineBreaks)}}},function(e,t){var i={},n={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},r=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],a=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];i.keySignature=function(e,t,i,s,o,c){c||(c=0),e.localTransposeVerticalMovement=0,e.localTransposePreferFlats=!1;var l=t[i];if(!l)return e.key;if(e.localTranspose=(e.globalTranspose?e.globalTranspose:0)+c,!e.localTranspose)return{accidentals:l,root:s,acc:o};if(e.globalTransposeOrigKeySig=l,e.localTranspose%12==0)return e.localTransposeVerticalMovement=e.localTranspose/12*7,{accidentals:l,root:s,acc:o};var h=i[0];"b"===i[1]||"#"===i[1]?(h+=i[1],i=i.substr(2)):i=i.substr(1);for(var u=n[h]+e.localTranspose;u<0;)u+=12;u>11&&(u%=12);var d="m"===i[0]?a[u]:r[u],f=d+i,p=t[f];p.length>0&&"flat"===p[0].acc&&(e.localTransposePreferFlats=!0);var m=f.charCodeAt(0)-h.charCodeAt(0);return e.localTranspose>0?m<0?m+=7:0===m&&("#"!==h[1]&&"b"!==f[1]||(m+=7)):e.localTranspose<0&&(m>0?m-=7:0===m&&("b"!==h[1]&&"#"!==f[1]||(m-=7))),e.localTranspose>0?e.localTransposeVerticalMovement=m+7*Math.floor(e.localTranspose/12):e.localTransposeVerticalMovement=m+7*Math.ceil(e.localTranspose/12),{accidentals:p,root:d[0],acc:d.length>1?d[1]:""}};var s=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],o=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"];i.chordName=function(e,t){if(e.localTranspose&&e.localTranspose%12!=0){for(var i=e.localTranspose;i<0;)i+=12;i>11&&(i%=12);for(var n=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/C♭/g,"`~11`")).replace(/D♭/g,"`~1`")).replace(/E♭/g,"`~3`")).replace(/F♭/g,"`~4`")).replace(/G♭/g,"`~6`")).replace(/A♭/g,"`~8`")).replace(/B♭/g,"`~10`")).replace(/C♯/g,"`~1`")).replace(/D♯/g,"`~3`")).replace(/E♯/g,"`~5`")).replace(/F♯/g,"`~6`")).replace(/G♯/g,"`~8`")).replace(/A♯/g,"`~10`")).replace(/B♯/g,"`~0`")).replace(/C/g,"`~0`")).replace(/D/g,"`~2`")).replace(/E/g,"`~4`")).replace(/F/g,"`~5`")).replace(/G/g,"`~7`")).replace(/A/g,"`~9`")).replace(/B/g,"`~11`")).split("`"),r=0;r<n.length;r++)if("~"===n[r][0]){var a=parseInt(n[r].substr(1),10);(a+=i)>11&&(a-=12),n[r]=e.localTransposePreferFlats?o[a]:s[a]}t=n.join("")}return t};var c=["c","d","e","f","g","a","b"];var l={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},h={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"};i.note=function(e,t){if(e.localTranspose){var i=t.pitch;if(t.pitch=t.pitch+e.localTransposeVerticalMovement,t.accidental){var n=function(e,t,i,n,r){for(var a=c[(e+49)%7],s=0,o=0;o<n.length;o++)n[o].note.toLowerCase()===a&&(s=l[n[o].acc]);for(var h=l[i]-s,u=c[(t+49)%7],d=0,f=0;f<r.accidentals.length;f++)r.accidentals[f].note.toLowerCase()===u&&(d=l[r.accidentals[f].acc]);var p=h+d;return p<-2&&(t--,p+="c"===u||"f"===u?1:2),p>2&&(t++,p-="b"===u||"e"===u?1:2),[t,p]}(i,t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey);t.pitch=n[0],t.accidental=h[n[1]]}}},e.exports=i},function(e,t){function i(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t}function n(e,t,n,r,a,s,o,c,l,h,u){for(var d=h;d<e.length;d++){var f=e[d];n+=f,r+=f;var p=Math.abs(n-t[c]);if(Math.abs(p-s)<t[0]/10)if(p<s){var m=i(a),g=i(l);g.push(d-1),m.push(r-f),u.push({accumulator:n,lineAccumulator:f,lineWidths:m,lastVariance:Math.abs(n-t[c+1]),highestVariance:Math.max(o,s),currLine:c+1,lineBreaks:g,startIndex:d+1})}else p>s&&d<e.length-1&&(m=i(a),g=i(l),u.push({accumulator:n,lineAccumulator:r,lineWidths:m,lastVariance:p,highestVariance:Math.max(o,p),currLine:c,lineBreaks:g,startIndex:d+1}));p>s?(l.push(d-1),c++,o=Math.max(o,s),s=Math.abs(n-t[c]),a.push(r-f),r=f):s=p}a.push(r)}function r(e,t,i,n,r){var a=new r,s={lineBreaks:e,staffwidth:t};for(var o in n)n.hasOwnProperty(o)&&"wrap"!==o&&"staffwidth"!==o&&(s[o]=n[o]);return a.parse(i,s),{tune:a.getTune(),revisedParams:s}}e.exports={wrapLines:function(e,t){if(t&&0!==e.lines.length){for(var i=[],n=[],r=[],a=[],s=[],o="",c={},l=0;l<e.lines.length;l++){var h=e.lines[l];if(h.staff)for(var u=h.staff,d=0;d<u.length;d++){void 0===n[d]&&(n[d]=[],r[d]=[],a[d]=[],s[d]=[]);for(var f=u[d],p=f.voices,m=0;m<p.length;m++){void 0===n[d][m]&&(n[d][m]=!0,r[d][m]=0,a[d][m]=0,s[d][m]=0);for(var g=p[m],v=0;v<g.length;v++){if(n[d][m]){if(i[r[d][m]]||(i[r[d][m]]={staff:[]}),!i[r[d][m]].staff[d])for(var b in i[r[d][m]].staff[d]={voices:[]},f)f.hasOwnProperty(b)&&("meter"===b?1!==i.length&&o===JSON.stringify(f[b])||(o=JSON.stringify(f[b]),i[r[d][m]].staff[d][b]=f[b]):"voices"!==b&&(i[r[d][m]].staff[d][b]=f[b]));s[d][m]&&(i[r[d][m]].staff[d].barNumber=s[d][m]),n[d][m]=!1}var y=g[v];if(!i[r[d][m]].staff[d].voices[m])for(var w in i[r[d][m]].staff[d].voices[m]=[],c)c.hasOwnProperty(w)&&i[r[d][m]].staff[d].voices[m].push(c[w]);i[r[d][m]].staff[d].voices[m].push(y),"stem"===y.el_type&&(c[y.el_type]=y),"bar"===y.el_type&&(a[d][m]++,t[a[d][m]]&&(n[d][m]=!0,r[d][m]++,s[d][m]=y.barNumber,delete y.barNumber))}}}else i.push(h),r++}e.lines=i}},calcLineWraps:function(e,t,i,a,s,o){var c=a.scale?Math.max(a.scale,.1):1,l=a.wrap.minSpacing?Math.max(parseFloat(a.wrap.minSpacing),1):1,h=a.wrap.minSpacingLimit?Math.max(parseFloat(a.wrap.minSpacingLimit),1):l-.1,u=a.wrap.maxSpacing?Math.max(parseFloat(a.wrap.maxSpacing),1):void 0;a.wrap.lastLineLimit&&!u&&(u=Math.max(parseFloat(a.wrap.lastLineLimit),1)),a.wrap.targetHeight&&Math.max(parseInt(a.wrap.targetHeight,10),100);var d=a.wrap.preferredMeasuresPerLine?Math.max(parseInt(a.wrap.preferredMeasuresPerLine,10),1):void 0,f=(a.staffwidth-t.left)/l/c,p=(a.staffwidth-t.left)/u/c,m=(a.staffwidth-t.left)/h/c,g={widths:t,lineBreakPoint:f,minLineSize:p,attempts:[],staffWidth:a.staffwidth,minWidth:Math.round(m)},v=null;if(d){var b=function(e,t,i){for(var n=[],r=[],a=0,s=!1,o=0;o<e.length;o++)a+=e[o],o%i==i-1&&(a>t&&(s=!0),o!==e.length-1&&n.push(o),r.push(Math.round(a)),a=0);return{failed:s,totals:r,lineBreaks:n}}(t.measureWidths,f,d);g.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:d,lineBreaks:b.lineBreaks,failed:b.failed,totals:b.totals}),b.failed||(v=b.lineBreaks)}if(!v){var y=function(e,t){for(var i=[],n=[],r=0,a=0;a<e.length;a++){var s=e[a],o=r+s;if(o<t)r=o;else t-r<o-t&&r>0?(i.push(a-1),n.push(Math.round(r-s)),r=s):a<e.length-1&&(i.push(a),n.push(Math.round(r)),r=0)}return n.push(Math.round(r)),{lineBreaks:i,totals:n}}(t.measureWidths,f);g.attempts.push({type:"Free Form",lineBreaks:y.lineBreaks,totals:y.totals}),v=y.lineBreaks,y=function(e,t,i,r){for(var a=Math.ceil(e.total/t)+1,s=Math.floor(e.total/a),o=[],c=0;c<a;c++)o.push(s*(c+1));var l=[];l.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var h=0;h<l.length;)n(e.measureWidths,o,l[h].accumulator,l[h].lineAccumulator,l[h].lineWidths,l[h].lastVariance,l[h].highestVariance,l[h].currLine,l[h].lineBreaks,l[h].startIndex,l),h++;for(c=0;c<l.length;c++){var u=l[c];u.variances=[],u.aveVariance=0;for(var d=0;d<u.lineWidths.length;d++){var f=u.lineWidths[d];u.variances.push(f-o[0]),u.aveVariance+=Math.abs(f-o[0])}u.aveVariance=u.aveVariance/u.lineWidths.length,r.attempts.push({type:"optimizeLineWidths",lineBreaks:u.lineBreaks,variances:u.variances,aveVariance:u.aveVariance,widths:e.measureWidths})}var p=9999999,m=-1;for(c=0;c<l.length;c++)(u=l[c]).aveVariance<p&&(p=u.aveVariance,m=c);return{failed:!1,lineBreaks:l[m].lineBreaks,variance:l[m].highestVariance}}(t,f,0,g),g.attempts.push({type:"Optimize",failed:y.failed,reason:y.reason,lineBreaks:y.lineBreaks,totals:y.totals}),y.failed||(v=y.lineBreaks)}var w=a.staffwidth,A=r(v,w,i,a,s),k=o.getMeasureWidths(A.tune),x=!0;return g.attempts.push({type:"heightCheck",height:k.height}),0===v.length&&p>t.total&&(w=t.total*u*c+t.left,g.attempts.push({type:"too sparse",newWidth:Math.round(w)}),x=!1),x||(A=r(v,w,i,a,s)),A.explanation=g,A}}},function(e,t){var i=function(e){this.anchor1=e.anchor1,this.anchor2=e.anchor2,e.isGrace&&(this.isGrace=!0),e.fixedY&&(this.fixedY=!0),e.stemDir&&(this.stemDir=e.stemDir),void 0!==e.voiceNumber&&(this.voiceNumber=e.voiceNumber),this.internalNotes=[]};i.prototype.addInternalNote=function(e){this.internalNotes.push(e)},i.prototype.setEndAnchor=function(e){this.anchor2=e},i.prototype.setStartX=function(e){this.startLimitX=e},i.prototype.setEndX=function(e){this.endLimitX=e},i.prototype.setHint=function(){this.hint=!0},i.prototype.setUpperAndLowerElements=function(e){},i.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e;e=this.anchor1?this.anchor1.pitch:this.anchor2?this.anchor2.pitch:14,this.anchor1&&"down"===this.anchor1.stemDir&&this.anchor2&&"down"===this.anchor2.stemDir?this.above=!0:this.anchor1&&"up"===this.anchor1.stemDir&&this.anchor2&&"up"===this.anchor2.stemDir?this.above=!1:this.anchor1&&this.anchor2?this.above=e>=6:this.anchor1?this.above="down"===this.anchor1.stemDir:this.anchor2?this.above="down"===this.anchor2.stemDir:this.above=e>=6}},i.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e=!1;this.anchor1&&"down"===this.anchor1.stemDir&&(e=!0),this.anchor2&&"down"===this.anchor2.stemDir&&(e=!0);for(var t=0;t<this.internalNotes.length;t++){"down"===this.internalNotes[t].stemDir&&(e=!0)}this.above=e}},i.prototype.calcX=function(e,t){this.anchor1?(this.startX=this.anchor1.x,this.anchor1.scalex<1&&(this.startX-=3)):this.startLimitX?this.startX=this.startLimitX.x+this.startLimitX.w:this.startX=e,this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=t},i.prototype.calcTieY=function(){this.anchor1?this.startY=this.anchor1.pitch:this.anchor2?this.startY=this.anchor2.pitch:this.startY=this.above?14:0,this.anchor2?this.endY=this.anchor2.pitch:this.anchor1?this.endY=this.anchor1.pitch:this.endY=this.above?14:0},i.prototype.calcSlurY=function(){if(this.anchor1&&this.anchor2){this.above&&"up"===this.anchor1.stemDir&&!this.fixedY?(this.startY=(this.anchor1.highestVert+this.anchor1.pitch)/2,this.startX+=this.anchor1.w/2):this.startY=this.anchor1.pitch;var e=this.anchor2.parent.beam&&this.anchor2.parent.beam.stemsUp&&this.anchor2.parent.beam.elems[0]!==this.anchor2.parent,t=(this.anchor2.highestVert+this.anchor2.pitch)/2;this.above&&"up"===this.anchor2.stemDir&&!this.fixedY&&!e&&t<this.startY?(this.endY=t,this.endX+=this.anchor2.w/2):this.endY=this.above&&e?this.anchor2.highestVert:this.anchor2.pitch}else this.anchor1?this.startY=this.endY=this.anchor1.pitch:this.anchor2?this.startY=this.endY=this.anchor2.pitch:(this.startY=this.above?14:0,this.endY=this.above?14:0)},i.prototype.avoidCollisionAbove=function(){if(this.above){for(var e=-50,t=0;t<this.internalNotes.length;t++)this.internalNotes[t].highestVert>e&&(e=this.internalNotes[t].highestVert);e>this.startY&&e>this.endY&&(this.startY=this.endY=e-1)}},i.prototype.layout=function(e,t){this.anchor1&&this.anchor2?this.anchor1.pitch===this.anchor2.pitch&&0===this.internalNotes.length?this.isTie=!0:this.isTie=!1:this.isTie=!0,this.isTie?(this.calcTieDirection(),this.calcX(e,t),this.calcTieY()):(this.calcSlurDirection(),this.calcX(e,t),this.calcSlurY()),this.avoidCollisionAbove()},i.prototype.draw=function(e,t,i){var n;this.layout(t,i),this.hint&&(n="abcjs-hint");var r=this.fixedY?1.5:0;e.drawArc(this.startX,this.endX,this.startY+r,this.endY+r,this.above,n,this.isTie)},e.exports=i},function(e,t,i){i(14);var n={plugin:i(15)};window.ABCJS=n},function(e,t){},function(e,t,i){var n=i(16),r=i(37),a=new function(){"use strict";try{abcjs_is_user_script}catch(e){}this.show_midi=!0,this.hide_abc=!1,this.render_before=!1,this.midi_options={},this.render_options={},this.render_classname="abcrendered",this.text_classname="abctext",this.auto_render_threshold=20,this.show_text="show score",this.debug=!1};a.start=function(){var e=window.document.body;this.errors="";var t=this.getABCContainingElements(e);if(0!==t.length){if(this.debug)for(var i=0;i<t.length;i++){var n="Possible ABC found ("+(i+1)+" of "+t.length+"):\n\n"+t[i].innerText;alert(n)}var r=t.map(this.convertToDivs,this).reduce((function(e,t){return e.concat(t)}));this.auto_render=r.length<=this.auto_render_threshold,r.forEach((function(e){this.render(e,e.abctext_)}),this)}},a.getABCContainingElements=function(e){for(var t,i=[],n=!1,r=0,a=e.childNodes.length;r<a;++r)3!==(t=e.childNodes[r]).nodeType||n?1===t.nodeType&&"TEXTAREA"!==t.tagName&&(i=i.concat(this.getABCContainingElements(t))):t.nodeValue.match(/^\s*X:/m)&&"TEXTAREA"!==t.parentNode.tagName&&(i.push(e),n=!0);return i},a.convertToDivs=function(e){for(var t,i="",n=null,r=!1,a=[],s=Array.prototype.slice.call(e.childNodes),o=0,c=s.length;o<c;++o)if(3!==(t=s[o]).nodeType||t.nodeValue.match(/^\s*$/))r&&"BR"===t.tagName?(i+="\n",n.appendChild(t)):r&&1===t.nodeType?(i+="\n",n.appendChild(t)):r&&(r=!1,0,i=i.replace(/\n+/,"\n"),n.abctext_=i,a.push(n));else{0;var l=t.nodeValue;l.match(/^\s*X:/m)&&(r=!0,i="",(n=document.createElement("DIV")).className=this.text_classname,t.parentElement.insertBefore(n,t),this.hide_abc&&(n.style.display="none")),r&&(i+=l.replace(/^\n+/,""),n.appendChild(t))}return r&&(i=i.replace(/\n+$/,"\n").replace(/^\n+/,"\n"),n.abctext_=i,a.push(n)),a},a.render=function(e,t){var i=document.createElement("DIV");this.render_before?e.parentElement.insertBefore(i,e):e.nextSibling?e.parentElement.insertBefore(i,e.nextSibling):e.parentElement.appendChild(i);var a=this;try{this.debug&&alert("About to render:\n\n"+t);var s=function(){var e=document.createElement("DIV");if(e.className=a.render_classname,i.appendChild(e),n(e,t,a.render_options),a.show_midi){var s=document.createElement("DIV");i.appendChild(s),r(s,t,a.render_options)}};if(this.auto_render)s();else{var o=document.createElement("A");o.className="abcshow",o.href="#",o.innerHTML=this.show_text,o.onclick=function(){return s(),o.remove(),!1},abcdiv.parentElement.insertBefore(o,abcdiv)}}catch(e){this.errors+=e}};var s=!0;"undefined"!=typeof abcjs_plugin_autostart&&(s=abcjs_plugin_autostart),s&&"undefined"!=typeof window&&void 0!==window.document&&("loading"!==window.document.readyState?a.start():document.addEventListener("DOMContentLoaded",(function(){a.start()}))),e.exports=a},function(e,t,i){var n=i(8),r=i(20),a=i(9),s=i(11),o={};function c(){var e=window.innerWidth;for(var t in o)if(o.hasOwnProperty(t)){var i=o[t];e-=2*i.offsetLeft,i.style.width=e+"px"}}function l(e,t,i,n){i.viewportHorizontal?(e.innerHTML='<div class="abcjs-inner"></div>',i.scrollHorizontal?(e.style.overflowX="auto",e.style.overflowY="hidden"):e.style.overflow="hidden",o[e.id]=e,e=e.children[0]):i.viewportVertical?(e.innerHTML='<div class="abcjs-inner scroll-amount"></div>',e.style.overflowX="hidden",e.style.overflowY="auto",e=e.children[0]):e.innerHTML="";var a=new r(e,i);(a.engraveABC(t,n),t.engraver=a,i.viewportVertical||i.viewportHorizontal)&&(e.parentNode.style.width=e.style.width)}function h(e,t,i,n){function r(e){return{formatting:e.formatting,media:e.media,version:e.version,metaText:{},lines:[]}}for(var a,s=[],o=0;o<t.lines.length;o++){var c=t.lines[o];a||(a=r(t)),0===o&&(a.metaText.tempo=t.metaText.tempo,a.metaText.title=t.metaText.title,a.metaText.header=t.metaText.header,a.metaText.rhythm=t.metaText.rhythm,a.metaText.origin=t.metaText.origin,a.metaText.composer=t.metaText.composer,a.metaText.author=t.metaText.author,a.metaText.partOrder=t.metaText.partOrder),a.lines.push(c),c.staff&&(s.push(a),a=void 0)}if(a)for(var h=s[s.length-1],u=0;u<a.lines.length;u++)h.lines.push(a.lines[u]);(a=s[s.length-1]).metaText.unalignedWords=t.metaText.unalignedWords,a.metaText.book=t.metaText.book,a.metaText.source=t.metaText.source,a.metaText.discography=t.metaText.discography,a.metaText.notes=t.metaText.notes,a.metaText.transcription=t.metaText.transcription,a.metaText.history=t.metaText.history,a.metaText["abc-copyright"]=t.metaText["abc-copyright"],a.metaText["abc-creator"]=t.metaText["abc-creator"],a.metaText["abc-edited-by"]=t.metaText["abc-edited-by"],a.metaText.footer=t.metaText.footer;var d={};for(var f in i)i.hasOwnProperty(f)&&(d[f]=i[f]);var p=d.paddingtop,m=d.paddingbottom;e.innerHTML="";for(var g=0;g<s.length;g++){var v=document.createElement("div");e.appendChild(v),0===g?(d.paddingtop=p,d.paddingbottom=-20):g===s.length-1?(d.paddingtop=10,d.paddingbottom=m):(d.paddingtop=10,d.paddingbottom=-20),l(v,s[g],d,n),0===g?t.engraver=s[g].engraver:t.engraver.staffgroups?s[g].engraver.staffgroups.length>0&&t.engraver.staffgroups.push(s[g].engraver.staffgroups[0]):t.engraver.staffgroups=s[g].engraver.staffgroups}}window.addEventListener("resize",c),window.addEventListener("orientationChange",c);e.exports=function(e,t,i,o,c){var u,d={};if(i)for(u in i)i.hasOwnProperty(u)&&(d[u]=i[u]);if(o)for(u in o)o.hasOwnProperty(u)&&("listener"===u?o[u].highlight&&(d.clickListener=o[u].highlight):d[u]=o[u]);if(c)for(u in c)c.hasOwnProperty(u)&&(d[u]=c[u]);return n.renderEngine((function(e,t,i,n){return d.afterParsing&&d.afterParsing(t,i,n),d.wrap&&d.staffwidth?t=function(e,t,i,n,o){var c=new r(e,o),u=c.getMeasureWidths(t),d=s.calcLineWraps(t,u,n,o,a,c);!o.oneSvgPerLine||d.tune.lines.length<2?l(e,d.tune,d.revisedParams,i):h(e,d.tune,d.revisedParams,i);return d.tune.explanation=d.explanation,d.tune}(e,t,i,n,d):(!d.oneSvgPerLine||t.lines.length<2?l(e,t,d,i):h(e,t,d,i),null)}),e,t,d)}},function(e,t,i){var n=i(0),r=i(6),a=i(7);e.exports=function(e,t,i,s){this.reset=function(e,t,i,n){a.initialize(e,t,i,n),r.initialize(e,t,i,n)},this.reset(e,t,i,s),this.setTitle=function(t){if(i.hasMainTitle)s.addSubtitle(e.translateString(e.stripComment(t)));else{var n=e.translateString(e.theReverser(e.stripComment(t)));i.titlecaps&&(n=n.toUpperCase()),s.addMetaText("title",n),i.hasMainTitle=!0}},this.setMeter=function(n){if("C"===(n=e.stripComment(n)))return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"common_time"};if("C|"===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"cut_time"};if("o"===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===n.length||"none"===n.toLowerCase())return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),null;var r=e.tokenize(n,0,n.length);try{var a=function(){var e=function(){var e={value:0,num:""},t=r.shift();for("("===t.token&&(t=r.shift());;){if("number"!==t.type)throw"Expected top number of meter";if(e.value+=parseInt(t.token),e.num+=t.token,0===r.length||"/"===r[0].token)return e;if(")"===(t=r.shift()).token){if(0===r.length||"/"===r[0].token)return e;throw"Unexpected paren in meter"}if("."!==t.token&&"+"!==t.token)throw"Expected top number of meter";if(e.num+=t.token,0===r.length)throw"Expected top number of meter";t=r.shift()}return e}();if(0===r.length)return e;var t=r.shift();if("/"!==t.token)throw"Expected slash in meter";if("number"!==(t=r.shift()).type)throw"Expected bottom number of meter";return e.den=t.token,e.value=e.value/parseInt(e.den),e};if(0===r.length)throw"Expected meter definition in M: line";for(var s={type:"specified",value:[]},o=0;;){var c=a();o+=c.value;var l={num:c.num};if(void 0!==c.den&&(l.den=c.den),s.value.push(l),0===r.length)break}return!0===i.havent_set_length&&(i.default_length=o<.75?.0625:.125,i.havent_set_length=!1),s}catch(e){t(e,n,0)}return null},this.calcTempo=function(e){var t=.25;i.meter&&"specified"===i.meter.type?t=1/parseInt(i.meter.value[0].den):i.origMeter&&"specified"===i.origMeter.type&&(t=1/parseInt(i.origMeter.value[0].den));for(var n=0;n<e.duration;n++)e.duration[n]=t*e.duration[n];return e},this.resolveTempo=function(){i.tempo&&(this.calcTempo(i.tempo),s.metaText.tempo=i.tempo,delete i.tempo)},this.addUserDefinition=function(e,r,a){var s=e.indexOf("=",r);if(-1!==s){var o=n.strip(e.substring(r,s)),c=n.strip(e.substring(s+1));if(1===o.length){-1!=="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(o)?0!==c.length?(void 0===i.macros&&(i.macros={}),i.macros[o]=c):t("Missing macro definition",e,r):t("Macro definitions must be H-Y, h-w, or tilde",e,r)}else t("Macro definitions can only be one character",e,r)}else t("Need an = in a macro definition",e,r)},this.setDefaultLength=function(e,t,r){var a=n.gsub(e.substring(t,r)," ","").split("/");if(2===a.length){var s=parseInt(a[0]),o=parseInt(a[1]);o>0&&(i.default_length=s/o,i.havent_set_length=!1)}else 1===a.length&&"1"===a[0]&&(i.default_length=1,i.havent_set_length=!1)};var o={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(n,r,a){try{var s=e.tokenize(n,r,a);if(0===s.length)throw"Missing parameter in Q: field";var c={},l=!0,h=s.shift();if("quote"===h.type&&(c.preString=h.token,h=s.shift(),0===s.length))return o[c.preString.toLowerCase()]&&(c.bpm=o[c.preString.toLowerCase()],c.suppressBpm=!0),{type:"immediate",tempo:c};if("alpha"===h.type&&"C"===h.token){if(0===s.length)throw"Missing tempo after C in Q: field";if("punct"===(h=s.shift()).type&&"="===h.token){if(0===s.length)throw"Missing tempo after = in Q: field";if("number"!==(h=s.shift()).type)throw"Expected number after = in Q: field";c.duration=[1],c.bpm=parseInt(h.token)}else{if("number"!==h.type)throw"Expected number or equal after C in Q: field";if(c.duration=[parseInt(h.token)],0===s.length)throw"Missing = after duration in Q: field";if("punct"!==(h=s.shift()).type||"="!==h.token)throw"Expected = after duration in Q: field";if(0===s.length)throw"Missing tempo after = in Q: field";if("number"!==(h=s.shift()).type)throw"Expected number after = in Q: field";c.bpm=parseInt(h.token)}}else{if("number"!==h.type)throw"Unknown value in Q: field";var u=parseInt(h.token);if(0===s.length||"quote"===s[0].type)c.duration=[1],c.bpm=u;else{if(l=!1,"punct"!==(h=s.shift()).type&&"/"!==h.token)throw"Expected fraction in Q: field";if("number"!==(h=s.shift()).type)throw"Expected fraction in Q: field";var d=parseInt(h.token);for(c.duration=[u/d];s.length>0&&"="!==s[0].token&&"quote"!==s[0].type;){if("number"!==(h=s.shift()).type)throw"Expected fraction in Q: field";if(u=parseInt(h.token),"punct"!==(h=s.shift()).type&&"/"!==h.token)throw"Expected fraction in Q: field";if("number"!==(h=s.shift()).type)throw"Expected fraction in Q: field";d=parseInt(h.token),c.duration.push(u/d)}if("punct"!==(h=s.shift()).type&&"="!==h.token)throw"Expected = in Q: field";if("number"!==(h=s.shift()).type)throw"Expected tempo in Q: field";c.bpm=parseInt(h.token)}}if(0!==s.length&&("quote"===(h=s.shift()).type&&(c.postString=h.token,h=s.shift()),0!==s.length))throw"Unexpected string at end of Q: field";return!1===i.printTempo&&(c.suppress=!0),{type:l?"delaySet":"immediate",tempo:c}}catch(e){return t(e,n,r),{type:"none"}}},this.letter_to_inline_header=function(n,o){var c=e.eatWhiteSpace(n,o);if(o+=c,n.length>=o+5&&"["===n.charAt(o)&&":"===n.charAt(o+2)){var l=n.indexOf("]",o),h=i.iChar+o,u=i.iChar+l+1;switch(n.substring(o,o+3)){case"[I:":var d=r.addDirective(n.substring(o+3,l));return d&&t(d,n,o),[l-o+1+c];case"[M:":var f=this.setMeter(n.substring(o+3,l));return s.hasBeginMusic()&&f?s.appendStartingElement("meter",h,u,f):i.meter=f,[l-o+1+c];case"[K:":var p=a.parseKey(n.substring(o+3,l));return p.foundClef&&s.hasBeginMusic()&&s.appendStartingElement("clef",h,u,i.clef),p.foundKey&&s.hasBeginMusic()&&s.appendStartingElement("key",h,u,a.fixKey(i.clef,i.key)),[l-o+1+c];case"[P:":return s.lines.length<=s.lineNum?i.partForNextLine={title:n.substring(o+3,l),startChar:h,endChar:u}:s.appendElement("part",h,u,{title:n.substring(o+3,l)}),[l-o+1+c];case"[L:":return this.setDefaultLength(n,o+3,l),[l-o+1+c];case"[Q:":if(l>0){var m=this.setTempo(n,o+3,l);return"delaySet"===m.type?s.appendElement("tempo",h,u,this.calcTempo(m.tempo)):"immediate"===m.type&&s.appendElement("tempo",h,u,m.tempo),[l-o+1+c,n.charAt(o+1),n.substring(o+3,l)]}break;case"[V:":if(l>0)return a.parseVoice(n,o+3,l),[l-o+1+c,n.charAt(o+1),n.substring(o+3,l)]}}return[0]},this.letter_to_body_header=function(e,o){if(e.length>=o+3)switch(e.substring(o,o+2)){case"I:":var c=r.addDirective(e.substring(o+2));return c&&t(c,e,o),[e.length];case"M:":var l=this.setMeter(e.substring(o+2));return s.hasBeginMusic()&&l&&s.appendStartingElement("meter",i.iChar+o,i.iChar+e.length,l),[e.length];case"K:":var h=a.parseKey(e.substring(o+2));return h.foundClef&&s.hasBeginMusic()&&s.appendStartingElement("clef",i.iChar+o,i.iChar+e.length,i.clef),h.foundKey&&s.hasBeginMusic()&&s.appendStartingElement("key",i.iChar+o,i.iChar+e.length,a.fixKey(i.clef,i.key)),[e.length];case"P:":return s.hasBeginMusic()&&s.appendElement("part",i.iChar+o,i.iChar+e.length,{title:e.substring(o+2)}),[e.length];case"L:":return this.setDefaultLength(e,o+2,e.length),[e.length];case"Q:":var u=e.indexOf("",o+2);-1===u&&(u=e.length);var d=this.setTempo(e,o+2,u);return"delaySet"===d.type?s.appendElement("tempo",i.iChar+o,i.iChar+e.length,this.calcTempo(d.tempo)):"immediate"===d.type&&s.appendElement("tempo",i.iChar+o,i.iChar+e.length,d.tempo),[u,e.charAt(o),n.strip(e.substring(o+2))];case"V:":return a.parseVoice(e,o+2,e.length),[e.length,e.charAt(o),n.strip(e.substring(o+2))]}return[0]};var c={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(o){if(n.startsWith(o,"%%")){var l=r.addDirective(o.substring(2));return l&&t(l,o,2),{}}var h=o.indexOf("%");if(h>=0&&(o=o.substring(0,h)),0===(o=o.replace(/\s+$/,"")).length)return{};if(o.length>=2&&":"===o.charAt(1)){var u="";o.indexOf("")>=0&&"w"!==o.charAt(0)&&(u=o.substring(o.indexOf("")+1),o=o.substring(0,o.indexOf("")));var d=c[o.charAt(0)];if(void 0!==d)return"unalignedWords"===d?s.addMetaTextArray(d,r.parseFontChangeLine(e.translateString(e.stripComment(o.substring(2))))):s.addMetaText(d,e.translateString(e.stripComment(o.substring(2)))),{};var f=i.iChar,p=f+o.length;switch(o.charAt(0)){case"H":s.addMetaText("history",e.translateString(e.stripComment(o.substring(2)))),i.is_in_history=!0;break;case"K":this.resolveTempo();var m=a.parseKey(o.substring(2));!i.is_in_header&&s.hasBeginMusic()&&(m.foundClef&&s.appendStartingElement("clef",f,p,i.clef),m.foundKey&&s.appendStartingElement("key",f,p,a.fixKey(i.clef,i.key))),i.is_in_header=!1;break;case"L":this.setDefaultLength(o,2,o.length);break;case"M":i.origMeter=i.meter=this.setMeter(o.substring(2));break;case"P":i.is_in_header?s.addMetaText("partOrder",e.translateString(e.stripComment(o.substring(2)))):i.partForNextLine={title:e.translateString(e.stripComment(o.substring(2))),startChar:f,endChar:p};break;case"Q":var g=this.setTempo(o,2,o.length);"delaySet"===g.type?i.tempo=g.tempo:"immediate"===g.type&&(s.metaText.tempo=g.tempo);break;case"T":this.setTitle(o.substring(2));break;case"U":this.addUserDefinition(o,2,o.length);break;case"V":if(a.parseVoice(o,2,o.length),!i.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":t("Ignored header",o,0);break;default:return u.length&&(u=""+u),{regular:!0,str:o+u}}return u.length>0?{recurse:!0,str:u}:{}}return{regular:!0,str:o}}}},function(e,t,i){var n=i(0);e.exports=function(){this.skipWhiteSpace=function(e){for(var t=0;t<e.length;t++)if(!this.isWhiteSpace(e.charAt(t)))return t;return e.length};var e=function(e,t){return t>=e.length};this.eatWhiteSpace=function(e,t){for(var i=t;i<e.length;i++)if(!this.isWhiteSpace(e.charAt(i)))return i-t;return i-t},this.getKeyPitch=function(t){var i=this.skipWhiteSpace(t);if(e(t,i))return{len:0};switch(t.charAt(i)){case"A":return{len:i+1,token:"A"};case"B":return{len:i+1,token:"B"};case"C":return{len:i+1,token:"C"};case"D":return{len:i+1,token:"D"};case"E":return{len:i+1,token:"E"};case"F":return{len:i+1,token:"F"};case"G":return{len:i+1,token:"G"}}return{len:0}},this.getSharpFlat=function(e){if("bass"===e)return{len:0};switch(e.charAt(0)){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}},this.getMode=function(t){var i=function(e,t){for(;t<e.length&&(e.charAt(t)>="a"&&e.charAt(t)<="z"||e.charAt(t)>="A"&&e.charAt(t)<="Z");)t++;return t},n=this.skipWhiteSpace(t);if(e(t,n))return{len:0};var r=t.substring(n,n+3).toLowerCase();switch((r.length>1&&" "===r.charAt(1)||"^"===r.charAt(1)||"_"===r.charAt(1)||"="===r.charAt(1))&&(r=r.charAt(0)),r){case"mix":return{len:i(t,n),token:"Mix"};case"dor":return{len:i(t,n),token:"Dor"};case"phr":return{len:i(t,n),token:"Phr"};case"lyd":return{len:i(t,n),token:"Lyd"};case"loc":return{len:i(t,n),token:"Loc"};case"aeo":return{len:i(t,n),token:"m"};case"maj":case"ion":return{len:i(t,n),token:""};case"min":case"m":return{len:i(t,n),token:"m"}}return{len:0}},this.getClef=function(t,i){var r=t,a=this.skipWhiteSpace(t);if(e(t,a))return{len:0};var s=!1,o=t.substring(a);if(n.startsWith(o,"clef=")&&(s=!0,o=o.substring(5),a+=5),0===o.length&&s)return{len:a+5,warn:"No clef specified: "+r};var c=this.skipWhiteSpace(o);if(e(o,c))return{len:0};c>0&&(a+=c,o=o.substring(c));var l=null;if(n.startsWith(o,"treble"))l="treble";else if(n.startsWith(o,"bass3"))l="bass3";else if(n.startsWith(o,"bass"))l="bass";else if(n.startsWith(o,"tenor"))l="tenor";else if(n.startsWith(o,"alto2"))l="alto2";else if(n.startsWith(o,"alto1"))l="alto1";else if(n.startsWith(o,"alto"))l="alto";else if(!i&&s&&n.startsWith(o,"none"))l="none";else if(n.startsWith(o,"perc"))l="perc";else if(!i&&s&&n.startsWith(o,"C"))l="tenor";else if(!i&&s&&n.startsWith(o,"F"))l="bass";else{if(i||!s||!n.startsWith(o,"G"))return{len:a+5,warn:"Unknown clef specified: "+r};l="treble"}return o=o.substring(l.length),(c=this.isMatch(o,"+8"))>0?l+="+8":(c=this.isMatch(o,"-8"))>0&&(l+="-8"),{len:a+l.length,token:l,explicit:s}},this.getBarLine=function(e,t){switch(e.charAt(t)){case"]":switch(++t,e.charAt(t)){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++t,e.charAt(t)>="1"&&e.charAt(t)<="9"||'"'===e.charAt(t)?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(++t,e.charAt(t)){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++t,e.charAt(t)){case"]":switch(++t,e.charAt(t)){case"|":return++t,":"===e.charAt(t)?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}break;case"|":return++t,":"===e.charAt(t)?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}break;default:return{len:1,warn:"Unknown bar symbol"}}break;case"[":if(++t,"|"!==e.charAt(t))return e.charAt(t)>="1"&&e.charAt(t)<="9"||'"'===e.charAt(t)?{len:1,token:"bar_invisible"}:{len:0};switch(++t,e.charAt(t)){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}break;case"|":switch(++t,e.charAt(t)){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++t,":"===e.charAt(t)?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var i=0;":"===e.charAt(t+i);)i++;return{len:1+i,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(e,t){for(var i=0;i<e.length;i++)if(t.indexOf(e.charAt(i))<0)return{len:i,token:e.substring(0,i)};return{len:i,token:e}},this.getToken=function(e,t,i){for(var n=t;n<i&&!this.isWhiteSpace(e.charAt(n));)n++;return e.substring(t,n)},this.isMatch=function(t,i){var r=this.skipWhiteSpace(t);return e(t,r)?0:n.startsWith(t.substring(r),i)?r+i.length:0},this.getPitchFromTokens=function(e){var t={};if(t.position={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11}[e[0].token],void 0===t.position)return{warn:"Pitch expected. Found: "+e[0].token};for(e.shift();e.length;)switch(e[0].token){case",":t.position-=7,e.shift();break;case"'":t.position+=7,e.shift();break;default:return t}return t},this.getKeyAccidentals2=function(e){for(var t;e.length>0;){var i;if("^"===e[0].token){if(i="sharp",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+i};switch(e[0].token){case"^":i="dblsharp",e.shift();break;case"/":i="quartersharp",e.shift()}}else if("="===e[0].token)i="natural",e.shift();else{if("_"!==e[0].token)return{accs:t};if(i="flat",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+i};switch(e[0].token){case"_":i="dblflat",e.shift();break;case"/":i="quarterflat",e.shift()}}if(0===e.length)return{accs:t,warn:"Expected note name after "+i};switch(e[0].token.charAt(0)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":void 0===t&&(t=[]),t.push({acc:i,note:e[0].token.charAt(0)}),1===e[0].token.length?e.shift():e[0].token=e[0].token.substring(1);break;default:return{accs:t,warn:"Expected note name after "+i+" Found: "+e[0].token}}}return{accs:t}},this.getKeyAccidental=function(t){var i={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},n=this.skipWhiteSpace(t);if(e(t,n))return{len:0};var r=null;switch(t.charAt(n)){case"^":case"_":case"=":r=t.charAt(n);break;default:return{len:0}}if(e(t,++n))return{len:1,warn:"Expected note name after accidental"};switch(t.charAt(n)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:n+1,token:{acc:i[r],note:t.charAt(n)}};case"^":case"_":case"/":if(r+=t.charAt(n),e(t,++n))return{len:2,warn:"Expected note name after accidental"};switch(t.charAt(n)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:n+1,token:{acc:i[r],note:t.charAt(n)}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(e){return" "===e||"\t"===e||""===e},this.getMeat=function(e,t,i){var n=e.indexOf("%",t);for(n>=0&&n<i&&(i=n);t<i&&(" "===e.charAt(t)||"\t"===e.charAt(t)||""===e.charAt(t));)t++;for(;t<i&&(" "===e.charAt(i-1)||"\t"===e.charAt(i-1)||""===e.charAt(i-1));)i--;return{start:t,end:i}};var t=function(e){return e>="A"&&e<="Z"||e>="a"&&e<="z"},i=function(e){return e>="0"&&e<="9"};this.tokenize=function(e,n,r,a){var s=this.getMeat(e,n,r);n=s.start,r=s.end;for(var o,c=[];n<r;){if('"'===e.charAt(n)){for(o=n+1;o<r&&'"'!==e.charAt(o);)o++;c.push({type:"quote",token:e.substring(n+1,o),start:n+1,end:o}),o++}else if(t(e.charAt(n))){if(o=n+1,a)for(;o<r&&!this.isWhiteSpace(e.charAt(o));)o++;else for(;o<r&&t(e.charAt(o));)o++;c.push({type:"alpha",token:e.substring(n,o),continueId:i(e.charAt(o)),start:n,end:o}),n=o+1}else if("."===e.charAt(n)&&i(e.charAt(o+1))){o=n+1;for(var l;o<r&&i(e.charAt(o));)o++;l=parseFloat(e.substring(n,o)),c.push({type:"number",token:e.substring(n,o),intt:null,floatt:l,continueId:t(e.charAt(o)),start:n,end:o}),n=o+1}else if(i(e.charAt(n))||"-"===e.charAt(n)&&i(e.charAt(o+1))){o=n+1;for(var h,u=null;o<r&&i(e.charAt(o));)o++;if("."===e.charAt(o)&&i(e.charAt(o+1)))for(o++;o<r&&i(e.charAt(o));)o++;else u=parseInt(e.substring(n,o));h=parseFloat(e.substring(n,o)),c.push({type:"number",token:e.substring(n,o),intt:u,floatt:h,continueId:t(e.charAt(o)),start:n,end:o}),n=o+1}else" "===e.charAt(n)||"\t"===e.charAt(n)?o=n+1:(c.push({type:"punct",token:e.charAt(n),start:n,end:n+1}),o=n+1);n=o}return c},this.getVoiceToken=function(e,t,i){for(var n=t;n<i&&this.isWhiteSpace(e.charAt(n))||"="===e.charAt(n);)n++;if('"'===e.charAt(n)){var r=e.indexOf('"',n+1);return-1===r||r>=i?{len:1,err:"Missing close quote"}:{len:r-t+1,token:this.translateString(e.substring(n+1,r))}}for(var a=n;a<i&&!this.isWhiteSpace(e.charAt(a))&&"="!==e.charAt(a);)a++;return{len:a-t+1,token:e.substring(n,a)}};var r={"`a":"à","'a":"á","^a":"â","~a":"ã",'"a':"ä",oa:"å",aa:"å","=a":"ā",ua:"ă",";a":"ą","`e":"è","'e":"é","^e":"ê",'"e':"ë","=e":"ē",ue:"ĕ",";e":"ę",".e":"ė","`i":"ì","'i":"í","^i":"î",'"i':"ï","=i":"ī",ui:"ĭ",";i":"į","`o":"ò","'o":"ó","^o":"ô","~o":"õ",'"o':"ö","=o":"ō",uo:"ŏ","/o":"ø","`u":"ù","'u":"ú","^u":"û","~u":"ũ",'"u':"ü",ou:"ů","=u":"ū",uu:"ŭ",";u":"ų","`A":"À","'A":"Á","^A":"Â","~A":"Ã",'"A':"Ä",oA:"Å",AA:"Å","=A":"Ā",uA:"Ă",";A":"Ą","`E":"È","'E":"É","^E":"Ê",'"E':"Ë","=E":"Ē",uE:"Ĕ",";E":"Ę",".E":"Ė","`I":"Ì","'I":"Í","^I":"Î","~I":"Ĩ",'"I':"Ï","=I":"Ī",uI:"Ĭ",";I":"Į",".I":"İ","`O":"Ò","'O":"Ó","^O":"Ô","~O":"Õ",'"O':"Ö","=O":"Ō",uO:"Ŏ","/O":"Ø","`U":"Ù","'U":"Ú","^U":"Û","~U":"Ũ",'"U':"Ü",oU:"Ů","=U":"Ū",uU:"Ŭ",";U":"Ų",ae:"æ",AE:"Æ",oe:"œ",OE:"Œ",ss:"ß","'c":"ć","^c":"ĉ",uc:"č",cc:"ç",".c":"ċ",cC:"Ç","'C":"Ć","^C":"Ĉ",uC:"Č",".C":"Ċ","~N":"Ñ","~n":"ñ","=s":"š",vs:"š",DH:"Ð",dh:"ð",HO:"Ő",Ho:"ő",HU:"Ű",Hu:"ű","'Y":"Ý","'y":"ý","^Y":"Ŷ","^y":"ŷ",'"Y':"Ÿ",'"y':"ÿ",vS:"Š",vZ:"Ž",vz:"ž"},a={"#":"♯",b:"♭","=":"♮"},s={201:"♯",202:"♭",203:"♮",241:"¡",242:"¢",252:"a",262:"2",272:"o",302:"Â",312:"Ê",322:"Ò",332:"Ú",342:"â",352:"ê",362:"ò",372:"ú",243:"£",253:"«",263:"3",273:"»",303:"Ã",313:"Ë",323:"Ó",333:"Û",343:"ã",353:"ë",363:"ó",373:"û",244:"¤",254:"¬",264:"  ́",274:"1⁄4",304:"Ä",314:"Ì",324:"Ô",334:"Ü",344:"ä",354:"ì",364:"ô",374:"ü",245:"¥",255:"-",265:"μ",275:"1⁄2",305:"Å",315:"Í",325:"Õ",335:"Ý",345:"å",355:"í",365:"õ",375:"ý",246:"¦",256:"®",266:"¶",276:"3⁄4",306:"Æ",316:"Î",326:"Ö",336:"Þ",346:"æ",356:"î",366:"ö",376:"þ",247:"§",257:" ̄",267:"·",277:"¿",307:"Ç",317:"Ï",327:"×",337:"ß",347:"ç",357:"ï",367:"÷",377:"ÿ",250:" ̈",260:"°",270:" ̧",300:"À",310:"È",320:"Ð",330:"Ø",340:"à",350:"è",360:"ð",370:"ø",251:"©",261:"±",271:"1",301:"Á",311:"É",321:"Ñ",331:"Ù",341:"á",351:"é",361:"ñ",371:"ù"};this.translateString=function(e){var t=e.split("\\");if(1===t.length)return e;var i=null;return n.each(t,(function(e){if(null===i)i=e;else{var t=r[e.substring(0,2)];void 0!==t?i+=t+e.substring(2):void 0!==(t=s[e.substring(0,3)])?i+=t+e.substring(3):(t=a[e.substring(0,1)],i+=void 0!==t?t+e.substring(1):"\\"+e)}})),i},this.getNumber=function(e,t){for(var i=0;t<e.length;)switch(e.charAt(t)){case"0":i*=10,t++;break;case"1":i=10*i+1,t++;break;case"2":i=10*i+2,t++;break;case"3":i=10*i+3,t++;break;case"4":i=10*i+4,t++;break;case"5":i=10*i+5,t++;break;case"6":i=10*i+6,t++;break;case"7":i=10*i+7,t++;break;case"8":i=10*i+8,t++;break;case"9":i=10*i+9,t++;break;default:return{num:i,index:t}}return{num:i,index:t}},this.getFraction=function(e,t){var i=1,n=1;if("/"!==e.charAt(t)){var r=this.getNumber(e,t);i=r.num,t=r.index}if("/"===e.charAt(t)){if(t++,"/"===e.charAt(t)){for(var a=.5;"/"===e.charAt(t++);)a/=2;return{value:i*a,index:t-1}}var s=t,o=this.getNumber(e,t);0===o.num&&s===t&&(o.num=2),0!==o.num&&(n=o.num),t=o.index}return{value:i/n,index:t}},this.theReverser=function(e){return n.endsWith(e,", The")?"The "+e.substring(0,e.length-5):n.endsWith(e,", A")?"A "+e.substring(0,e.length-3):e},this.stripComment=function(e){var t=e.indexOf("%");return t>=0?n.strip(e.substring(0,t)):n.strip(e)},this.getInt=function(e){var t=parseInt(e);if(isNaN(t))return{digits:0};var i=""+t;return{value:t,digits:e.indexOf(i)+i.length}},this.getFloat=function(e){var t=parseFloat(e);if(isNaN(t))return{digits:0};var i=""+t;return{value:t,digits:e.indexOf(i)+i.length}},this.getMeasurement=function(e){if(0===e.length)return{used:0};var t=1,i="";if("-"===e[0].token)e.shift(),i="-",t++;else if("number"!==e[0].type)return{used:0};if(i+=e.shift().token,0===e.length)return{used:1,value:parseInt(i)};var n=e.shift();if("."===n.token){if(t++,0===e.length)return{used:t,value:parseInt(i)};if("number"===e[0].type&&(i=i+"."+(n=e.shift()).token,t++,0===e.length))return{used:t,value:parseFloat(i)};n=e.shift()}switch(n.token){case"pt":return{used:t+1,value:parseFloat(i)};case"cm":return{used:t+1,value:parseFloat(i)/2.54*72};case"in":return{used:t+1,value:72*parseFloat(i)};default:return e.unshift(n),{used:t,value:parseFloat(i)}}return{used:0}};var o=function(e){for(;-1!==e.indexOf("\\n");)e=e.replace("\\n","\n");return e};this.getBrackettedSubstring=function(e,t,i,n){for(var r=n||e.charAt(t),a=t+1;a<e.length&&e.charAt(a)!==r;)++a;return e.charAt(a)===r?[a-t+1,o(e.substring(t+1,a)),!0]:((a=t+i)>e.length-1&&(a=e.length-1),[a-t+1,o(e.substring(t+1,a)),!1])}}},function(e,t,i){var n=i(0),r=i(7),a=i(1);e.exports=function(){this.getBeatLength=function(){for(var e=0;e<this.lines.length;e++)if(this.lines[e].staff)for(var t=0;t<this.lines[e].staff.length;t++)if(this.lines[e].staff[t].meter){var i=this.lines[e].staff[t].meter;if("specified"===i.type){if(i.value.length>0){var n=parseInt(i.value[0].num,10),r=parseInt(i.value[0].den,10);return 3===n&&8===r?3/8:6===n&&8===r?3/8:6===n&&4===r?.75:9===n&&8===r?3/8:12===n&&8===r?3/8:1/r}return.25}return"cut_time"===i.type?.5:.25}return.25},this.getPickupLength=function(){for(var e=0,t=this.getBarLength(),i=0;i<this.lines.length;i++)if(this.lines[i].staff)for(var n=0;n<this.lines[i].staff.length;n++)for(var r=0;r<this.lines[i].staff[n].voices.length;r++)for(var a=this.lines[i].staff[n].voices[r],s=1,o=0;o<a.length;o++){var c=a[o].rest&&"spacer"===a[o].rest.type;if(a[o].startTriplet&&(s=a[o].tripletMultiplier),a[o].duration&&!c&&(e+=a[o].duration*s),a[o].endTriplet&&(s=1),e>=t&&(e-=t),"bar"===a[o].el_type)return e}return e},this.getBarLength=function(){var e=this.getMeterFraction();return e.num/e.den},this.millisecondsPerMeasure=function(e){var t;if(e)t=e;else{var i=this.metaText?this.metaText.tempo:null;t=this.getBpm(i)}return t<=0&&(t=1),6e4*(this.getBeatsPerMeasure()/t)},this.getBeatsPerMeasure=function(){var e,t=this.getMeterFraction();return(e=8===t.den?t.num/3:t.num)<=0&&(e=1),e},this.reset=function(){this.version="1.0.1",this.media="screen",this.metaText={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0},this.resolveOverlays=function(){for(var e=!1,t=0;t<this.lines.length;t++){var i=this.lines[t];if(i.staff)for(var r=0;r<i.staff.length;r++){for(var a=i.staff[r],s=[],o=0;o<a.voices.length;o++){var c=a.voices[o];s.push({hasOverlay:!1,voice:[],snip:[]});for(var l=0,h=!1,u=-1,d=0;d<c.length;d++){var f=c[d];"overlay"!==f.el_type||h?"bar"===f.el_type?(h?(h=!1,s[o].snip.push({start:u,len:d-u}),s[o].voice.push(f)):(l>0&&s[o].voice.push({el_type:"note",duration:l,rest:{type:"invisible"},startChar:f.startChar,endChar:f.endChar}),s[o].voice.push(f)),l=0):"note"===f.el_type?h?s[o].voice.push(f):l+=f.duration:"scale"!==f.el_type&&"stem"!==f.el_type&&"overlay"!==f.el_type&&"style"!==f.el_type&&"transpose"!==f.el_type||s[o].voice.push(f):(e=!0,h=!0,u=d,s[o].hasOverlay=!0)}s[o].hasOverlay&&0===s[o].snip.length&&s[o].snip.push({start:u,len:c.length-u})}for(o=0;o<s.length;o++){var p=s[o];if(p.hasOverlay){a.voices.push(p.voice);for(var m=p.snip.length-1;m>=0;m--){var g=p.snip[m];a.voices[o].splice(g.start,g.len)}for(m=0;m<a.voices[a.voices.length-1].length;m++){a.voices[a.voices.length-1][m]=n.clone(a.voices[a.voices.length-1][m]);var v=a.voices[a.voices.length-1][m];"bar"===v.el_type&&v.startEnding&&delete v.startEnding,"bar"===v.el_type&&v.endEnding&&delete v.endEnding}}}}}return e},this.cleanUp=function(e,t,i,a,s){this.closeLine(),this.metaText.tempo&&this.metaText.tempo.bpm&&!this.metaText.tempo.duration&&(this.metaText.tempo.duration=[this.getBeatLength()]);var o,c,l,h=!1;for(o=0;o<this.lines.length;o++)if(void 0!==this.lines[o].staff){var u=!1;for(c=0;c<this.lines[o].staff.length;c++)if(void 0===this.lines[o].staff[c])h=!0,this.lines[o].staff[c]=null;else for(l=0;l<this.lines[o].staff[c].voices.length;l++)void 0===this.lines[o].staff[c].voices[l]?this.lines[o].staff[c].voices[l]=[]:this.containsNotes(this.lines[o].staff[c].voices[l])&&(u=!0);u||(this.lines[o]=null,h=!0)}if(h&&(this.lines=n.compact(this.lines),n.each(this.lines,(function(e){e.staff&&(e.staff=n.compact(e.staff))}))),i)for(;m(this.lines,i););if(a){for(h=!1,o=0;o<this.lines.length;o++)if(void 0!==this.lines[o].staff)for(c=0;c<this.lines[o].staff.length;c++){var d=!1;for(l=0;l<this.lines[o].staff[c].voices.length;l++)this.containsNotesStrict(this.lines[o].staff[c].voices[l])&&(d=!0);d||(h=!0,this.lines[o].staff[c]=null)}h&&n.each(this.lines,(function(e){e.staff&&(e.staff=n.compact(e.staff))}))}for(function(e){for(var t=!0,i=0;i<e.length;i++){var n=e[i];if(n.staff){for(var r=0;r<n.staff.length;r++){var a=n.staff[r];if(a.title){for(var s=!1,o=0;o<a.title.length;o++)a.title[o]?(a.title[o]=t?a.title[o].name:a.title[o].subname,a.title[o]?s=!0:a.title[o]=""):a.title[o]="";s||delete a.title}}t=!1}}}(this.lines),o=0;o<this.lines.length;o++)if(this.lines[o].staff)for(c=0;c<this.lines[o].staff.length;c++)delete this.lines[o].staff[c].workingClef;for(;this.resolveOverlays(););function f(e){for(var t,i=function(e,i,r){if(void 0===s[r]){for(t=0;t<s.length;t++)if(void 0!==s[t]){r=t;break}if(void 0===s[r]){var a=100*r+1;n.each(e.endSlur,(function(e){a===e&&--a})),s[r]=[a]}}for(var o,c=0;c<i;c++)o=s[r].pop(),e.endSlur.push(o);return 0===s[r].length&&delete s[r],o},r=function(e,t,i,r){e.startSlur=[],void 0===s[i]&&(s[i]=[]);for(var a=100*i+1,o=0;o<t;o++)r&&(n.each(r,(function(e){a===e&&++a})),n.each(r,(function(e){a===e&&++a})),n.each(r,(function(e){a===e&&++a}))),n.each(s[i],(function(e){a===e&&++a})),n.each(s[i],(function(e){a===e&&++a})),s[i].push(a),e.startSlur.push({label:a}),a++},a=0;a<e.length;a++){var o=e[a];if("note"===o.el_type){if(o.gracenotes)for(var c=0;c<o.gracenotes.length;c++){if(o.gracenotes[c].endSlur){var l=o.gracenotes[c].endSlur;o.gracenotes[c].endSlur=[];for(var h=0;h<l;h++)i(o.gracenotes[c],1,20)}o.gracenotes[c].startSlur&&(t=o.gracenotes[c].startSlur,r(o.gracenotes[c],t,20))}if(o.endSlur&&(t=o.endSlur,o.endSlur=[],i(o,t,0)),o.startSlur&&r(o,t=o.startSlur,0),o.pitches){for(var u=[],d=0;d<o.pitches.length;d++)if(o.pitches[d].endSlur){var f=o.pitches[d].endSlur;o.pitches[d].endSlur=[];for(var p=0;p<f;p++){var m=i(o.pitches[d],1,d+1);u.push(m)}}for(d=0;d<o.pitches.length;d++)o.pitches[d].startSlur&&(t=o.pitches[d].startSlur,r(o.pitches[d],t,d+1,u));o.gracenotes&&o.pitches[0].endSlur&&100===o.pitches[0].endSlur[0]&&o.pitches[0].startSlur&&(o.gracenotes[0].endSlur?o.gracenotes[0].endSlur.push(o.pitches[0].startSlur[0].label):o.gracenotes[0].endSlur=[o.pitches[0].startSlur[0].label],1===o.pitches[0].endSlur.length?delete o.pitches[0].endSlur:100===o.pitches[0].endSlur[0]?o.pitches[0].endSlur.shift():100===o.pitches[0].endSlur[o.pitches[0].endSlur.length-1]&&o.pitches[0].endSlur.pop(),1===s[1].length?delete s[1]:s[1].pop())}}}}function p(e){r.fixClef(e)}function m(e,t){for(o=0;o<e.length;o++)if(void 0!==e[o].staff)for(c=0;c<e[o].staff.length;c++){var i=[];for(l=0;l<e[o].staff[c].voices.length;l++)for(var r=e[o].staff[c].voices[l],a=0,s=0;s<r.length;s++)if("bar"===r[s].el_type){if(++a>=t&&s<r.length-1){var h=g(e,o);if(!h){var u=JSON.parse(JSON.stringify(e[o]));e.push(n.clone(u)),h=e[e.length-1];for(var d=0;d<h.staff.length;d++)for(var f=0;f<h.staff[d].voices.length;f++)h.staff[d].voices[f]=[]}var p=s+1,m=e[o].staff[c].voices[l].slice(p);return e[o].staff[c].voices[l]=e[o].staff[c].voices[l].slice(0,p),h.staff[c].voices[l]=i.concat(m.concat(h.staff[c].voices[l])),!0}}else r[s].duration||i.push(r[s])}return!1}function g(e,t){for(t++;e.length>t;){if(e[t].staff)return e[t];t++}return null}for(this.lineNum=0;this.lineNum<this.lines.length;this.lineNum++){var v=this.lines[this.lineNum].staff;if(v)for(this.staffNum=0;this.staffNum<v.length;this.staffNum++)for(v[this.staffNum].clef&&p(v[this.staffNum].clef),this.voiceNum=0;this.voiceNum<v[this.staffNum].voices.length;this.voiceNum++){var b=v[this.staffNum].voices[this.voiceNum];f(b);for(var y=0;y<b.length;y++)"clef"===b[y].el_type&&p(b[y]);if(b.length>0&&b[b.length-1].barNumber){var w=g(this.lines,this.lineNum);w&&(w.staff[0].barNumber=b[b.length-1].barNumber),delete b[b.length-1].barNumber}}}return this.formatting.pagewidth||(this.formatting.pagewidth=e),this.formatting.pageheight||(this.formatting.pageheight=t),delete this.staffNum,delete this.voiceNum,delete this.lineNum,delete this.potentialStartBeam,delete this.potentialEndBeam,delete this.vskipPending,s},this.reset(),this.getLastNote=function(){if(this.lines[this.lineNum]&&this.lines[this.lineNum].staff&&this.lines[this.lineNum].staff[this.staffNum]&&this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])for(var e=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum].length-1;e>=0;e--){var t=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum][e];if("note"===t.el_type)return t}return null},this.addTieToLastNote=function(){var e=this.getLastNote();return!!(e&&e.pitches&&e.pitches.length>0)&&(e.pitches[0].startTie={},!0)},this.getDuration=function(e){return e.duration?e.duration:0},this.closeLine=function(){this.potentialStartBeam&&this.potentialEndBeam&&(this.potentialStartBeam.startBeam=!0,this.potentialEndBeam.endBeam=!0),delete this.potentialStartBeam,delete this.potentialEndBeam},this.appendElement=function(e,t,i,r){var a=this;r.el_type=e,null!==t&&(r.startChar=t),null!==i&&(r.endChar=i);var s=function(){void 0!==a.potentialStartBeam&&void 0!==a.potentialEndBeam&&(a.potentialStartBeam.startBeam=!0,a.potentialEndBeam.endBeam=!0),delete a.potentialStartBeam,delete a.potentialEndBeam};"note"===e?a.getDuration(r)>=.25?s():r.force_end_beam_last&&void 0!==a.potentialStartBeam?s():r.end_beam&&void 0!==a.potentialStartBeam?void 0===r.rest?(a.potentialStartBeam.startBeam=!0,r.endBeam=!0,delete a.potentialStartBeam,delete a.potentialEndBeam):s():void 0===r.rest&&(void 0===a.potentialStartBeam?r.end_beam||(a.potentialStartBeam=r,delete a.potentialEndBeam):a.potentialEndBeam=r):s();delete r.end_beam,delete r.force_end_beam_last,function(e){var t=a.lines[a.lineNum].staff[a.staffNum];if(t){if(void 0!==e.pitches){var i=t.workingClef.verticalPos;n.each(e.pitches,(function(e){e.verticalPos=e.pitch-i}))}if(void 0!==e.gracenotes){var r=t.workingClef.verticalPos;n.each(e.gracenotes,(function(e){e.verticalPos=e.pitch-r}))}t.voices[a.voiceNum].push(e)}}(r)},this.appendStartingElement=function(e,t,i,r){var a;this.closeLine(),"key"===e&&(a=r.impliedNaturals,delete r.impliedNaturals,delete r.explicitAccidentals);var s=n.clone(r);if(this.lines[this.lineNum].staff){this.lines[this.lineNum].staff.length<=this.staffNum&&(this.lines[this.lineNum].staff[this.staffNum]={},this.lines[this.lineNum].staff[this.staffNum].clef=n.clone(this.lines[this.lineNum].staff[0].clef),this.lines[this.lineNum].staff[this.staffNum].key=n.clone(this.lines[this.lineNum].staff[0].key),this.lines[this.lineNum].staff[0].meter&&(this.lines[this.lineNum].staff[this.staffNum].meter=n.clone(this.lines[this.lineNum].staff[0].meter)),this.lines[this.lineNum].staff[this.staffNum].workingClef=n.clone(this.lines[this.lineNum].staff[0].workingClef),this.lines[this.lineNum].staff[this.staffNum].voices=[[]]),"clef"===e&&(this.lines[this.lineNum].staff[this.staffNum].workingClef=s);for(var o=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum],c=0;c<o.length;c++){if("note"===o[c].el_type||"bar"===o[c].el_type)return s.el_type=e,s.startChar=t,s.endChar=i,a&&(s.accidentals=a.concat(s.accidentals)),void o.push(s);if(o[c].el_type===e)return s.el_type=e,s.startChar=t,s.endChar=i,a&&(s.accidentals=a.concat(s.accidentals)),void(o[c]=s)}this.lines[this.lineNum].staff[this.staffNum][e]=r}},this.getNumLines=function(){return this.lines.length},this.pushLine=function(e){this.vskipPending&&(e.vskip=this.vskipPending,delete this.vskipPending),this.lines.push(e)},this.addSubtitle=function(e){this.pushLine({subtitle:e})},this.addSpacing=function(e){this.vskipPending=e},this.addNewPage=function(e){this.pushLine({newpage:e})},this.addSeparator=function(e,t,i){this.pushLine({separator:{spaceAbove:e,spaceBelow:t,lineLength:i}})},this.addText=function(e){this.pushLine({text:e})},this.addCentered=function(e){this.pushLine({text:[{text:e,center:!0}]})},this.containsNotes=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type||"bar"===e[t].el_type)return!0;return!1},this.containsNotesStrict=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type&&void 0===e[t].rest)return!0;return!1},this.changeVoiceScale=function(e){this.appendElement("scale",null,null,{size:e})},this.startNewLine=function(e){var t=this;this.closeLine();var i=function(e){var i=t.lines[t.lineNum].staff[t.staffNum];if(i.voices[t.voiceNum]=[],i.title||(i.title=[]),i.title[t.voiceNum]={name:e.name,subname:e.subname},e.style&&t.appendElement("style",null,null,{head:e.style}),e.stem)t.appendElement("stem",null,null,{direction:e.stem});else if(t.voiceNum>0){if(void 0!==i.voices[0]){for(var n=!1,r=0;r<i.voices[0].length;r++)"stem"===i.voices[0].el_type&&(n=!0);if(!n){i.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}}t.appendElement("stem",null,null,{direction:"down"})}e.scale&&t.appendElement("scale",null,null,{size:e.scale})},n=function(e){e.key&&e.key.impliedNaturals&&(e.key.accidentals=e.key.accidentals.concat(e.key.impliedNaturals),delete e.key.impliedNaturals),t.lines[t.lineNum].staff[t.staffNum]={voices:[],clef:e.clef,key:e.key,workingClef:e.clef},void 0!==e.stafflines&&(t.lines[t.lineNum].staff[t.staffNum].clef.stafflines=e.stafflines,t.lines[t.lineNum].staff[t.staffNum].workingClef.stafflines=e.stafflines),e.staffscale&&(t.lines[t.lineNum].staff[t.staffNum].staffscale=e.staffscale),e.tripletfont&&(t.lines[t.lineNum].staff[t.staffNum].tripletfont=e.tripletfont),e.vocalfont&&(t.lines[t.lineNum].staff[t.staffNum].vocalfont=e.vocalfont),e.bracket&&(t.lines[t.lineNum].staff[t.staffNum].bracket=e.bracket),e.brace&&(t.lines[t.lineNum].staff[t.staffNum].brace=e.brace),e.connectBarLines&&(t.lines[t.lineNum].staff[t.staffNum].connectBarLines=e.connectBarLines),e.barNumber&&(t.lines[t.lineNum].staff[t.staffNum].barNumber=e.barNumber),i(e),e.part&&t.appendElement("part",e.part.startChar,e.part.endChar,{title:e.part.title}),void 0!==e.meter&&(t.lines[t.lineNum].staff[t.staffNum].meter=e.meter)};if(void 0===this.lines[this.lineNum])!function(e){t.lines[t.lineNum]={staff:[]},n(e)}(e);else if(void 0===this.lines[this.lineNum].staff)this.lineNum++,this.startNewLine(e);else if(void 0===this.lines[this.lineNum].staff[this.staffNum])n(e);else if(void 0===this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])i(e);else{if(!this.containsNotes(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]))return;this.lineNum++,this.startNewLine(e)}},this.setBarNumberImmediate=function(e){var t=this.getCurrentVoice();if(t&&t.length>0){var i=t[t.length-1];if("bar"!==i.el_type)return e-1;void 0!==i.barNumber&&(i.barNumber=e)}return e},this.hasBeginMusic=function(){for(var e=0;e<this.lines.length;e++)if(this.lines[e].staff)return!0;return!1},this.isFirstLine=function(e){for(var t=e-1;t>=0;t--)if(void 0!==this.lines[t].staff)return!1;return!0},this.getMeter=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff)for(var i=0;i<t.staff.length;i++){var n=t.staff[i].meter;if(n)return n}}return{type:"common_time"}},this.getMeterFraction=function(){var e=this.getMeter(),t=4,i=4;return e&&("specified"===e.type?(t=parseInt(e.value[0].num,10),i=parseInt(e.value[0].den,10)):"cut_time"===e.type?(t=2,i=2):"common_time"===e.type&&(t=4,i=4)),this.meter={num:t,den:i},this.meter},this.getCurrentVoice=function(){return void 0!==this.lines[this.lineNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]?this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]:null},this.setCurrentVoice=function(e,t){this.staffNum=e,this.voiceNum=t;for(var i=0;i<this.lines.length;i++)if(this.lines[i].staff&&(void 0===this.lines[i].staff[e]||void 0===this.lines[i].staff[e].voices[t]||!this.containsNotes(this.lines[i].staff[e].voices[t])))return void(this.lineNum=i);this.lineNum=i},this.addMetaText=function(e,t){void 0===this.metaText[e]?this.metaText[e]=t:this.metaText[e]+="\n"+t},this.addMetaTextArray=function(e,t){void 0===this.metaText[e]?this.metaText[e]=[t]:this.metaText[e].push(t)},this.addMetaTextObj=function(e,t){this.metaText[e]=t},this.addElementToEvents=function(e,t,i,r,a,s,o,c,l,h){if(t.hint)return{isTiedState:void 0,duration:0};var u=t.durationClass?t.durationClass:t.duration;if(t.abcelem.rest&&"spacer"===t.abcelem.rest.type&&(u=0),u>0){for(var d=[],f=0;f<t.elemset.length;f++)null!==t.elemset[f]&&d.push(t.elemset[f]);var p=t.startTie;if(void 0!==l)e["event"+l].elements.push(d),h&&(e["event"+i]||(e["event"+i]={type:"event",milliseconds:i,line:s,measureNumber:o,top:r,height:a,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),e["event"+i].measureStart=!0,h=!1),p||(l=void 0);else{if(e["event"+i]){if(e["event"+i].left?e["event"+i].left=Math.min(e["event"+i].left,t.x):e["event"+i].left=t.x,e["event"+i].elements.push(d),e["event"+i].startCharArray.push(t.abcelem.startChar),e["event"+i].endCharArray.push(t.abcelem.endChar),null===e["event"+i].startChar&&(e["event"+i].startChar=t.abcelem.startChar),null===e["event"+i].endChar&&(e["event"+i].endChar=t.abcelem.endChar),t.abcelem.midiPitches&&t.abcelem.midiPitches.length){e["event"+i].midiPitches||(e["event"+i].midiPitches=[]);for(f=0;f<t.abcelem.midiPitches.length;f++)e["event"+i].midiPitches.push(t.abcelem.midiPitches[f])}if(t.abcelem.midiGraceNotePitches&&t.abcelem.midiGraceNotePitches.length){e["event"+i].midiGraceNotePitches||(e["event"+i].midiGraceNotePitches=[]);for(var m=0;m<t.abcelem.midiGraceNotePitches.length;m++)e["event"+i].midiGraceNotePitches.push(t.abcelem.midiGraceNotePitches[m])}}else e["event"+i]={type:"event",milliseconds:i,line:s,measureNumber:o,top:r,height:a,left:t.x,width:t.w,elements:[d],startChar:t.abcelem.startChar,endChar:t.abcelem.endChar,startCharArray:[t.abcelem.startChar],endCharArray:[t.abcelem.endChar],midiPitches:t.abcelem.midiPitches?n.cloneArray(t.abcelem.midiPitches):[]},t.abcelem.midiGraceNotePitches&&(e["event"+i].midiGraceNotePitches=n.cloneArray(t.abcelem.midiGraceNotePitches));h&&(e["event"+i].measureStart=!0,h=!1),p&&(l=i)}}return{isTiedState:l,duration:u/c,nextIsBar:h||"bar"===t.type}},this.makeVoicesArray=function(){for(var e=[],t=0;t<this.engraver.staffgroups.length;t++)for(var i=this.engraver.staffgroups[t],n=i.staffs[0],r=n.absoluteY,s=r-n.top*a.STEP,o=i.staffs[i.staffs.length-1],c=(r=o.absoluteY)-o.bottom*a.STEP-s,l=i.voices,h=0;h<l.length;h++){var u=0,d=!1;e[h]||(e[h]=[]);for(var f=l[h].children,p=0;p<f.length;p++)e[h].push({top:s,height:c,line:t,measureNumber:u,elem:f[p]}),"bar"===f[p].type&&d&&u++,"note"!==f[p].type&&"rest"!==f[p].type||(d=!0)}return e},this.setupEvents=function(e,t,i){for(var n,r=[],a={},s=e,o=!0,c=this.makeVoicesArray(),l=0;l<c.length;l++)for(var h=s,u=Math.round(1e3*h),d=0,f=-1,p=c[l],m=0;m<p.length;m++){var g=p[m].elem;if("tempo"===g.abcelem.el_type){i=this.getBpm(g.abcelem);t=this.getBeatLength()*(i/60)}var v=this.addElementToEvents(a,g,u,p[m].top,p[m].height,p[m].line,p[m].measureNumber,t,n,o);if(n=v.isTiedState,o=v.nextIsBar,h+=v.duration,u=Math.round(1e3*h),"bar"===g.type){var b=g.abcelem.type,y="bar_right_repeat"===b||"bar_dbl_repeat"===b,w="1"===g.abcelem.startEnding,A="bar_left_repeat"===b||"bar_dbl_repeat"===b||"bar_right_repeat"===b;if(y){-1===f&&(f=m);for(var k=d;k<f;k++){var x=p[k].elem;n=(v=this.addElementToEvents(a,x,u,p[k].top,p[k].height,p[k].line,p[k].measureNumber,t,n,o)).isTiedState,o=v.nextIsBar,h+=v.duration,u=Math.round(1e3*h)}o=!0,f=-1}w&&(f=m),A&&(d=m)}}return function(e){for(var t,i,n,r,a=e.length-1;a>=0;a--){var s=e[a];"bar"===s.type?(s.top=n,s.nextTop=t,t=n,s.bottom=r,s.nextBottom=i,i=r):"event"===s.type&&(n=s.top,r=s.top+s.height)}}(r=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(e[i]);return t=t.sort((function(e,t){var i=e.milliseconds-t.milliseconds;return 0!==i?i:"bar"===e.type?-1:1}))}(a)),r.push({type:"end",milliseconds:u}),this.addUsefulCallbackInfo(r,i),r},this.addUsefulCallbackInfo=function(e,t){for(var i=this.millisecondsPerMeasure(t),n=0;n<e.length;n++){e[n].millisecondsPerMeasure=i}},this.getBpm=function(e){var t;if(e){t=e.bpm;var i=this.getBeatLength();t=t*(e.duration&&e.duration.length>0?e.duration[0]:i)/i}if(!t){t=180;var n=this.getMeterFraction();n&&8===n.den&&(t=120)}return t},this.setTiming=function(e,t){if(!e){var i=this.metaText?this.metaText.tempo:null;e=this.getBpm(i)}var n=this.getBeatLength(),r=e/60,a=this.getBarLength()/n*t/r;a&&(a-=this.getPickupLength()/n/r);var s=n*r;this.noteTimings=this.setupEvents(a,s,e)}}},function(e,t,i){var n=i(1),r=i(21),a=i(35),s=function(e,t){t=t||{},this.responsive=t.responsive,this.space=3*n.SPACE,this.scale=t.scale?parseFloat(t.scale):0,this.scale>.1||(this.scale=void 0),t.staffwidth?(this.staffwidthScreen=t.staffwidth,this.staffwidthPrint=t.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.editable=t.editable||!1,this.listeners=[],t.clickListener&&this.addSelectListener(t.clickListener),this.renderer=new a(e,t.regression,t.add_classes),this.renderer.setPaddingOverride(t),this.renderer.controller=this,this.reset()};function o(e,t,i,n,r,a,s){return e&&n/i<.66&&!t?null:Math.abs(i-n)<2?null:a>0?((r=(i-(n-a*r))/a)*s>50&&(r=50/s),r):null}s.prototype.reset=function(){this.selected=[],this.ingroup=!1,this.staffgroups=[],this.lastStaffGroupIndex=-1,this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset()},s.prototype.engraveABC=function(e,t){void 0===e[0]&&(e=[e]),this.reset();for(var i=0;i<e.length;i++)void 0===t&&(t=i),this.engraveTune(e[i],t);if(this.renderer.doRegression)return this.renderer.regressionLines.join("\n")},s.prototype.adjustNonScaledItems=function(e){this.width/=e,this.renderer.adjustNonScaledItems(e)},s.prototype.getMeasureWidths=function(e){this.reset(),this.renderer.lineNumber=null,this.renderer.newTune(e),this.engraver=new r(this.renderer,0,{bagpipes:e.formatting.bagpipes,flatbeams:e.formatting.flatbeams}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),e.formatting.staffwidth?this.width=1.33*e.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var t=e.formatting.scale?e.formatting.scale:this.scale;"resize"===this.responsive&&(t=void 0),void 0===t&&(t=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(t);var i={left:0,measureWidths:[],height:0,total:0};i.height=this.renderer.padding.top+this.renderer.spacing.music+this.renderer.padding.bottom+24;for(var a=!1,s=0;s<e.lines.length;s++){var o=e.lines[s];if(o.staff){if(o.staffGroup=this.engraver.createABCLine(o.staff,a?null:e.metaText.tempo),o.staffGroup.layout(0,this.renderer,!1),o.staffGroup.voices.length>0)for(var c=o.staffGroup.voices[0],l=!1,h=0,u=0;u<c.children.length;u++){var d=c.children[u];l||d.isClef||d.isKeySig||(l=!0,i.left=d.x,h=d.x),"bar"===d.type&&(i.measureWidths.push(d.x-h),i.total+=d.x-h,h=d.x)}a=!0,i.height+=o.staffGroup.calcHeight()*n.STEP}}return i},s.prototype.engraveTune=function(e,t){this.renderer.lineNumber=null,this.renderer.newTune(e),this.engraver=new r(this.renderer,t,{bagpipes:e.formatting.bagpipes,flatbeams:e.formatting.flatbeams}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),e.formatting.staffwidth?this.width=1.33*e.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var i,n,a=e.formatting.scale?e.formatting.scale:this.scale;"resize"===this.responsive&&(a=void 0),void 0===a&&(a=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(a);var s=!1;for(i=0;i<e.lines.length;i++)(n=e.lines[i]).staff&&(n.staffGroup=this.engraver.createABCLine(n.staff,s?null:e.metaText.tempo),s=!0);var o=this.width;for(i=0;i<e.lines.length;i++)(n=e.lines[i]).staff&&(this.setXSpacing(n.staffGroup,e.formatting,i===e.lines.length-1,!1),n.staffGroup.w>o&&(o=n.staffGroup.w));for(i=0;i<e.lines.length;i++)if((n=e.lines[i]).staffGroup&&n.staffGroup.voices){for(var c=0;c<n.staffGroup.voices.length;c++)n.staffGroup.voices[c].layoutBeams();n.staffGroup.setUpperAndLowerElements(this.renderer)}for(i=0;i<e.lines.length;i++)(n=e.lines[i]).staffGroup&&(n.staffGroup.height=n.staffGroup.calcHeight());this.renderer.topMargin(e),this.renderer.engraveTopText(this.width,e),this.renderer.addMusicPadding(),this.staffgroups=[],this.lastStaffGroupIndex=-1;for(var l=0;l<e.lines.length;l++)this.renderer.lineNumber=l,(n=e.lines[l]).staff?this.engraveStaffLine(n.staffGroup):n.subtitle&&0!==l?this.renderer.outputSubtitle(this.width,n.subtitle):void 0!==n.text?this.renderer.outputFreeText(n.text,n.vskip):void 0!==n.separator&&this.renderer.outputSeparator(n.separator);this.renderer.moveY(24),this.renderer.engraveExtraText(this.width,e),this.renderer.setPaperSize(o,a,this.responsive)},s.prototype.setXSpacing=function(e,t,i,n){for(var r=this.space,a=0;a<8;a++){var s=e.layout(r,this.renderer,n);if(r=o(i,!!t.stretchlast&&t.stretchlast,this.width+this.renderer.padding.left,e.w,r,s.spacingUnits,s.minSpace),n&&console.log("setXSpace",a,e.w,r,e.minspace),null===r)break}!function(e){for(var t=0;t<e.length;t++)for(var i=e[t],n=1;n<i.children.length-1;n++){var r=i.children[n];if(r.abcelem.rest&&("whole"===r.abcelem.rest.type||"multimeasure"===r.abcelem.rest.type)){var a=i.children[n-1],s=(i.children[n+1].x-a.x)/2+a.x;r.x=s-r.w/2;for(var o=0;o<r.children.length;o++)r.children[o].x=r.x}}}(e.voices)},s.prototype.engraveStaffLine=function(e){this.lastStaffGroupIndex>-1&&this.renderer.addStaffPadding(this.staffgroups[this.lastStaffGroupIndex],e),this.renderer.voiceNumber=null,e.draw(this.renderer);var t=e.height*n.STEP;this.staffgroups[this.staffgroups.length]=e,this.lastStaffGroupIndex=this.staffgroups.length-1,this.renderer.y+=t},s.prototype.notifySelect=function(e,t,i){this.clearSelection(),e.highlight&&(this.selected=[e],e.highlight());for(var n=e.abcelem||{},r=0;r<this.listeners.length;r++)this.listeners[r](n,t,i)},s.prototype.clearSelection=function(){for(var e=0;e<this.selected.length;e++)this.selected[e].unhighlight();this.selected=[]},s.prototype.addSelectListener=function(e){this.listeners[this.listeners.length]=e},s.prototype.rangeHighlight=function(e,t){this.clearSelection();for(var i=0;i<this.staffgroups.length;i++)for(var n=this.staffgroups[i].voices,r=0;r<n.length;r++)for(var a=n[r].children,s=0;s<a.length;s++){var o=a[s].abcelem.startChar,c=a[s].abcelem.endChar;(t>o&&e<c||t===e&&t===c)&&(this.selected[this.selected.length]=a[s],a[s].highlight())}},e.exports=s},function(e,t,i){var n,r=i(4),a=i(22),s=i(23),o=i(24),c=i(25),l=i(26),h=i(27),u=i(30),d=i(3),f=i(2),p=i(1),m=i(31),g=i(32),v=i(12),b=i(33),y=i(34),w=i(0);!function(){"use strict";var e=function(e){var t=0;return e.duration&&(t=e.duration),t},t=!1,i={rest:{0:"rests.whole",1:"rests.half",2:"rests.quarter",3:"rests.8th",4:"rests.16th",5:"rests.32nd",6:"rests.64th",7:"rests.128th",multi:"rests.multimeasure"},note:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter",7:"noteheads.quarter",nostem:"noteheads.quarter"},rhythm:{"-1":"noteheads.slash.whole",0:"noteheads.slash.whole",1:"noteheads.slash.whole",2:"noteheads.slash.quarter",3:"noteheads.slash.quarter",4:"noteheads.slash.quarter",5:"noteheads.slash.quarter",6:"noteheads.slash.quarter",7:"noteheads.slash.quarter",nostem:"noteheads.slash.nostem"},x:{"-1":"noteheads.indeterminate",0:"noteheads.indeterminate",1:"noteheads.indeterminate",2:"noteheads.indeterminate",3:"noteheads.indeterminate",4:"noteheads.indeterminate",5:"noteheads.indeterminate",6:"noteheads.indeterminate",7:"noteheads.indeterminate",nostem:"noteheads.indeterminate"},harmonic:{"-1":"noteheads.harmonic.quarter",0:"noteheads.harmonic.quarter",1:"noteheads.harmonic.quarter",2:"noteheads.harmonic.quarter",3:"noteheads.harmonic.quarter",4:"noteheads.harmonic.quarter",5:"noteheads.harmonic.quarter",6:"noteheads.harmonic.quarter",7:"noteheads.harmonic.quarter",nostem:"noteheads.harmonic.quarter"},uflags:{3:"flags.u8th",4:"flags.u16th",5:"flags.u32nd",6:"flags.u64th"},dflags:{3:"flags.d8th",4:"flags.d16th",5:"flags.d32nd",6:"flags.d64th"}};function A(e,t){var i=e[t];if("note"!==i.el_type||!i.startBeam||i.endBeam)return{count:1,elem:i};for(var n=[];t<e.length&&"note"===e[t].el_type&&(n.push(e[t]),!e[t].endBeam);)t++;return{count:n.length,elem:n}}function k(e){if(e.pitches){x(e);for(var t=0,i=0;i<e.pitches.length;i++)t+=e.pitches[i].verticalPos;e.averagepitch=t/e.pitches.length,e.minpitch=e.pitches[0].verticalPos,e.maxpitch=e.pitches[e.pitches.length-1].verticalPos}}(n=function(e,t,i){this.decoration=new h,this.renderer=e,this.tuneNumber=t,this.isBagpipes=i.bagpipes,this.flatBeams=i.flatbeams,this.reset()}).prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.tripletmultiplier=1,this.abcline=void 0,this.accidentalSlot=void 0,this.accidentalshiftx=void 0,this.dotshiftx=void 0,this.hasVocals=!1,this.minY=void 0,this.partstartelem=void 0,this.startlimitelem=void 0,this.stemdir=void 0},n.prototype.setStemHeight=function(e){this.stemHeight=e/p.STEP},n.prototype.getCurrentVoiceId=function(e,t){return"s"+e+"v"+t},n.prototype.pushCrossLineElems=function(e,t){this.slursbyvoice[this.getCurrentVoiceId(e,t)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(e,t)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(e,t)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(e,t)]=this.voiceScale},n.prototype.popCrossLineElems=function(e,t){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(e,t)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(e,t)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(e,t)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(e,t)],void 0===this.voiceScale&&(this.voiceScale=1)},n.prototype.containsLyrics=function(e){for(var t=0;t<e.length;t++)for(var i=0;i<e[t].voices.length;i++)for(var n=0;n<e[t].voices[i].length;n++){var r=e[t].voices[i][n];if(r.lyric)return void(r.positioning&&"below"!==r.positioning.vocalPosition||(this.hasVocals=!0))}},n.prototype.createABCLine=function(e,i){this.minY=2,this.containsLyrics(e);var n=new m;this.tempoSet=!1;for(var r=0;r<e.length;r++)t&&this.restoreState(),t=!1,this.createABCStaff(n,e[r],i,r);return n},n.prototype.createABCStaff=function(e,t,i,n){for(var r=0;r<t.voices.length;r++){var a=new y(r,t.voices.length);0===r?(a.barfrom="start"===t.connectBarLines||"continue"===t.connectBarLines,a.barto="continue"===t.connectBarLines||"end"===t.connectBarLines):a.duplicate=!0,t.title&&t.title[r]&&(a.header=t.title[r]);var h=o(t.clef,this.tuneNumber);h&&(0===r&&t.barNumber&&this.addMeasureNumber(t.barNumber,h),a.addChild(h));var u=c(t.key,this.tuneNumber);if(u&&(a.addChild(u),this.startlimitelem=u),t.meter){var d=l(t.meter,this.tuneNumber);a.addChild(d),this.startlimitelem=d}a.duplicate&&(a.children=[]);var f=t.clef.stafflines||0===t.clef.stafflines?t.clef.stafflines:5;e.addVoice(a,n,f);var p=1===f;this.createABCVoice(t.voices[r],i,n,r,p,a),e.setStaffLimits(a),"start"===t.brace?e.brace=new s(1,!0):"end"===t.brace&&e.brace?e.brace.increaseStavesIncluded():"continue"===t.brace&&e.brace&&e.brace.increaseStavesIncluded()}},n.prototype.createABCVoice=function(e,i,n,a,s,o){this.popCrossLineElems(n,a),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new u("",null,null),o.addOther(this.partstartelem));var c=o.voicetotal<2?-1:o.voicenumber;for(var l in this.slurs)this.slurs.hasOwnProperty(l)&&(this.slurs[l]=new v({force:this.slurs[l].force,voiceNumber:c,stemDir:this.slurs[l].stemDir}),t&&this.slurs[l].setHint(),o.addOther(this.slurs[l]));for(var h=0;h<this.ties.length;h++)this.ties[h]=new v({force:this.ties[h].force,stemDir:this.ties[h].stemDir,voiceNumber:c}),t&&this.ties[h].setHint(),o.addOther(this.ties[h]);for(var d=0;d<this.abcline.length;d++)k(this.abcline[d]),this.minY=Math.min(this.abcline[d].minpitch,this.minY);for(var f=0===n,p=0;p<this.abcline.length;){var m=A(this.abcline,p),b=this.createABCElement(f,s,o,m.elem);if(b)for(h=0;h<b.length;h++){if(!this.tempoSet&&i&&!i.suppress){this.tempoSet=!0;var y=new r(m.elem,0,0,"tempo",this.tuneNumber,{});y.addChild(new g(i,this.tuneNumber,N)),o.addChild(y)}o.addChild(b[h])}p+=m.count}this.pushCrossLineElems(n,a)},n.prototype.saveState=function(){this.tiesSave=w.cloneArray(this.ties),this.slursSave=w.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=w.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=w.cloneHashOfArrayOfHash(this.tiesbyvoice)},n.prototype.restoreState=function(){this.ties=w.cloneArray(this.tiesSave),this.slurs=w.cloneHashOfHash(this.slursSave),this.slursbyvoice=w.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=w.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)},n.prototype.createABCElement=function(e,i,n,a){var s=[];switch(a.el_type){case void 0:s=this.createBeam(i,n,a);break;case"note":s[0]=this.createNote(a,!1,i,n),this.triplet&&this.triplet.isClosed()&&(n.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":s[0]=this.createBarLine(n,a,e),n.duplicate&&s.length>0&&(s[0].invisible=!0);break;case"meter":s[0]=l(a,this.tuneNumber),this.startlimitelem=s[0],n.duplicate&&s.length>0&&(s[0].invisible=!0);break;case"clef":if(s[0]=o(a,this.tuneNumber),!s[0])return null;n.duplicate&&s.length>0&&(s[0].invisible=!0);break;case"key":var h=c(a,this.tuneNumber);h&&(s[0]=h,this.startlimitelem=s[0]),n.duplicate&&s.length>0&&(s[0].invisible=!0);break;case"stem":this.stemdir=a.direction;break;case"part":var u=new r(a,0,0,"part",this.tuneNumber),d=this.renderer.getTextSize(a.title,"partsfont","part");u.addChild(new f(a.title,0,0,void 0,{type:"part",height:d.height/p.STEP})),s[0]=u;break;case"tempo":var m=new r(a,0,0,"tempo",this.tuneNumber);m.addChild(new g(a,this.tuneNumber,N)),s[0]=m;break;case"style":"normal"===a.head?delete this.style:this.style=a.head;break;case"hint":t=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=a.size;break;default:var v=new r(a,0,0,"unsupported",this.tuneNumber);v.addChild(new f("element type "+a.el_type,0,0,void 0,{type:"debug"})),s[0]=v}return s},n.prototype.calcBeamDir=function(e,t,i){if(this.stemdir)return this.stemdir;for(var n=new a(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams),r=0;r<i.length;r++)n.add({abcelem:i[r]});return n.calcDir()?"up":"down"},n.prototype.createBeam=function(e,i,n){var r=[],s=this.calcBeamDir(e,i,n),o=new a(this.stemHeight*this.voiceScale,s,this.flatBeams);t&&o.setHint();var c=this.stemdir;this.stemdir=s;for(var l=0;l<n.length;l++){var h=n[l],u=this.createNote(h,!0,e,i);r.push(u),o.add(u),this.triplet&&this.triplet.isClosed()&&(i.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return this.stemdir=c,i.addBeam(o),r};var x=function(e){var t;do{t=!0;for(var i=0;i<e.pitches.length-1;i++)if(e.pitches[i].pitch>e.pitches[i+1].pitch){t=!1;var n=e.pitches[i];e.pitches[i]=e.pitches[i+1],e.pitches[i+1]=n}}while(!t)},T=function(e,t,i,n,r,a,s,o,c){for(var l=i;l>11;l--)l%2!=0||n||e.addChild(new f(null,o,(r+4)*c,l,{type:"ledger"}));for(l=t;l<1;l++)l%2!=0||n||e.addChild(new f(null,o,(r+4)*c,l,{type:"ledger"}));for(l=0;l<a.length;l++){var h=r;"down"===s&&(h=-h),e.addChild(new f(null,h+o,(r+4)*c,a[l],{type:"ledger"}))}};function S(e,t){for(var i=0;i<e.length;i++)if(JSON.stringify(e[i])===JSON.stringify(t))return;e.push(t)}n.prototype.addGraceNotes=function(e,n,r,s,o,c,l){var h,u=null;e.gracenotes.length>1&&(u=new a(.7*o,"grace",c),t&&u.setHint(),u.mainNote=r);var p,m=[];for(p=e.gracenotes.length-1;p>=0;p--)l+=10,m[p]=l,e.gracenotes[p].accidental&&(l+=7);for(p=0;p<e.gracenotes.length;p++){var g=e.gracenotes[p].verticalPos;h=u?null:i.uflags[c?5:3];var b=N(r,"noteheads.quarter",e.gracenotes[p],"up",-m[p],-m[p],h,0,0,.6*this.voiceScale,[],!1);b.notehead.highestVert=b.notehead.pitch+.7*o;var y=b.notehead;if(this.addSlursAndTies(r,e.gracenotes[p],y,n,"up",!0),r.addExtra(y),e.gracenotes[p].acciaccatura){var w=e.gracenotes[p].verticalPos+4.2,A=u?5:6;r.addRight(new f("flags.ugrace",-m[p]+A,0,w,{scalex:.6,scaley:.6}))}if(u){var k=e.gracenotes[p].duration/2;c&&(k/=2);var x={heads:[y],abcelem:{averagepitch:g,minpitch:g,maxpitch:g,duration:k}};u.add(x)}else{var S=g+1/3*.6,M=g+4.2,I=y.dx+y.w;r.addExtra(new f(null,I,0,S,{type:"stem",pitch2:M,linewidth:-.6}))}if(T(r,g,g,!1,d.getSymbolWidth("noteheads.quarter"),[],!0,y.dx-1,.6),0===p&&!c&&(!e.rest||"spacer"!==e.rest.type&&"invisible"!==e.rest.type)){1===e.gracenotes.length&&(y.pitch,s.pitch);n.addOther(new v({anchor1:y,anchor2:s,isGrace:!0}))}}return u&&n.addBeam(u),l},n.prototype.addNoteToAbcElement=function(t,n,r,a,s,o,c,l,h){var u,p,m,g,v,b=0,y=0,w=0,A=[],k=[],x=0,T=n.averagepitch>=6?"down":"up";for(a&&(T=a),(s=n.style?n.style:s)&&"normal"!==s||(s="note"),(g=o?i[s].nostem:i[s][-c])||console.log("noteSymbol:",s,c,o),v="down"===T?n.pitches.length-2:1;"down"===T?v>=0:v<n.pitches.length;v="down"===T?v-1:v+1){var M=n.pitches["down"===T?v+1:v-1],I=n.pitches[v],C="down"===T?M.pitch-I.pitch:I.pitch-M.pitch;C<=1&&!M.printer_shift&&(I.printer_shift=C?"different":"same",(I.verticalPos>11||I.verticalPos<1)&&A.push(I.verticalPos-I.verticalPos%2),"down"===T?y=d.getSymbolWidth(g)+2:b=d.getSymbolWidth(g)+2)}var E=n.pitches.length;for(v=0;v<n.pitches.length;v++){var _,B;if(!l)_="down"===T&&0!==v||"up"===T&&v!==E-1?null:i["down"===T?"dflags":"uflags"][-c];if(B=n.pitches[v].style?i[n.pitches[v].style][-c]:g,n.pitches[v].highestVert=n.pitches[v].verticalPos,("up"===a||"up"===T)&&0===v||("down"===a||"down"===T)&&v===E-1){if((n.startSlur||1===E)&&(n.pitches[v].highestVert=n.pitches[E-1].verticalPos,e(n)<1&&("up"===a||"up"===T)&&(n.pitches[v].highestVert+=6)),n.startSlur)for(n.pitches[v].startSlur||(n.pitches[v].startSlur=[]),m=0;m<n.startSlur.length;m++)S(n.pitches[v].startSlur,n.startSlur[m]);if(n.endSlur)for(n.pitches[v].highestVert=n.pitches[E-1].verticalPos,e(n)<1&&("up"===a||"up"===T)&&(n.pitches[v].highestVert+=6),n.pitches[v].endSlur||(n.pitches[v].endSlur=[]),m=0;m<n.endSlur.length;m++)S(n.pitches[v].endSlur,n.endSlur[m])}var P=!l&&c<=-1,D=N(t,B,n.pitches[v],T,0,-y,_,r,b,this.voiceScale,k,!a);x=Math.max(d.getSymbolWidth(B),x),t.extraw-=D.extraLeft,(u=D.notehead)&&(this.addSlursAndTies(t,n.pitches[v],u,h,P?T:null,!1),n.gracenotes&&n.gracenotes.length>0&&(u.bottom=u.bottom-1),t.addHead(u)),y+=D.accidentalshiftx,w=Math.max(w,D.dotshiftx)}if(P){var L=7*this.voiceScale,H="down"===T?n.minpitch-L:n.minpitch+1/3;H>6&&!a&&(H=6);var V="down"===T?n.maxpitch-1/3:n.maxpitch+L;V<6&&!a&&(V=6);var z="down"===T||0===t.heads.length?0:t.heads[0].w,O="down"===T?1:-1;"noteheads.slash.quarter"===u.c&&("down"===T?V-=1:H+=1),t.addExtra(new f(null,z,0,H,{type:"stem",pitch2:V,linewidth:O})),p=Math.min(H,V)}return{noteHead:u,roomTaken:y,roomTakenRight:w,min:p,additionalLedgers:A,dir:T,symbolWidth:x}},n.prototype.addLyric=function(e,t){var i="";w.each(t.lyric,(function(e){var t=" "===e.divider?"":e.divider;i+=e.syllable+t+"\n"}));var n=this.renderer.getTextSize(i,"vocalfont","lyric"),r=t.positioning?t.positioning.vocalPosition:"below";e.addCentered(new f(i,0,n.width,void 0,{type:"lyric",position:r,height:n.height/p.STEP}))},n.prototype.addChord=function(e,t,i,n){for(var r=0;r<t.chord.length;r++){var a,s=0,o=this.renderer.getTextSize(t.chord[r].name,"annotationfont","annotation"),c=o.width,l=o.height/p.STEP;switch(t.chord[r].position){case"left":s=-(i+=c+7),a=t.averagepitch,e.addExtra(new f(t.chord[r].name,s,c+4,a,{type:"text",height:l}));break;case"right":s=n+=4,a=t.averagepitch,e.addRight(new f(t.chord[r].name,s,c+4,a,{type:"text",height:l}));break;case"below":e.addRight(new f(t.chord[r].name,0,c+8,void 0,{type:"text",position:"below",height:l}));break;case"above":e.addRight(new f(t.chord[r].name,0,c+8,void 0,{type:"text",height:l}));break;default:if(t.chord[r].rel_position){var h=t.chord[r].rel_position.y+3*p.STEP;e.addChild(new f(t.chord[r].name,s+t.chord[r].rel_position.x,0,t.minpitch+h/p.STEP,{type:"text",height:l}))}else{var u="above";t.positioning&&t.positioning.chordPosition&&(u=t.positioning.chordPosition),l=(o=this.renderer.getTextSize(t.chord[r].name,"gchordfont","chord")).height/p.STEP,c=o.width,e.addCentered(new f(t.chord[r].name,s,c,void 0,{type:"chord",position:u,height:l}))}}}return{roomTaken:i,roomTakenRight:n}},n.prototype.createNote=function(n,a,s,o){var c,l=null,h=0,u=0,p=0,m=[],g=e(n),v=!1;0===g&&(v=!0,g=.25,a=!0);for(var y=Math.floor(Math.log(g)/Math.log(2)),w=0,A=Math.pow(2,y),k=A/2;A<g;w++,A+=k,k/=2);n.startTriplet&&(this.tripletmultiplier=n.tripletMultiplier);var x=g*this.tripletmultiplier;n.rest&&"multimeasure"===n.rest.type&&(x=1);var S=n.rest?"rest":"note",M=new r(n,x,1,S,this.tuneNumber,{durationClassOveride:n.duration*this.tripletmultiplier});if(t&&M.setHint(),n.rest){var I=function(e,t,n,r,a,s,o,c,l){var h,u,p,m,g=7;switch(a&&("down"===s&&(g=3),"up"===s&&(g=11)),o&&(g=n<.5?7:n<1?7:5),t.rest.type){case"whole":h=i.rest[0],t.averagepitch=g,t.minpitch=g,t.maxpitch=g,r=0;break;case"rest":h="rhythm"===t.style?i.rhythm[-c]:i.rest[-c],t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"invisible":case"spacer":h="",t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"multimeasure":h=i.rest.multi,t.averagepitch=g,t.minpitch=g,t.maxpitch=g,r=0;var v=d.getSymbolWidth(h);e.addHead(new f(h,-v,2*v,7));var b=new f(""+t.duration,0,v,16,{type:"multimeasure-text"});e.addExtra(b)}if("multimeasure"!==t.rest.type){var y=N(e,h,{verticalPos:g},null,0,0,null,r,0,l,[],!1);(u=y.notehead)&&(e.addHead(u),p=y.accidentalshiftx,m=y.dotshiftx)}return{noteHead:u,roomTaken:p,roomTakenRight:m}}(M,n,g,w,o.voicetotal>1,this.stemdir,s,y,this.voiceScale);l=I.noteHead,h=I.roomTaken,u=I.roomTakenRight}else{var C=this.addNoteToAbcElement(M,n,w,this.stemdir,this.style,v,y,a,o);void 0!==C.min&&(this.minY=Math.min(C.min,this.minY)),l=C.noteHead,h=C.roomTaken,u=C.roomTakenRight,m=C.additionalLedgers,c=C.dir,p=C.symbolWidth}if(void 0!==n.lyric&&this.addLyric(M,n),void 0!==n.gracenotes&&(h+=this.addGraceNotes(n,o,M,l,this.stemHeight*this.voiceScale,this.isBagpipes,h)),n.decoration&&this.decoration.createDecoration(o,n.decoration,M.top,l?l.w:0,M,h,c,M.bottom,n.positioning,this.hasVocals),n.barNumber&&M.addChild(new f(n.barNumber,-10,0,0,{type:"barNumber"})),T(M,n.minpitch,n.maxpitch,n.rest,p,m,c,-2,1),void 0!==n.chord){var E=this.addChord(M,n,h,u);h=E.roomTaken,u=E.roomTakenRight}return n.startTriplet&&(this.triplet=new b(n.startTriplet,l,{flatBeams:this.flatBeams})),n.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(l),!this.triplet||n.startTriplet||n.endTriplet||this.triplet.middleNote(l),M};var N=function(e,t,i,n,r,a,s,o,c,l,h,u){var p,m=i.verticalPos,g=0,v=0,b=0;if(void 0===t)e.addChild(new f("pitch is undefined",0,0,0,{type:"debug"}));else if(""===t)p=new f(null,0,0,m);else{var y=r;if(i.printer_shift){var w="same"===i.printer_shift?1:0;y="down"===n?-d.getSymbolWidth(t)*l+w:d.getSymbolWidth(t)*l-w}var A={scalex:l,scaley:l,thickness:d.symbolHeightInPitches(t)*l};if((p=new f(t,y,d.getSymbolWidth(t)*l,m,A)).stemDir=n,s){var k=m+("down"===n?-7:7)*l;u&&("down"===n&&k>6&&(k=6),"up"===n&&k<6&&(k=6));var x="down"===n?r:r+p.w-.6;e.addRight(new f(s,x,d.getSymbolWidth(s)*l,k,{scalex:l,scaley:l}))}for(v=p.w+c-2+5*o;o>0;o--){var T=1-Math.abs(m)%2;e.addRight(new f("dots.dot",p.w+c-2+5*o,d.getSymbolWidth("dots.dot"),m+T))}}if(p&&(p.highestVert=i.highestVert),i.accidental){var S;switch(i.accidental){case"quartersharp":S="accidentals.halfsharp";break;case"dblsharp":S="accidentals.dblsharp";break;case"sharp":S="accidentals.sharp";break;case"quarterflat":S="accidentals.halfflat";break;case"flat":S="accidentals.flat";break;case"dblflat":S="accidentals.dblflat";break;case"natural":S="accidentals.nat"}for(var N=!1,M=a,I=0;I<h.length;I++)if(m-h[I][0]>=6){h[I][0]=m,M=h[I][1],N=!0;break}!1===N&&(M-=d.getSymbolWidth(S)*l+2,h.push([m,M]),g=d.getSymbolWidth(S)*l+2),e.addExtra(new f(S,M,d.getSymbolWidth(S),m,{scalex:l,scaley:l})),b=d.getSymbolWidth(S)/2}return{notehead:p,accidentalshiftx:g,dotshiftx:v,extraLeft:b}};n.prototype.addSlursAndTies=function(e,i,n,r,a,s){if(i.endTie&&this.ties.length>0){for(var o=!1,c=0;c<this.ties.length;c++)if(this.ties[c].anchor1&&this.ties[c].anchor1.pitch===n.pitch){this.ties[c].setEndAnchor(n),this.ties.splice(c,1),o=!0;break}o||(this.ties[0].setEndAnchor(n),this.ties.splice(0,1))}var l=r.voicetotal<2?-1:r.voicenumber;if(i.startTie){var h=new v({anchor1:n,force:"down"===this.stemdir||"up"===this.stemdir,stemDir:this.stemdir,isGrace:s,voiceNumber:l});t&&h.setHint(),this.ties[this.ties.length]=h,r.addOther(h),e.startTie=!0}if(i.endSlur)for(var u=0;u<i.endSlur.length;u++){var d=i.endSlur[u];this.slurs[d]?((p=this.slurs[d]).setEndAnchor(n),delete this.slurs[d]):(p=new v({anchor2:n,stemDir:this.stemdir,voiceNumber:l}),t&&p.setHint(),r.addOther(p)),this.startlimitelem&&p.setStartX(this.startlimitelem)}else if(!s)for(var f in this.slurs)this.slurs.hasOwnProperty(f)&&this.slurs[f].addInternalNote(n);if(i.startSlur)for(u=0;u<i.startSlur.length;u++){d=i.startSlur[u].label;var p=new v({anchor1:n,stemDir:this.stemdir,voiceNumber:l});t&&p.setHint(),this.slurs[d]=p,r.addOther(p)}},n.prototype.addMeasureNumber=function(e,t){var i=this.renderer.getTextSize(e,"measurefont","bar-number");t.addChild(new f(e,0,0,11+i.height/p.STEP,{type:"barNumber"}))},n.prototype.createBarLine=function(e,t,i){var n=new r(t,0,10,"bar",this.tuneNumber),a=null,s=0;t.barNumber&&this.addMeasureNumber(t.barNumber,n);var o="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type,c="bar_left_repeat"!==t.type&&"bar_thick_thin"!==t.type&&"bar_invisible"!==t.type,l="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type||"bar_left_repeat"===t.type||"bar_thin_thick"===t.type||"bar_thick_thin"===t.type,h="bar_left_repeat"===t.type||"bar_thick_thin"===t.type||"bar_thin_thin"===t.type||"bar_dbl_repeat"===t.type,d="bar_left_repeat"===t.type||"bar_dbl_repeat"===t.type;if(o||d){for(var p in this.slurs)this.slurs.hasOwnProperty(p)&&this.slurs[p].setEndX(n);this.startlimitelem=n}if(o&&(n.addRight(new f("dots.dot",s,1,7)),n.addRight(new f("dots.dot",s,1,5)),s+=6),c&&(a=new f(null,s,1,2,{type:"bar",pitch2:10,linewidth:.6}),n.addRight(a)),"bar_invisible"===t.type&&(a=new f(null,s,1,2,{type:"none",pitch2:10,linewidth:.6}),n.addRight(a)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,l?3:1,n,0,"down",2,t.positioning,this.hasVocals),l&&(a=new f(null,s+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),n.addRight(a),s+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=a,this.partstartelem=null),h&&(a=new f(null,s+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),n.addRight(a)),d&&(s+=3,n.addRight(new f("dots.dot",s,1,7)),n.addRight(new f("dots.dot",s,1,5))),t.startEnding&&i){var m=this.renderer.getTextSize(t.startEnding,"repeatfont","").width;n.minspacing+=m+10,this.partstartelem=new u(t.startEnding,a,null),e.addOther(this.partstartelem)}return n.extraw-=5,n}}(),e.exports=n},function(e,t,i){i(4);var n,r=i(2),a=i(1),s=function(e){return void 0===e?0:Math.floor(Math.log(e)/Math.log(2))};!function(){"use strict";(n=function(e,t,i){this.isflat=i,this.isgrace=t&&"grace"===t,this.forceup=this.isgrace||t&&"up"===t,this.forcedown=t&&"down"===t,this.elems=[],this.total=0,this.allrests=!0,this.stemHeight=e,this.beams=[]}).prototype.setHint=function(){this.hint=!0},n.prototype.add=function(e){var t=e.abcelem.averagepitch;void 0!==t&&(this.allrests=this.allrests&&e.abcelem.rest,e.beam=this,this.elems.push(e),this.total+=t,(void 0===this.min||e.abcelem.minpitch<this.min)&&(this.min=e.abcelem.minpitch),(void 0===this.max||e.abcelem.maxpitch>this.max)&&(this.max=e.abcelem.maxpitch))};function e(e,t,i,n){if(!e.children)return n;for(var r=0;r<e.children.length;r++){var a=e.children[r];t&&void 0!==a.top&&"flags.ugrace"===a.c?n=Math.max(n,a.top-i):t||void 0===a.bottom||"flags.ugrace"!==a.c||(n=Math.max(n,i-a.bottom+7))}return n}function t(e,t){return t?e/t:0}function i(e,t,i,n,r){return t+(n-t)/(i-e)*(r-e)}function o(e,t,i,n,r,a,s){var o="beam-elem";s&&(o+=" abcjs-hint");var c="M"+t+" "+(i=e.calcY(i))+" L"+n+" "+(r=e.calcY(r))+"L"+n+" "+(r+a)+" L"+t+" "+(i+a)+"z";e.printPath({path:c,stroke:"none",fill:"#000000",class:e.addClasses(o)})}n.prototype.calcDir=function(){return!!this.forceup||!this.forcedown&&t(this.total,this.elems.length)<6},n.prototype.layout=function(){if(0!==this.elems.length&&!this.allrests){this.stemsUp=this.calcDir();var n=function(e,t){var i=e?a.STEP:-a.STEP;t&&(i*=.4);return i}(this.stemsUp,this.isgrace),o=this.elems[0],c=this.elems[this.elems.length-1],l=0,h=this.stemsUp?o.abcelem.maxpitch:o.abcelem.minpitch;l=e(o,this.stemsUp,h,l),l=e(c,this.stemsUp,h,l),l=Math.max(this.stemHeight,l+3);var u=function(e,i,n,r,a,s,o,c,l,h){var u=t(e,i),d=n-2,f=n-2,p=Math.round(r?Math.max(u+d,l+f):Math.min(u-d,c-f)),m=function(e,t,i,n){if(n)return 0;var r=e-t,a=i/2;r>a&&(r=a);r<-a&&(r=-a);return r}(a,s,i,o),g=p+Math.floor(m/2),v=p+Math.floor(-m/2);h||(r&&p<6?(g=6,v=6):!r&&p>6&&(g=6,v=6));return[g,v]}(this.total,this.elems.length,l,this.stemsUp,o.abcelem.averagepitch,c.abcelem.averagepitch,this.isflat,this.min,this.max,this.isgrace),d=function(e,t,i){var n=t.heads[e?0:t.heads.length-1],r=i.heads[e?0:i.heads.length-1],a=n.x;e&&(a+=n.w-.6);var s=r.x;e&&(s+=r.w);return[a,s]}(this.stemsUp,o,c);this.beams.push({startX:d[0],endX:d[1],startY:u[0],endY:u[1],dy:n});for(var f=function(e,t,n,r,a){for(var o=[],c=[],l=0;l<e.length;l++){var h=e[l];if(!h.abcelem.rest){var u=h.heads[t?0:h.heads.length-1],d=u.x+(t?u.w:0),f=i(n.startX,n.startY,n.endX,n.endY,d),p=t?-1.5:1.5;r&&(p=2*p/3);var m=h.abcelem.duration;0===m&&(m=.25);for(var g=s(m);g<-3;g++)c[-4-g]?c[-4-g].single=!1:c[-4-g]={x:d+(t?-.6:0),y:f+p*(-4-g+1),durlog:g,single:!0};for(var v=c.length-1;v>=0;v--)if(l===e.length-1||s(e[l+1].abcelem.duration)>-v-4){var b=d,y=f+p*(v+1);c[v].single&&(b=0===l?d+5:d-5,y=i(n.startX,n.startY,n.endX,n.endY,b)+p*(v+1)),o.push({startX:c[v].x,endX:b,startY:c[v].y,endY:y,dy:a}),c=c.slice(0,v)}}}return o}(this.elems,this.stemsUp,this.beams[0],this.isgrace,n),p=0;p<f.length;p++)this.beams.push(f[p]);!function(e,t,n,s,o){for(var c=0;c<e.length;c++){var l=e[c];if(!l.abcelem.rest){var h=!l.addExtra,u=h?o:l,d=l.heads[t?0:l.heads.length-1],f=d.pitch+(t?.2:-.2),p=t?d.w:0,m=d.x+p,g=i(n.startX,n.startY,n.endX,n.endY,m),v=t?-.6:.6;t||(g-=s/2/a.STEP),h&&(p+=l.heads[0].dx),"noteheads.slash.quarter"===d.c&&(t?f+=1:f-=1);var b=new r(null,p,0,f,{type:"stem",pitch2:g,linewidth:v});b.setX(u.x),u.addExtra(b)}}}(this.elems,this.stemsUp,this.beams[0],n,this.mainNote)}},n.prototype.isAbove=function(){return this.stemsUp},n.prototype.heightAtMidpoint=function(e,t){if(0===this.beams.length)return 0;var n=this.beams[0],r=e+(t-e)/2;return i(n.startX,n.startY,n.endX,n.endY,r)},n.prototype.yAtNote=function(e){var t=this.beams[0];return i(t.startX,t.startY,t.endX,t.endY,e.x)},n.prototype.xAtMidpoint=function(e,t){return e+(t-e)/2},n.prototype.draw=function(e){if(0!==this.beams.length){e.beginGroup();for(var t=0;t<this.beams.length;t++){var i=this.beams[t];o(e,i.startX,i.startY,i.endX,i.endY,i.dy,this.hint)}e.endGroup("beam-elem")}}}(),e.exports=n},function(e,t){var i=function(){this.length=1};i.prototype.increaseStavesIncluded=function(){this.length++},i.prototype.setLocation=function(e){this.x=e},i.prototype.getWidth=function(){return 10},i.prototype.layout=function(e,t,i){this.startY=t,this.endY=i},i.prototype.draw=function(e,t,i){this.layout(e,t,i),e.drawBrace(this.x,this.startY,this.endY)},e.exports=i},function(e,t,i){var n,r=i(4),a=i(3),s=i(2);!function(){"use strict";n=function(e,t){var i,n=0,o=new r(e,0,10,"staff-extra",t);switch(o.isClef=!0,e.type){case"treble":i="clefs.G";break;case"tenor":case"alto":i="clefs.C";break;case"bass":i="clefs.F";break;case"treble+8":i="clefs.G",n=1;break;case"tenor+8":i="clefs.C",n=1;break;case"bass+8":i="clefs.F",n=1;break;case"alto+8":i="clefs.C",n=1;break;case"treble-8":i="clefs.G",n=-1;break;case"tenor-8":i="clefs.C",n=-1;break;case"bass-8":i="clefs.F",n=-1;break;case"alto-8":i="clefs.C",n=-1;break;case"none":return null;case"perc":i="clefs.perc";break;default:o.addChild(new s("clef="+e.type,0,0,void 0,{type:"debug"}))}if(i&&(o.addRight(new s(i,5,a.getSymbolWidth(i),e.clefPos)),"clefs.G"===i?(o.top=13,o.bottom=-1):(o.top=10,o.bottom=2),0!==n)){var c=(a.getSymbolWidth(i)-a.getSymbolWidth("8")*(2/3))/2;o.addRight(new s("8",5+c,a.getSymbolWidth("8")*(2/3),n>0?o.top+3:o.bottom-1,{scalex:2/3,scaley:2/3})),o.top+=2}return o}}(),e.exports=n},function(e,t,i){var n,r=i(4),a=i(3),s=i(2),o=i(0);!function(){"use strict";n=function(e,t){if(!e.accidentals||0===e.accidentals.length)return null;var i=new r(e,0,10,"staff-extra",t);i.isKeySig=!0;var n=0;return o.each(e.accidentals,(function(e){var t="sharp"===e.acc?"accidentals.sharp":"natural"===e.acc?"accidentals.nat":"accidentals.flat";i.addRight(new s(t,n,a.getSymbolWidth(t),e.verticalPos,{thickness:a.symbolHeightInPitches(t)})),n+=a.getSymbolWidth(t)+2}),this),i}}(),e.exports=n},function(e,t,i){var n,r=i(4),a=i(3),s=i(2);!function(){"use strict";n=function(e,t){var i=new r(e,0,10,"staff-extra",t);if("specified"===e.type)for(var n=0,o=0;o<e.value.length;o++)if(0!==o&&(i.addRight(new s("+",n+1,a.getSymbolWidth("+"),6,{thickness:a.symbolHeightInPitches("+")})),n+=a.getSymbolWidth("+")+2),e.value[o].den){for(var c=0,l=0;l<e.value[o].num.length;l++)c+=a.getSymbolWidth(e.value[o].num.charAt(l));var h=0;for(l=0;l<e.value[o].num.length;l++)h+=a.getSymbolWidth(e.value[o].den.charAt(l));var u=Math.max(c,h);i.addRight(new s(e.value[o].num,n+(u-c)/2,c,8,{thickness:a.symbolHeightInPitches(e.value[o].num.charAt(0))})),i.addRight(new s(e.value[o].den,n+(u-h)/2,h,4,{thickness:a.symbolHeightInPitches(e.value[o].den.charAt(0))})),n+=u}else{for(var d=0,f=0;f<e.value[o].num.length;f++)d+=a.getSymbolWidth(e.value[o].num.charAt(f));i.addRight(new s(e.value[o].num,n,d,6,{thickness:a.symbolHeightInPitches(e.value[o].num.charAt(0))})),n+=d}else"common_time"===e.type?i.addRight(new s("timesig.common",0,a.getSymbolWidth("timesig.common"),6,{thickness:a.symbolHeightInPitches("timesig.common")})):"cut_time"===e.type?i.addRight(new s("timesig.cut",0,a.getSymbolWidth("timesig.cut"),6,{thickness:a.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===e.type?i.addRight(new s("timesig.imperfectum",0,a.getSymbolWidth("timesig.imperfectum"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===e.type?i.addRight(new s("timesig.imperfectum2",0,a.getSymbolWidth("timesig.imperfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===e.type?i.addRight(new s("timesig.perfectum",0,a.getSymbolWidth("timesig.perfectum"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===e.type?i.addRight(new s("timesig.perfectum2",0,a.getSymbolWidth("timesig.perfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",e);return i}}(),e.exports=n},function(e,t,i){var n,r=i(28),a=i(29),s=i(3),o=i(2),c=i(12);!function(){"use strict";var e=function(e,t,i,n,r){function a(e,t){var a="down"===r?function(){if(0===n.heads.length)return 2;for(var e=n.heads[0].pitch,t=1;t<n.heads.length;t++)e=Math.min(e,n.heads[t].pitch);return e}()+1:function(){if(0===n.heads.length)return 10;for(var e=n.heads[0].pitch,t=1;t<n.heads.length;t++)e=Math.max(e,n.heads[t].pitch);return e}()+9;"down"!==r&&1===t&&a--;var c=i/2;c+="down"===r?-5:3;for(var l=0;l<t;l++)a-=1,n.addChild(new o(e,c,s.getSymbolWidth(e),a))}for(var c=0;c<e.length;c++)switch(e[c]){case"/":a("flags.ugrace",1);break;case"//":a("flags.ugrace",2);break;case"///":a("flags.ugrace",3);break;case"////":a("flags.ugrace",4)}};(n=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0}).prototype.dynamicDecoration=function(e,t,i,n){for(var r,s,o=0;o<t.length;o++)switch(t[o]){case"diminuendo(":this.startDiminuendoX=i,r=void 0;break;case"diminuendo)":r={start:this.startDiminuendoX,stop:i},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=i,s=void 0;break;case"crescendo)":s={start:this.startCrescendoX,stop:i},this.startCrescendoX=void 0}r&&e.addOther(new a(r.start,r.stop,">",n)),s&&e.addOther(new a(s.start,s.stop,"<",n))},n.prototype.createDecoration=function(t,i,n,a,l,h,u,d,f,p){f||(f={ornamentPosition:"above",volumePosition:p?"above":"below",dynamicPosition:p?"above":"below"}),function(e,t,i,n){for(var a=0;a<t.length;a++)switch(t[a]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var s=new r(i,t[a],n);e.addOther(s)}}(t,i,l,f.volumePosition),this.dynamicDecoration(t,i,l,f.dynamicPosition),e(i,0,a,l,u);var m=function(e,t,i,n,r,a,l,h){for(var u,d=0;d<t.length;d++){if("staccato"===t[d]||"tenuto"===t[d]||"accent"===t[d]){var f="scripts."+t[d];if("accent"===t[d]&&(f="scripts.sforzato"),u=void 0===u?"down"===l?i+2:h-2:"down"===l?u+2:u-2,"accent"===t[d])"up"===l?u--:u++;else switch(u){case 2:case 4:case 6:case 8:case 10:"up"===l?u--:u++}i>9&&u++;var p=n/2;"center"!==s.getSymbolAlign(f)&&(p-=s.getSymbolWidth(f)/2),r.addChild(new o(f,p,s.getSymbolWidth(f),u))}if("slide"===t[d]&&r.heads[0]){var m=r.heads[0].pitch,g=new o("",-a-15,0,(m-=2)-1),v=new o("",-a-5,0,m+1);r.addChild(g),r.addChild(v),e.addOther(new c({anchor1:g,anchor2:v,fixedY:!0}))}}return void 0===u&&(u=i),{above:u,below:r.bottom}}(t,i,n,a,l,h,u,d);m.above=Math.max(m.above,this.minTop);!function(e,t,i,n,r,a,c){function l(e,t){"above"===e?n.above+=t:n.below-=t}function h(e){var t;return"above"===e?(t=n.above)<a&&(t=a):(t=n.below)>c&&(t=c),t}function u(e,n){var r=h(n);i.addChild(new o(e,t/2,0,r+2,{type:"decoration",klass:"ornament",thickness:3})),l(n,5)}function d(e,n){var r=t/2;"center"!==s.getSymbolAlign(e)&&(r-=s.getSymbolWidth(e)/2);var a=s.symbolHeightInPitches(e)+1,c=h(n);c="above"===n?c+a/2:c-a/2,i.addChild(new o(e,r,s.getSymbolWidth(e),c,{klass:"ornament",thickness:s.symbolHeightInPitches(e)})),l(n,a)}for(var f={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},p=!1,m=0;m<e.length;m++)switch(e[m]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":u(e[m],r),p=!0;break;case"fine":u("FINE",r),p=!0;break;case"+":case"open":case"snap":case"wedge":case"thumb":case"shortphrase":case"mediumphrase":case"longphrase":case"trill":case"roll":case"irishroll":case"marcato":case"dmarcato":case"turn":case"uppermordent":case"pralltriller":case"mordent":case"lowermordent":case"downbow":case"upbow":case"fermata":case"breath":case"umarcato":case"coda":case"segno":d(f[e[m]],r),p=!0;break;case"invertedfermata":d(f[e[m]],"below"),p=!0;break;case"mark":i.klass="mark"}}(i,a,l,m,f.ornamentPosition,this.minTop,this.minBottom);!function(e,t,i){for(var n=0;n<e.length;n++)switch(e[n]){case"arpeggio":for(var r=t.abcelem.minpitch-1;r<=t.abcelem.maxpitch;r+=2)t.addExtra(new o("scripts.arpeggio",2*-s.getSymbolWidth("scripts.arpeggio")-i,0,r+2,{klass:"ornament",thickness:s.symbolHeightInPitches("scripts.arpeggio")}))}}(i,l,h)}}(),e.exports=n},function(e,t,i){i(1);var n=function(e,t,i){this.anchor=e,this.dec=t,"below"===i?this.volumeHeightBelow=5:this.volumeHeightAbove=5,this.pitch=void 0};n.prototype.setUpperAndLowerElements=function(e){this.volumeHeightAbove?this.pitch=e.volumeHeightAbove:this.pitch=e.volumeHeightBelow},n.prototype.draw=function(e,t,i){void 0===this.pitch&&window.console.error("Dynamic Element y-coordinate not set.");e.printSymbol(this.anchor.x,this.pitch,this.dec,1,1,e.addClasses("decoration"))},e.exports=n},function(e,t,i){var n=i(5),r=function(e,t,i,n){this.anchor1=e,this.anchor2=t,this.dir=i,"above"===n?this.dynamicHeightAbove=4:this.dynamicHeightBelow=4,this.pitch=void 0};r.prototype.setUpperAndLowerElements=function(e){this.dynamicHeightAbove?this.pitch=e.dynamicHeightAbove:this.pitch=e.dynamicHeightBelow},r.prototype.draw=function(e){void 0===this.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var t=e.calcY(this.pitch)+4;"<"===this.dir?(this.drawLine(e,t+4,t),this.drawLine(e,t+4,t+8)):(this.drawLine(e,t,t+4),this.drawLine(e,t+8,t+4))},r.prototype.drawLine=function(e,t,i){var r=this.anchor1?this.anchor1.x:0,a=this.anchor2?this.anchor2.x:800,s=n("M %f %f L %f %f",r,t,a,i);e.printPath({path:s,stroke:"#000000",class:e.addClasses("decoration")})},e.exports=r},function(e,t,i){var n=i(5),r=function(e,t,i){this.text=e,this.anchor1=t,this.anchor2=i,this.endingHeightAbove=5,this.pitch=void 0};r.prototype.setUpperAndLowerElements=function(e){this.pitch=e.endingHeightAbove-2},r.prototype.draw=function(e,t,i){void 0===this.pitch&&window.console.error("Ending Element y-coordinate not set.");var r,a=e.calcY(this.pitch);this.anchor1&&(t=this.anchor1.x+this.anchor1.w,r=n("M %f %f L %f %f",t,a,t,a+20),e.printPath({path:r,stroke:"#000000",fill:"#000000",class:e.addClasses("ending")}),e.renderText(t+5,e.calcY(this.pitch-.5),this.text,"repeatfont","ending","start")),this.anchor2&&(i=this.anchor2.x,r=n("M %f %f L %f %f",i,a,i,a+20),e.printPath({path:r,stroke:"#000000",fill:"#000000",class:e.addClasses("ending")})),r=n("M %f %f L %f %f",t,a,i,a),e.printPath({path:r,stroke:"#000000",fill:"#000000",class:e.addClasses("ending")})},e.exports=r},function(e,t,i){var n=i(1),r=function(){this.voices=[],this.staffs=[],this.brace=void 0};r.prototype.setLimit=function(e,t){t.specialY[e]&&(t.staff.specialY[e]?t.staff.specialY[e]=Math.max(t.staff.specialY[e],t.specialY[e]):t.staff.specialY[e]=t.specialY[e])},r.prototype.addVoice=function(e,t,i){var n=this.voices.length;this.voices[n]=e,this.staffs[t]?this.staffs[t].voices.push(n):this.staffs[this.staffs.length]={top:10,bottom:2,lines:i,voices:[n],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},e.staff=this.staffs[t]},r.prototype.setStaffLimits=function(e){e.staff.top=Math.max(e.staff.top,e.top),e.staff.bottom=Math.min(e.staff.bottom,e.bottom),this.setLimit("tempoHeightAbove",e),this.setLimit("partHeightAbove",e),this.setLimit("volumeHeightAbove",e),this.setLimit("dynamicHeightAbove",e),this.setLimit("endingHeightAbove",e),this.setLimit("chordHeightAbove",e),this.setLimit("lyricHeightAbove",e),this.setLimit("lyricHeightBelow",e),this.setLimit("chordHeightBelow",e),this.setLimit("volumeHeightBelow",e),this.setLimit("dynamicHeightBelow",e)},r.prototype.setUpperAndLowerElements=function(e){for(var t,i=0;i<this.staffs.length;i++){var r=this.staffs[i],a={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};0,r.specialY.lyricHeightAbove&&(r.top+=r.specialY.lyricHeightAbove,a.lyricHeightAbove=r.top),r.specialY.chordHeightAbove&&(r.top+=r.specialY.chordHeightAbove,a.chordHeightAbove=r.top),r.specialY.endingHeightAbove&&(r.specialY.chordHeightAbove?r.top+=2:r.top+=r.specialY.endingHeightAbove,a.endingHeightAbove=r.top),r.specialY.dynamicHeightAbove&&r.specialY.volumeHeightAbove?(r.top+=Math.max(r.specialY.dynamicHeightAbove,r.specialY.volumeHeightAbove),a.dynamicHeightAbove=r.top,a.volumeHeightAbove=r.top):r.specialY.dynamicHeightAbove?(r.top+=r.specialY.dynamicHeightAbove,a.dynamicHeightAbove=r.top):r.specialY.volumeHeightAbove&&(r.top+=r.specialY.volumeHeightAbove,a.volumeHeightAbove=r.top),r.specialY.partHeightAbove&&(r.top+=r.specialY.partHeightAbove,a.partHeightAbove=r.top),r.specialY.tempoHeightAbove&&(r.top+=r.specialY.tempoHeightAbove,a.tempoHeightAbove=r.top),r.specialY.lyricHeightBelow&&(a.lyricHeightBelow=r.bottom,r.bottom-=r.specialY.lyricHeightBelow),r.specialY.chordHeightBelow&&(a.chordHeightBelow=r.bottom,r.bottom-=r.specialY.chordHeightBelow),r.specialY.volumeHeightBelow&&r.specialY.dynamicHeightBelow?(a.volumeHeightBelow=r.bottom,a.dynamicHeightBelow=r.bottom,r.bottom-=Math.max(r.specialY.volumeHeightBelow,r.specialY.dynamicHeightBelow)):r.specialY.volumeHeightBelow?(a.volumeHeightBelow=r.bottom,r.bottom-=r.specialY.volumeHeightBelow):r.specialY.dynamicHeightBelow&&(a.dynamicHeightBelow=r.bottom,r.bottom-=r.specialY.dynamicHeightBelow);for(var s=0;s<r.voices.length;s++){this.voices[r.voices[s]].setUpperAndLowerElements(a)}if(void 0!==t){var o=t+(r.top-10),c=e.spacing.systemStaffSeparation/n.STEP-o;c>0&&(r.top+=c)}t=2-r.bottom}},r.prototype.finished=function(){for(var e=0;e<this.voices.length;e++)if(!this.voices[e].layoutEnded())return!1;return!0},r.prototype.layout=function(e,t,i){var n,r=0,a=1e3,s=function(e,t,i){for(var n=e.padding.left,r=0,a=0;a<t.length;a++)if(t[a].header){var s=e.getTextSize(t[a].header,"voicefont","");r=Math.max(r,s.width)}return r&&(r+=e.getTextSize("A","voicefont","").width),n+=r,i&&(i.setLocation(n),n+=i.getWidth()),n}(t,this.voices,this.brace);this.startx=s;var o=0;for(i&&console.log("init layout",e),n=0;n<this.voices.length;n++)this.voices[n].beginLayout(s);for(var c=0;!this.finished();){for(o=null,n=0;n<this.voices.length;n++)this.voices[n].layoutEnded()||o&&!(this.voices[n].getDurationIndex()<o)||(o=this.voices[n].getDurationIndex());var l=[],h=[];for(n=0;n<this.voices.length;n++){this.voices[n].getDurationIndex()-o>1e-7?h.push(this.voices[n]):l.push(this.voices[n])}c=0;var u=0;for(n=0;n<l.length;n++)l[n].getNextX()>s&&(s=l[n].getNextX(),c=l[n].getSpacingUnits(),u=l[n].spacingduration);for(r+=c,a=Math.min(a,c),i&&console.log("currentduration: ",o,r,a),n=0;n<l.length;n++){var d=l[n].layoutOneItem(s,e),f=d-s;if(f>0){s=d;for(var p=0;p<n;p++)l[p].shiftRight(f)}}for(n=0;n<h.length;n++)h[n].spacingduration-=u,h[n].updateNextX(s,e);for(n=0;n<l.length;n++){l[n].updateIndices()}}for(n=0;n<this.voices.length;n++)this.voices[n].getNextX()>s&&(s=this.voices[n].getNextX(),c=this.voices[n].getSpacingUnits());for(r+=c,this.w=s,n=0;n<this.voices.length;n++)this.voices[n].w=this.w;return{spacingUnits:r,minSpace:a}},r.prototype.calcHeight=function(){for(var e=0,t=0;t<this.voices.length;t++){var i=this.voices[t].staff;this.voices[t].duplicate||(e+=i.top,i.bottom<0&&(e+=-i.bottom))}return e},r.prototype.draw=function(e){e.addInvisibleMarker("abcjs-top-of-system");for(var t,i,r=e.y,a=0;a<this.staffs.length;a++){var s=this.staffs[a];e.moveY(n.STEP,s.top),s.absoluteY=e.y,s.bottom<0&&e.moveY(n.STEP,-s.bottom)}var o=0;e.measureNumber=null,e.noteNumber=null;for(var c=0;c<this.voices.length;c++){var l=this.voices[c].staff;e.y=l.absoluteY,e.voiceNumber=c,this.voices[c].duplicate||(t||(t=e.calcY(10)),i=e.calcY(2),0!==l.lines&&(e.measureNumber=null,e.noteNumber=null,e.printStave(this.startx,this.w,l.lines))),this.voices[c].draw(e,o),e.measureNumber=null,e.noteNumber=null,this.voices[c].duplicate||(o=e.calcY(2)),this.brace&&c===this.brace.length-1&&this.brace&&this.brace.draw(e,t,i)}e.measureNumber=null,e.noteNumber=null,this.staffs.length>1&&e.printStem(this.startx,.6,t,i),e.y=r},e.exports=r},function(e,t,i){var n,r=i(4),a=i(2);!function(){"use strict";(n=function(e,t,i){this.tempo=e,this.tuneNumber=t,this.tempoHeightAbove=5,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(i,e,t))}).prototype.setUpperAndLowerElements=function(e){if(this.pitch=e.tempoHeightAbove,this.top=e.tempoHeightAbove,this.bottom=e.tempoHeightAbove,this.note){var t=this.pitch-5+1;this.note.top=t,this.note.bottom=t;for(var i=0;i<this.note.children.length;i++){var n=this.note.children[i];n.top+=t,n.bottom+=t,n.pitch+=t,void 0!==n.pitch2&&(n.pitch2+=t)}}},n.prototype.setX=function(e){this.x=e},n.prototype.createNote=function(e,t,i){var n,s,o,c=t.duration[0],l=new r(t,c,1,"tempo",i);c<=1/32?(o="noteheads.quarter",s="flags.u32nd",n=0):c<=1/16?(o="noteheads.quarter",s="flags.u16th",n=0):c<=3/32?(o="noteheads.quarter",s="flags.u16nd",n=1):c<=1/8?(o="noteheads.quarter",s="flags.u8th",n=0):c<=3/16?(o="noteheads.quarter",s="flags.u8th",n=1):c<=.25?(o="noteheads.quarter",n=0):c<=3/8?(o="noteheads.quarter",n=1):c<=.5?(o="noteheads.half",n=0):c<=.75?(o="noteheads.half",n=1):c<=1?(o="noteheads.whole",n=0):c<=1.5?(o="noteheads.whole",n=1):c<=2?(o="noteheads.dbl",n=0):(o="noteheads.dbl",n=1);var h,u=e(l,o,{verticalPos:0},"up",0,0,s,n,0,.75,[],!1).notehead;if(l.addHead(u),"noteheads.whole"!==o&&"noteheads.dbl"!==o){var d=u.dx+u.w;h=new a(null,d,0,.25,{type:"stem",pitch2:5.25,linewidth:-.6}),l.addExtra(h)}return l},n.prototype.draw=function(e){var t=this.x;void 0===this.pitch&&window.console.error("Tempo Element y-coordinate not set.");var i,n=e.calcY(this.pitch);if(this.tempo.preString){i=e.renderText(t,n,this.tempo.preString,"tempofont","tempo","start");var r=e.getTextSize(this.tempo.preString,"tempofont","tempo",i),a=r.width;t+=a+a/this.tempo.preString.length}if(this.note){this.note&&this.note.setX(t);for(var s=0;s<this.note.children.length;s++)this.note.children[s].draw(e,t);t+=this.note.w+5;var o="= "+this.tempo.bpm;i=e.renderText(t,n,o,"tempofont","tempo","start");var c=(r=e.getTextSize(o,"tempofont","tempo",i)).width;t+=c+c/o.length}this.tempo.postString&&e.renderText(t,n,this.tempo.postString,"tempofont","tempo","start")}}(),e.exports=n},function(e,t,i){var n,r=i(5);!function(){"use strict";function e(e,t,i,n,a,s){var o=r("M %f %f L %f %f",t,i,n,a);e.printPath({path:o,stroke:"#000000",class:e.addClasses("triplet d"+s)})}(n=function(e,t,i){this.anchor1=t,this.number=e,this.duration=(""+t.parent.durationClass).replace(/\./,"-"),this.middleElems=[],this.flatBeams=i.flatBeams}).prototype.isClosed=function(){return this.anchor2},n.prototype.middleNote=function(e){this.middleElems.push(e)},n.prototype.setCloseAnchor=function(e){this.anchor2=e,this.anchor1.parent.beam&&(this.endingHeightAbove=4)},n.prototype.setUpperAndLowerElements=function(){},n.prototype.layout=function(){if(this.anchor1&&this.anchor2)if(this.hasBeam=this.anchor1.parent.beam&&this.anchor1.parent.beam===this.anchor2.parent.beam,this.hasBeam){var e=this.anchor1.parent.beam,t=e.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;this.yTextPos=e.heightAtMidpoint(t,this.anchor2.x),this.yTextPos+=e.isAbove()?3:-2,this.top=this.yTextPos+1,this.bottom=this.yTextPos-2,e.isAbove()&&(this.endingHeightAbove=4)}else{this.startNote=Math.max(this.anchor1.parent.top,9)+4,this.endNote=Math.max(this.anchor2.parent.top,9)+4,"rest"===this.anchor1.parent.type&&"rest"!==this.anchor2.parent.type?this.startNote=this.endNote:"rest"===this.anchor2.parent.type&&"rest"!==this.anchor1.parent.type&&(this.endNote=this.startNote);for(var i=0,n=0;n<this.middleElems.length;n++)i=Math.max(i,this.middleElems[n].top);((i+=4)>this.startNote||i>this.endNote)&&(this.startNote=i,this.endNote=i),this.flatBeams&&(this.startNote=Math.max(this.startNote,this.endNote),this.endNote=Math.max(this.startNote,this.endNote)),this.yTextPos=this.startNote+(this.endNote-this.startNote)/2,this.top=this.yTextPos+1}delete this.middleElems,delete this.flatBeams},n.prototype.draw=function(t){var i;if(this.hasBeam){var n=this.anchor1.parent.beam.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;i=this.anchor1.parent.beam.xAtMidpoint(n,this.anchor2.x)}else i=this.anchor1.x+(this.anchor2.x+this.anchor2.w-this.anchor1.x)/2,function(t,i,n,r,a,s){n=t.calcY(n),a=t.calcY(a);e(t,i,n,i,n+5,s),e(t,r,a,r,a+5,s);var o=i+(r-i)/2,c=(a-n)/(r-i),l=o-8;e(t,i,n,l,n+(l-i)*c,s);var h=o+8;e(t,h,n+(h-i)*c,r,a,s)}(t,this.anchor1.x,this.startNote,this.anchor2.x+this.anchor2.w,this.endNote,this.duration);t.renderText(i,t.calcY(this.yTextPos),""+this.number,"tripletfont",t.addClasses("triplet d"+this.duration),"middle",!0)}}(),e.exports=n},function(e,t,i){var n=i(0),r=function(e,t){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=e,this.voicetotal=t,this.bottom=7,this.top=7,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};r.prototype.addChild=function(e){if("bar"===e.type){for(var t=!0,i=0;t&&i<this.children.length;i++)"staff-extra"!==this.children[i].type&&"tempo"!==this.children[i].type&&(t=!1);t||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=e,this.setRange(e)},r.prototype.setLimit=function(e,t){var i=t.specialY;i||(i=t),i[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],i[e]):this.specialY[e]=i[e])},r.prototype.moveDecorations=function(e){for(var t=0;t<e.elems.length;t++){var i=e.elems[t];if(i.top)for(var n=e.yAtNote(i),r=0;r<i.children.length;r++){var a=i.children[r];if("ornament"===a.klass&&a.bottom-1.5<n){var s=n-a.bottom+1.5;a.bottom+=s,a.top+=s,a.pitch+=s,n=i.top=a.top}}}},r.prototype.adjustRange=function(e){void 0!==e.bottom&&(this.bottom=Math.min(this.bottom,e.bottom)),void 0!==e.top&&(this.top=Math.max(this.top,e.top))},r.prototype.setRange=function(e){this.adjustRange(e),this.setLimit("tempoHeightAbove",e),this.setLimit("partHeightAbove",e),this.setLimit("volumeHeightAbove",e),this.setLimit("dynamicHeightAbove",e),this.setLimit("endingHeightAbove",e),this.setLimit("chordHeightAbove",e),this.setLimit("lyricHeightAbove",e),this.setLimit("lyricHeightBelow",e),this.setLimit("chordHeightBelow",e),this.setLimit("volumeHeightBelow",e),this.setLimit("dynamicHeightBelow",e)},r.prototype.setUpperAndLowerElements=function(e){var t;for(t=0;t<this.children.length;t++){(i=this.children[t]).setUpperAndLowerElements(e)}for(t=0;t<this.otherchildren.length;t++){var i;"string"!=typeof(i=this.otherchildren[t])&&i.setUpperAndLowerElements(e)}},r.prototype.addOther=function(e){this.otherchildren.push(e),this.setRange(e)},r.prototype.addBeam=function(e){this.beams.push(e)},r.prototype.updateIndices=function(){this.layoutEnded()||(this.durationindex+=this.children[this.i].duration,"bar"===this.children[this.i].type&&(this.durationindex=Math.round(64*this.durationindex)/64),this.i++)},r.prototype.layoutEnded=function(){return this.i>=this.children.length},r.prototype.getDurationIndex=function(){return this.durationindex-(this.children[this.i]&&this.children[this.i].duration>0?0:5e-7)},r.prototype.getSpacingUnits=function(){return Math.sqrt(8*this.spacingduration)},r.prototype.getNextX=function(){return Math.max(this.minx,this.nextx)},r.prototype.beginLayout=function(e){this.i=0,this.durationindex=0,this.startx=e,this.minx=e,this.nextx=e,this.spacingduration=0},r.prototype.layoutOneItem=function(e,t){var i=this.children[this.i];if(!i)return 0;var n=e-this.minx,r=i.getExtraWidth();return n<r&&(0===this.i||"bar"!==i.type||"part"!==this.children[this.i-1].type&&"tempo"!==this.children[this.i-1].type)&&(e+=r-n),i.setX(e),this.spacingduration=i.duration,this.minx=e+i.getMinWidth(),this.i!==this.children.length-1&&(this.minx+=i.minspacing),this.updateNextX(e,t),e},r.prototype.updateNextX=function(e,t){this.nextx=e+t*Math.sqrt(8*this.spacingduration)},r.prototype.shiftRight=function(e){var t=this.children[this.i];t&&(t.setX(t.x+e),this.minx+=e,this.nextx+=e)},r.prototype.draw=function(e,t){var i,r=this.w-1;if(e.staffbottom=this.staff.bottom,e.measureNumber=null,e.noteNumber=null,this.header){var a=14-(this.voicenumber+1)*(12/(this.voicetotal+1));e.renderText(e.padding.left,e.calcY(a),this.header,"voicefont","staff-extra voice-name","start")}for(var s=0,o=this.children.length;s<o;s++){var c=this.children[s],l=!1;"staff-extra"!==c.type&&null===e.measureNumber&&(e.measureNumber=0,e.noteNumber=0,l=!0),c.draw(e,this.barto||s===o-1?t:0),("note"===c.type||"rest"===(i=c).type&&i.abcelem&&i.abcelem.rest&&"spacer"!==i.abcelem.rest.type)&&e.noteNumber++,"bar"!==c.type||l||(e.measureNumber++,e.noteNumber=0)}e.measureNumber=0,e.noteNumber=0,n.each(this.beams,(function(t){"bar"===t?(e.measureNumber++,e.noteNumber=0):t.draw(e)})),e.measureNumber=0,e.noteNumber=0;var h=this;n.each(this.otherchildren,(function(t){"bar"===t?(e.measureNumber++,e.noteNumber=0):t.draw(e,h.startx+10,r)}))},r.prototype.layoutBeams=function(){for(var e=0;e<this.beams.length;e++)if(this.beams[e].layout){this.beams[e].layout(),this.moveDecorations(this.beams[e]);for(var t=0;t<this.beams[e].elems.length;t++)this.adjustRange(this.beams[e].elems[t])}for(e=0;e<this.otherchildren.length;e++){var i=this.otherchildren[e];i.layout&&(i.layout(),this.adjustRange(i))}this.staff.top=Math.max(this.staff.top,this.top),this.staff.bottom=Math.min(this.staff.bottom,this.bottom)},e.exports=r},function(e,t,i){var n=i(3),r=i(1),a=i(5),s=i(36),o=function(e,t,i){this.paper=new s(e),this.controller=null,this.space=3*r.SPACE,this.padding={},this.doRegression=t,this.shouldAddClasses=i,this.doRegression&&(this.regressionLines=[]),this.reset()};o.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.lastM=null,this.ingroup=!1,this.path=null,this.isPrint=!1,this.initVerticalSpace(),this.doRegression&&(this.regressionLines=[])},o.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.measureNumber=null,this.noteNumber=null,this.setPrintMode("print"===e.media),this.setPadding(e)},o.prototype.createElemSet=function(){return this.paper.openGroup()},o.prototype.closeElemSet=function(){return this.paper.closeGroup()},o.prototype.setPrintMode=function(e){this.isPrint=e},o.prototype.setPaperSize=function(e,t,i){var n=(e+this.padding.right)*t,r=(this.y+this.padding.bottom)*t;this.isPrint&&(r=Math.max(r,1056)),this.doRegression&&this.regressionLines.push("PAPER SIZE: ("+n+","+r+")");var a="Sheet Music";this.abctune&&this.abctune.metaText&&this.abctune.metaText.title&&(a+=' for "'+this.abctune.metaText.title+'"'),this.paper.setTitle(a);var s={overflow:"hidden"};"resize"===i?this.paper.setResponsiveWidth(n,r):(s.width="",s.height=r+"px",t<1?(s.width=n+"px",this.paper.setSize(n/t,r/t)):this.paper.setSize(n,r)),this.paper.setScale(t),this.paper.setParentStyles(s)},o.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}},o.prototype.setPadding=function(e){function t(t,i,n,r,a){void 0!==e.formatting[n]?t.padding[i]=e.formatting[n]:void 0!==t.paddingOverride[i]?t.padding[i]=t.paddingOverride[i]:t.isPrint?t.padding[i]=r:t.padding[i]=a}t(this,"top","topmargin",38,15),t(this,"bottom","botmargin",38,15),t(this,"left","leftmargin",68,15),t(this,"right","rightmargin",68,15)},o.prototype.adjustNonScaledItems=function(e){this.padding.top/=e,this.padding.bottom/=e,this.padding.left/=e,this.padding.right/=e,this.abctune.formatting.headerfont.size/=e,this.abctune.formatting.footerfont.size/=e},o.prototype.initVerticalSpace=function(){this.spacing={composer:7.56,graceBefore:8.67,graceInside:10.67,graceAfter:16,info:0,lineSkipFactor:1.1,music:7.56,paragraphSkipFactor:.4,parts:11.33,slurHeight:1,staffSeparation:61.33,stemHeight:36.67,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:30.67,words:0}},o.prototype.setVerticalSpace=function(e){void 0!==e.staffsep&&(this.spacing.staffSeparation=4*e.staffsep/3),void 0!==e.composerspace&&(this.spacing.composer=4*e.composerspace/3),void 0!==e.partsspace&&(this.spacing.parts=4*e.partsspace/3),void 0!==e.textspace&&(this.spacing.text=4*e.textspace/3),void 0!==e.musicspace&&(this.spacing.music=4*e.musicspace/3),void 0!==e.titlespace&&(this.spacing.title=4*e.titlespace/3),void 0!==e.sysstaffsep&&(this.spacing.systemStaffSeparation=4*e.sysstaffsep/3),void 0!==e.subtitlespace&&(this.spacing.subtitle=4*e.subtitlespace/3),void 0!==e.topspace&&(this.spacing.top=4*e.topspace/3),void 0!==e.vocalspace&&(this.spacing.vocal=4*e.vocalspace/3),void 0!==e.wordsspace&&(this.spacing.words=4*e.wordsspace/3)},o.prototype.topMargin=function(e){this.moveY(this.padding.top)},o.prototype.addMusicPadding=function(){this.moveY(this.spacing.music)},o.prototype.addStaffPadding=function(e,t){var i=-(e.staffs[e.staffs.length-1].bottom-2),n=(t.staffs[0].top-10+i)*r.STEP;n<this.spacing.staffSeparation&&this.moveY(this.spacing.staffSeparation-n)},o.prototype.engraveTopText=function(e,t){if(t.metaText.header&&this.isPrint){var i=this.getTextSize("XXXX","headerfont","abcjs-header abcjs-meta-top").height;this.y-=i,this.outputTextIf(this.padding.left,t.metaText.header.left,"headerfont","header meta-top",0,null,"start"),this.outputTextIf(this.padding.left+e/2,t.metaText.header.center,"headerfont","header meta-top",0,null,"middle"),this.outputTextIf(this.padding.left+e,t.metaText.header.right,"headerfont","header meta-top",0,null,"end"),this.y+=i}if(this.isPrint&&this.moveY(this.spacing.top),this.outputTextIf(this.padding.left+e/2,t.metaText.title,"titlefont","title meta-top",this.spacing.title,0,"middle"),t.lines[0]&&this.outputTextIf(this.padding.left+e/2,t.lines[0].subtitle,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle"),t.metaText.rhythm||t.metaText.origin||t.metaText.composer){this.moveY(this.spacing.composer);var n=this.outputTextIf(this.padding.left,t.metaText.rhythm,"infofont","meta-top",0,null,"start"),r="";if(t.metaText.composer&&(r+=t.metaText.composer),t.metaText.origin&&(r+=" ("+t.metaText.origin+")"),r.length>0){var a=this.outputTextIf(this.padding.left+e,r,"composerfont","meta-top",0,null,"end");this.moveY(a[1])}else this.moveY(n[1]);this.moveY(-6)}this.outputTextIf(this.padding.left+e,t.metaText.author,"composerfont","meta-top",0,0,"end"),this.outputTextIf(this.padding.left,t.metaText.partOrder,"partsfont","meta-bottom",0,0,"start")},o.prototype.engraveExtraText=function(e,t){if(this.lineNumber=null,this.measureNumber=null,this.noteNumber=null,this.voiceNumber=null,t.metaText.unalignedWords){var i=this.getFontAndAttr("wordsfont","meta-bottom"),n=this.getTextSize("i","wordsfont","meta-bottom");t.metaText.unalignedWords.length>0&&this.moveY(this.spacing.words,1);for(var a=0;a<t.metaText.unalignedWords.length;a++)if(""===t.metaText.unalignedWords[a])this.moveY(i.font.size,1);else if("string"==typeof t.metaText.unalignedWords[a])this.outputTextIf(this.padding.left+r.INDENT,t.metaText.unalignedWords[a],"wordsfont","meta-bottom",0,0,"start");else{for(var s=0,o=0,c=0;c<t.metaText.unalignedWords[a].length;c++){var l=t.metaText.unalignedWords[a][c],h=l.font?l.font:"wordsfont",u=(this.renderText(this.padding.left+r.INDENT+o,this.y,l.text,h,"meta-bottom",!1),this.getTextSize(l.text,h,"meta-bottom"));s=Math.max(s,u.height),o+=u.width," "===l.text[l.text.length-1]&&(o+=n.width)}this.moveY(s,1)}t.metaText.unalignedWords.length>0&&this.moveY(i.font.size,2)}var d="";t.metaText.book&&(d+="Book: "+t.metaText.book+"\n"),t.metaText.source&&(d+="Source: "+t.metaText.source+"\n"),t.metaText.discography&&(d+="Discography: "+t.metaText.discography+"\n"),t.metaText.notes&&(d+="Notes: "+t.metaText.notes+"\n"),t.metaText.transcription&&(d+="Transcription: "+t.metaText.transcription+"\n"),t.metaText.history&&(d+="History: "+t.metaText.history+"\n"),t.metaText["abc-copyright"]&&(d+="Copyright: "+t.metaText["abc-copyright"]+"\n"),t.metaText["abc-creator"]&&(d+="Creator: "+t.metaText["abc-creator"]+"\n"),t.metaText["abc-edited-by"]&&(d+="Edited By: "+t.metaText["abc-edited-by"]+"\n"),this.outputTextIf(this.padding.left,d,"historyfont","meta-bottom",this.spacing.info,0,"start"),t.metaText.footer&&this.isPrint&&(this.outputTextIf(this.padding.left,t.metaText.footer.left,"footerfont","header meta-bottom",0,null,"start"),this.outputTextIf(this.padding.left+e/2,t.metaText.footer.center,"footerfont","header meta-bottom",0,null,"middle"),this.outputTextIf(this.padding.left+e,t.metaText.footer.right,"footerfont","header meta-bottom",0,null,"end"))},o.prototype.outputFreeText=function(e,t){t&&this.moveY(t);var i=this.getFontAndAttr("textfont","defined-text");if(""===e)this.moveY(2*i.attr["font-size"]);else if("string"==typeof e)this.moveY(i.attr["font-size"]/2),this.outputTextIf(this.padding.left,e,"textfont","defined-text",0,0,"start");else{for(var n="",r=!1,a=0;a<e.length;a++)e[a].font&&(n+="FONT("+e[a].font+")"),n+=e[a].text,e[a].center&&(r=!0);var s=r?"middle":"start",o=r?this.controller.width/2:this.padding.left;this.outputTextIf(o,n,"textfont","defined-text",0,1,s)}},o.prototype.outputSeparator=function(e){e.lineLength&&(this.moveY(e.spaceAbove),this.printSeparator(e.lineLength),this.moveY(e.spaceBelow))},o.prototype.outputSubtitle=function(e,t){this.outputTextIf(this.padding.left+e/2,t,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle")},o.prototype.beginGroup=function(){this.path=[],this.lastM=[0,0],this.ingroup=!0},o.prototype.addPath=function(e){if(0!==(e=e||[]).length){e[0][0]="m",e[0][1]-=this.lastM[0],e[0][2]-=this.lastM[1],this.lastM[0]+=e[0][1],this.lastM[1]+=e[0][2],this.path.push(e[0]);for(var t=1,i=e.length;t<i;t++)"m"===e[t][0]&&(this.lastM[0]+=e[t][1],this.lastM[1]+=e[t][2]),this.path.push(e[t])}},o.prototype.endGroup=function(e){if(this.ingroup=!1,0===this.path.length)return null;for(var t="",i=0;i<this.path.length;i++)t+=this.path[i].join(" ");var n=this.paper.path({path:t,stroke:"none",fill:"#000000",class:this.addClasses(e)});return this.path=[],this.doRegression&&this.addToRegression(n),n},o.prototype.printStaveLine=function(e,t,i,n){var r="staff";void 0!==n&&(r+=" "+n);var s=.35,o="#000000";var c=this.calcY(i),l=a("M %f %f L %f %f L %f %f L %f %f z",e,c-s,t,c-s,t,c+s,e,c+s),h=this.paper.pathToBack({path:l,stroke:"none",fill:o,class:this.addClasses(r)});return this.doRegression&&this.addToRegression(h),h},o.prototype.printStem=function(e,t,i,n){if(t<0){var r=n;n=i,i=r}var a="#000000";~~e===e&&(e+=.05);var s=[["M",e,i],["L",e,n],["L",e+t,n],["L",e+t,i],["z"]];if(!this.ingroup){for(var o="",c=0;c<s.length;c++)o+=s[c].join(" ");var l=this.paper.pathToBack({path:o,stroke:"none",fill:a,class:this.addClasses("stem")});return this.doRegression&&this.addToRegression(l),l}this.addPath(s)},o.prototype.printSymbol=function(e,t,i,r,a,s){var o,c,l,h,u,d;if(!i)return null;if(i.length>1&&i.indexOf(".")<0){this.paper.openGroup();for(var f=0,p=0;p<i.length;p++){var m=i.charAt(p);c=n.getYCorr(m),(o=n.printSymbol(e+f,this.calcY(t+c),m,this.paper,s))?(this.doRegression&&this.addToRegression(o),p<i.length-1&&(f+=(l=m,h=i.charAt(p+1),u=n.getSymbolWidth(m),d=void 0,d=u,"f"===l&&"f"===h&&(d=2*d/3),"p"===l&&"p"===h&&(d=5*d/6),"f"===l&&"z"===h&&(d=5*d/8),d))):this.renderText(e,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return this.paper.closeGroup()}if(c=n.getYCorr(i),this.ingroup)this.addPath(n.getPathForSymbol(e,this.calcY(t+c),i,r,a));else{if(o=n.printSymbol(e,this.calcY(t+c),i,this.paper,s))return this.doRegression&&this.addToRegression(o),o;this.renderText(e,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return null},o.prototype.scaleExistingElem=function(e,t,i,n,r){this.paper.setAttributeOnElement(e,{style:"transform:scale("+t+","+i+");transform-origin:"+n+"px "+r+"px;"})},o.prototype.printPath=function(e){var t=this.paper.path(e);return this.doRegression&&this.addToRegression(t),t},o.prototype.drawBrace=function(e,t,i){var n=i-t,r=[7.5,-8,21,0,18.5,-10.5,7.5],s=[0,n/5.5,n/3.14,n/2,n/2.93,n/4.88,0],o=a("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e+r[0],t+s[0],e+r[1],t+s[1],e+r[2],t+s[2],e+r[3],t+s[3],e+r[4],t+s[4],e+r[5],t+s[5],e+r[6],t+s[6]),c=this.paper.path({path:o,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});o=a("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e+(r=[0,17.5,-7.5,6.6,-5,20,0])[0],t+(s=[n/2,n/1.46,n/1.22,n,n/1.19,n/1.42,n/2])[0],e+r[1],t+s[1],e+r[2],t+s[2],e+r[3],t+s[3],e+r[4],t+s[4],e+r[5],t+s[5],e+r[6],t+s[6]);var l=this.paper.path({path:o,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});return this.doRegression&&(this.addToRegression(c),this.addToRegression(l)),c+l},o.prototype.drawArc=function(e,t,i,n,r,s,o){var c=o?1.2:1.5;e+=6,t+=4,i+=r?c:-c,n+=r?c:-c;var l=this.calcY(i),h=this.calcY(n),u=t-e,d=h-l,f=Math.sqrt(u*u+d*d),p=u/f,m=d/f,g=f/3.5,v=o?10:25,b=(r?-1:1)*Math.min(v,Math.max(4,g)),y=e+g*p-b*m,w=l+g*m+b*p,A=t-g*p-b*m,k=h-g*m+b*p,x=a("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e,l,y,w,A,k,t,h,A-2*m,k+2*p,y-2*m,w+2*p,e,l);s?s+=" slur":s="slur";var T=this.paper.path({path:x,stroke:"none",fill:"#000000",class:this.addClasses(s)});return this.doRegression&&this.addToRegression(T),T},o.prototype.calcY=function(e){return this.y-e*r.STEP},o.prototype.printStave=function(e,t,i){var n="top-line";if(this.paper.openGroup({prepend:!0}),1!==i){for(var r=i-1;r>=0;r--)this.printStaveLine(e,t,2*(r+1),n),n=void 0;this.paper.closeGroup()}else this.printStaveLine(e,t,6,n)},o.prototype.addClasses=function(e,t){if(!this.shouldAddClasses)return"";var i=[];if(e.length>0&&i.push(e),null!==this.lineNumber&&void 0!==this.lineNumber&&i.push("l"+this.lineNumber),null!==this.measureNumber&&void 0!==this.measureNumber&&i.push("m"+this.measureNumber),null!==this.voiceNumber&&void 0!==this.voiceNumber&&i.push("v"+this.voiceNumber),(e.indexOf("note")>=0||e.indexOf("rest")>=0||e.indexOf("lyric")>=0)&&null!==this.noteNumber&&void 0!==this.noteNumber&&i.push("n"+this.noteNumber),i.length>0){i=(i=i.join(" ")).split(" ");for(var n=0;n<i.length;n++)0!==i[n].indexOf("abcjs-")&&i[n].length>0&&(i[n]="abcjs-"+i[n])}return i.join(" ")},o.prototype.getFontAndAttr=function(e,t){var i,n={"font-size":(i="string"==typeof e?(i=this.abctune.formatting[e])?{face:i.face,size:4*i.size/3,decoration:i.decoration,style:i.style,weight:i.weight,box:i.box}:{face:"Arial",size:16,decoration:"underline",style:"normal",weight:"normal"}:{face:e.face,size:4*e.size/3,decoration:e.decoration,style:e.style,weight:e.weight,box:e.box}).size,"font-style":i.style,"font-family":i.face,"font-weight":i.weight,"text-decoration":i.decoration,class:this.addClasses(t),font:""};return{font:i,attr:n}},o.prototype.getTextSize=function(e,t,i,n){var r=this.getFontAndAttr(t,i),a=this.paper.getTextSize(e,r.attr,n);return r.font.box&&(a.height+=8,a.width+=8),a},o.prototype.renderText=function(e,t,i,n,r,a,s){var o=this.getFontAndAttr(n,r);a&&(o.attr["text-anchor"]=a),o.attr.x=e,o.attr.y=t+7,s||(o.attr.dy="0.5em"),"debugfont"===n&&(console.log("Debug msg: "+i),o.attr.stroke="#ff0000"),i=(i=i.replace(/\n\n/g,"\n \n")).replace(/^\n/," \n"),o.font.box&&(o.attr.x+=2,o.attr.y+=4);var c=this.paper.text(i,o.attr);if(o.font.box){var l=this.getTextSize(i,n,r);this.paper.rect({x:e-2,y:t,width:l.width+4,height:l.height+4-2,stroke:"#888888",fill:"transparent"})}return this.doRegression&&this.addToRegression(c),c},o.prototype.moveY=function(e,t){void 0===t&&(t=1),this.y+=e*t},o.prototype.skipSpaceY=function(){this.y+=this.space},o.prototype.outputTextIf=function(e,t,i,n,r,a,s){if(t){r&&this.moveY(r);this.renderText(e,this.y,t,i,n,s);var o=this.getTextSize(t,i,n),c=isNaN(o.width)?0:o.width,l=isNaN(o.height)?0:o.height;if(this.getFontAndAttr(i,n).font.box&&(c+=8,l+=8),null!==a){var h=t.split("\n").length;isNaN(o.height)||this.moveY(l/h,h+a)}return[c,l]}return[0,0]},o.prototype.addInvisibleMarker=function(e){var t=this.y;t=Math.round(t);var i=a("M %f %f L %f %f L %f %f L %f %f z",0,t-.35,100,t-.35,100,t+.35,0,t+.35);this.paper.pathToBack({path:i,stroke:"none",fill:"rgba(0,0,0,0)","fill-opacity":0,class:this.addClasses(e),"data-vertical":t})},o.prototype.printSeparator=function(e){var t=Math.round(this.y),i=(this.controller.width-e)/2,n=i+e,r="M "+i+" "+t+" L "+n+" "+t+" L "+n+" "+(t+1)+" L "+i+" "+(t+1)+" L "+i+" "+t+" z";this.paper.pathToBack({path:r,stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:this.addClasses("defined-text")})},o.prototype.printHorizontalLine=function(e,t,i){var n=.35,r="rgba(0,0,255,.4)",s=this.y;t&&(s=t),s=Math.round(s),this.paper.text(""+Math.round(s),{x:10,y:s,"text-anchor":"start","font-size":"18px",fill:r,stroke:r});var o=a("M %f %f L %f %f L %f %f L %f %f z",50,s-n,50+e,s-n,e,s+n,50,s+n);this.paper.pathToBack({path:o,stroke:"none",fill:r,class:this.addClasses("staff")});for(var c=1;c<e/100;c++)o=a("M %f %f L %f %f L %f %f L %f %f z",100*c-n,s-5,100*c-n,s+5,100*c+n,s-5,100*c+n,s+5),this.paper.pathToBack({path:o,stroke:"none",fill:r,class:this.addClasses("staff")});i&&this.paper.text(i,{x:e+70,y:s,"text-anchor":"start","font-size":"18px",fill:r,stroke:r})},o.prototype.printShadedBox=function(e,t,i,n,r,a,s){var o=this.paper.rect({x:e,y:t,width:i,height:n,fill:r,stroke:r,"fill-opacity":a,"stroke-opacity":a});return s&&this.paper.text(s,{x:0,y:t+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),o},o.prototype.printVerticalLine=function(e,t,i){var n=a("M %f %f L %f %f L %f %f L %f %f z",e-.35,t,e-.35,i,e+.35,t,e+.35,i);this.paper.pathToBack({path:n,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),n=a("M %f %f L %f %f L %f %f L %f %f z",e-20,t,e-20,t+3,e,t,e,t+3),this.paper.pathToBack({path:n,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),n=a("M %f %f L %f %f L %f %f L %f %f z",e+20,i,e+20,i+3,e,i,e,i+3),this.paper.pathToBack({path:n,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")})},o.prototype.addToRegression=function(e){var t;try{t=e.getBBox()}catch(e){t={width:0,height:0}}var i=e.type+" "+t.toString()+" ",n=[];for(var r in e.attrs)e.attrs.hasOwnProperty(r)&&("class"===r?i=e.attrs[r]+" "+i:n.push(r+": "+e.attrs[r]));n.sort(),i+="{ "+n.join(" ")+" }",this.regressionLines.push(i)},e.exports=o},function(e,t){var i="http://www.w3.org/2000/svg";function n(e){this.svg=r(),e.appendChild(this.svg)}function r(){var e=document.createElementNS(i,"svg");return e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),e.setAttribute("role","img"),e}n.prototype.clear=function(){if(this.svg){var e=this.svg.parentNode;this.svg=r(),e&&(e.innerHTML="",e.appendChild(this.svg))}},n.prototype.setTitle=function(e){var t=document.createElement("title"),i=document.createTextNode(e);t.appendChild(i),this.svg.insertBefore(t,this.svg.firstChild)},n.prototype.setResponsiveWidth=function(e,t){if(this.svg.setAttribute("viewBox","0 0 "+e+" "+t),this.svg.setAttribute("preserveAspectRatio","xMinYMin meet"),this.svg.removeAttribute("height"),this.svg.removeAttribute("width"),this.svg.style.display="inline-block",this.svg.style.position="absolute",this.svg.style.top="0",this.svg.style.left="0",this.svg.parentNode){var i=this.svg.parentNode.getAttribute("class");i?i.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",i+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%";var n=t/e*100;this.svg.parentNode.style["padding-bottom"]=n+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},n.prototype.setSize=function(e,t){this.svg.setAttribute("width",e),this.svg.setAttribute("height",t)},n.prototype.setScale=function(e){1!==e?(this.svg.style.transform="scale("+e+","+e+")",this.svg.style["-ms-transform"]="scale("+e+","+e+")",this.svg.style["-webkit-transform"]="scale("+e+","+e+")",this.svg.style["transform-origin"]="0 0",this.svg.style["-ms-transform-origin-x"]="0",this.svg.style["-ms-transform-origin-y"]="0",this.svg.style["-webkit-transform-origin-x"]="0",this.svg.style["-webkit-transform-origin-y"]="0"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")},n.prototype.setParentStyles=function(e){for(var t in e)e.hasOwnProperty(t)&&this.svg.parentNode&&(this.svg.parentNode.style[t]=e[t]);this.dummySvg&&(document.querySelector("body").removeChild(this.dummySvg),this.dummySvg=null)},n.prototype.rect=function(e){var t=document.createElementNS(i,"rect");for(var n in e){if(e.hasOwnProperty(n))(""+e[n]).indexOf("NaN"),t.setAttributeNS(null,n,e[n])}return this.append(t),t},n.prototype.text=function(e,t,n){var r=document.createElementNS(i,"text");for(var a in t)t.hasOwnProperty(a)&&r.setAttribute(a,t[a]);for(var s=(""+e).split("\n"),o=0;o<s.length;o++){var c=document.createElementNS(i,"tspan");c.textContent=s[o],c.setAttribute("x",t.x?t.x:0),0!==o&&c.setAttribute("dy","1.2em"),r.appendChild(c)}return n?n.appendChild(r):this.append(r),r},n.prototype.guessWidth=function(e,t){var i,n=this.createDummySvg(),r=this.text(e,t,n);try{i=r.getBBox(),i=isNaN(i.height)||!i.height?{width:t["font-size"]/2,height:t["font-size"]+2}:{width:i.width,height:i.height}}catch(e){i={width:t["font-size"]/2,height:t["font-size"]+2}}return n.removeChild(r),i},n.prototype.createDummySvg=function(){if(!this.dummySvg){this.dummySvg=r();this.dummySvg.setAttribute("style",["display: block !important;","height: 1px;","width: 1px;","position: absolute;"].join("")),document.querySelector("body").appendChild(this.dummySvg)}return this.dummySvg},n.prototype.getTextSize=function(e,t,i){if("number"==typeof e&&(e=""+e),!e||e.match(/^\s+$/))return{width:0,height:0};var n,r=!i;i||(i=this.text(e,t));try{n=i.getBBox(),n=isNaN(n.height)||!n.height?this.guessWidth(e,t):{width:n.width,height:n.height}}catch(i){n=this.guessWidth(e,t)}return r&&(this.currentGroup?this.currentGroup.removeChild(i):this.svg.removeChild(i)),n},n.prototype.openGroup=function(e){e=e||{};var t=document.createElementNS(i,"g");return e.prepend?this.svg.insertBefore(t,this.svg.firstChild):this.svg.appendChild(t),this.currentGroup=t,t},n.prototype.closeGroup=function(){var e=this.currentGroup;return this.currentGroup=null,e},n.prototype.path=function(e){var t=document.createElementNS(i,"path");for(var n in e)e.hasOwnProperty(n)&&("path"===n?t.setAttributeNS(null,"d",e.path):t.setAttributeNS(null,n,e[n]));return this.append(t),t},n.prototype.pathToBack=function(e){var t=document.createElementNS(i,"path");for(var n in e)e.hasOwnProperty(n)&&("path"===n?t.setAttributeNS(null,"d",e.path):t.setAttributeNS(null,n,e[n]));return this.prepend(t),t},n.prototype.append=function(e){this.currentGroup?this.currentGroup.appendChild(e):this.svg.appendChild(e)},n.prototype.prepend=function(e){this.currentGroup?this.currentGroup.appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)},n.prototype.setAttributeOnElement=function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttributeNS(null,i,t[i])},e.exports=n},function(e,t,i){var n=i(8),r=i(38),a=i(51);e.exports=function(e,t,i,s,o){var c,l={};if(i)for(c in i)i.hasOwnProperty(c)&&(l[c]=i[c]);if(s)for(c in s)s.hasOwnProperty(c)&&("listener"===c?l.midiListener=s[c]:"transpose"===c?l.midiTranspose=s[c]:l[c]=s[c]);if(o)for(c in o)o.hasOwnProperty(c)&&(l[c]=o[c]);return void 0===l.generateInline&&(l.generateInline=!0),l.inlineControls&&(l.inlineControls.selectionToggle=!1),n.renderEngine((function(e,t,i,n){var s="",o=a(t,l);if(l.generateInline){var c=o.inline?o.inline:o,h=e.innerHTML.indexOf("abcjs-midi-current")>=0;s+=r.generateMidiControls(t,l,c,i,h)}if(l.generateDownload){var u=o.download?o.download:o;s+=r.generateMidiDownloadLink(t,l,u,i)}e.innerHTML=s,l.generateInline&&r.attachListeners(e);var d=function(e,t){var i=e.getElementsByClassName(t);return 0===i.length?null:i[0]};if(l.generateInline&&(l.animate||l.midiListener)){var f=d(e,"abcjs-inline-midi");if(f.abcjsTune=t,f.abcjsListener=l.midiListener,f.abcjsQpm=l.qpm,f.abcjsContext=l.context,l.animate){var p=l.drumIntro?l.drumIntro:0;f.abcjsAnimate=l.animate.listener,f.abcjsTune=l.animate.target,f.abcjsTune.setTiming(l.qpm,p)}}if(l.generateInline&&l.inlineControls&&l.inlineControls.startPlaying){var m=d(e,"abcjs-midi-start");r.startPlaying(m)}}),e,t,l)}},function(e,t,i){function n(){return"performance"in window&&"now"in window.performance}n()&&("galactic"in window||(window.galactic={}),window.galactic.loc={isLocalUrl:function(){return!1}},i(39),i(40)(window.galactic),i(41),i(42),i(43),i(44),i(45),i(46),i(47),i(48),i(49),i(50));var r={};!function(){"use strict";function e(e,t){return e.replace(/%T/g,t)}r.generateMidiDownloadLink=function(e,t,i,n){var r=["abcjs-download-midi","abcjs-midi-"+n];t.downloadClass&&r.push(t.downloadClass);var a='<div class="'+r.join(" ")+'">';t.preTextDownload&&(a+=t.preTextDownload);var s,o,c=e.metaText&&e.metaText.title?e.metaText.title:"Untitled";return s=t.downloadLabel&&((o=t.downloadLabel)&&"[object Function]"==={}.toString.call(o))?t.downloadLabel(e,n):t.downloadLabel?t.downloadLabel.replace(/%T/,c):'Download MIDI for "'+c+'"',a+='<a download="'+(c=c.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_"))+'.midi" href="'+i+'">'+s+"</a>",t.postTextDownload&&(a+=t.postTextDownload),a+"</div>"},r.deviceSupportsMidi=function(){return!!n()&&"not loaded"!==r.midiInlineInitialized},r.generateMidiControls=function(t,i,r,a,s){if(!n())return'<div class="abcjs-inline-midi abcjs-midi-'+a+"\">ERROR: this browser doesn't support window.performance</div>";if("not loaded"===r.midiInlineInitialized)return'<div class="abcjs-inline-midi abcjs-midi-'+a+'">MIDI NOT PRESENT</div>';s&&g();var o=t.metaText&&t.metaText.title?t.metaText.title:"Untitled",c=i.inlineControls||{};void 0===c.standard&&(c.standard=!0),void 0===c.tooltipSelection&&(c.tooltipSelection="Click to toggle play selection/play all."),void 0===c.tooltipLoop&&(c.tooltipLoop="Click to toggle play once/repeat."),void 0===c.tooltipReset&&(c.tooltipReset="Click to go to beginning."),void 0===c.tooltipPlay&&(c.tooltipPlay="Click to play/pause."),void 0===c.tooltipProgress&&(c.tooltipProgress="Click to change the playback position."),void 0===c.tooltipTempo&&(c.tooltipTempo="Change the playback speed.");var l="";c.hide&&(l='style="display:none;"');var h='<div class="abcjs-inline-midi abcjs-midi-'+a+'" '+l+">";if(h+='<span class="abcjs-data" style="display:none;">'+JSON.stringify(r)+"</span>",i.preTextInline&&(h+='<span class="abcjs-midi-pre">'+e(i.preTextInline,o)+"</span>"),c.selectionToggle&&(h+='<button type="button" class="abcjs-midi-selection abcjs-btn" title="'+c.tooltipSelection+'"></button>'),c.loopToggle&&(h+='<button type="button" class="abcjs-midi-loop abcjs-btn" title="'+c.tooltipLoop+'"></button>'),c.standard&&(h+='<button type="button" class="abcjs-midi-reset abcjs-btn" title="'+c.tooltipReset+'"></button><button type="button" class="abcjs-midi-start abcjs-btn" title="'+c.tooltipPlay+'"></button><button type="button" class="abcjs-midi-progress-background" title="'+c.tooltipProgress+'"><span class="abcjs-midi-progress-indicator"></span></button><span class="abcjs-midi-clock"> 0:00</span>'),c.tempo){var u=t&&t.metaText&&t.metaText.tempo&&t.metaText.tempo.bpm?t.metaText.tempo.bpm:180;h+='<span class="abcjs-tempo-wrapper"><input class="abcjs-midi-tempo" value="100" type="number" min="1" max="300" data-start-tempo="'+u+'" title="'+c.tooltipTempo+'" />% (<span class="abcjs-midi-current-tempo">'+u+"</span> BPM)</span>"}return i.postTextInline&&(h+='<span class="abcjs-midi-post">'+e(i.postTextInline,o)+"</span>"),h+"</div>"};var t="https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/";r.setSoundFont=function(e){t=e};var i=!0;function a(e,t){return!!e&&(" "+e.className+" ").indexOf(" "+t+" ")>-1}function s(e,t){e&&(a(e,t)||(e.className=e.className+" "+t))}function o(e,t){e&&(e.className=e.className.replace(t,"").trim().replace("  "," "))}function c(e,t){e&&(a(e,t)?o(e,t):s(e,t))}function l(e,t){if(!e)return null;for(;e!==document.body;){if(a(e,t))return e;e=e.parentNode}return null}function h(e,t){if(!e)return null;var i=e.getElementsByClassName(t);return 0===i.length?null:i[0]}r.setInteractiveProgressBar=function(e){i=e};var u,d=!1;function f(e,t,i){MIDI.player.currentTime=0,MIDI.player.warp=e,MIDI.player.load({events:t}),i()}function p(e){for(var t=[],i=0;i<e.length;i++)e[i][0]&&e[i][0].event&&e[i][0].event.programNumber&&t.push(e[i][0].event.programNumber);return t}function m(){MIDI.player.start(MIDI.player.currentTime)}function g(){MIDI.player.stop()}function v(){MIDI.player.pause()}function b(e,t,i){var n=t/i,r=MIDI.player.duration;if(e&&v(),MIDI.player.currentTime=r*n,e)m();else if(A){var a=MIDI.player,s=a.currentTime/a.duration;A({currentTime:a.currentTime/1e3,duration:a.duration/1e3,progress:s})}}function y(e,i){var n=h(e,"abcjs-data"),r=JSON.parse(n.innerHTML),a=1,s=h(e,"abcjs-midi-tempo");if(s){var o=parseInt(s.value,10);o>0&&(a=100/o)}!function(e,i,n){d?f(e,i,n):MIDI.setup({debug:!1,soundfontUrl:t,instruments:p(i)}).then((function(){d=!0,f(e,i,n)})).catch((function(e){console.log("MIDI.setup failed:",e.message)}))}(a,r,i)}function w(){var e=h(document,"abcjs-midi-current");e&&(g(),o(e,"abcjs-midi-current"),o(h(e,"abcjs-midi-start"),"abcjs-pushed"))}function A(e){var t;if(e.duration>0&&u!==e.progress&&(u=e.progress,(t=h(document,"abcjs-midi-current"))&&a(h(t,"abcjs-midi-start"),"abcjs-loaded"))){if(!H){var i=h(t,"abcjs-midi-progress-background").offsetWidth,n=h(t,"abcjs-midi-progress-indicator"),r=i*u;n.style.left=r+"px"}var s=h(t,"abcjs-midi-clock");if(s){var o=Math.floor(e.currentTime),c=Math.floor(o/60);(o%=60)<10&&(o="0"+o),c<10&&(c=" "+c),s.innerHTML=c+":"+o}var l=t.abcjsQpm;!l&&t.abcjsTune&&t.abcjsTune.metaText&&t.abcjsTune.metaText.tempo&&(l=t.abcjsTune.metaText.tempo.bpm),l||(l=180);var d=parseInt(l,10)/60,f=e.currentTime;if(t.abcjsListener){var p=Math.floor(f*d);e.newBeat=p!==t.abcjsLastBeat,e.thisBeat=p,t.abcjsLastBeat=p,t.abcjsListener(t,e,t.abcjsContext)}if(t.abcjsAnimate){var m=d/64,g=function(e,t,i){for(var n,r,a=0,s=e.length-1;a<=s;)if((r=e[n=Math.floor((a+s)/2)]).milliseconds/1e3-i<t)a=n+1;else{if(!(r.milliseconds/1e3-i>t))return n;s=n-1}for(;e[n].milliseconds/1e3-i>=t&&n>0;)n--;return 0===n&&e[n].milliseconds/1e3-i>=t?-1:n}(t.abcjsTune.noteTimings,f,m);if(g!==t.abcjsLastIndex){var v=t.abcjsLastIndex>=0?t.abcjsTune.noteTimings[t.abcjsLastIndex]:null;t.abcjsAnimate(v,t.abcjsTune.noteTimings[g],t.abcjsContext),t.abcjsLastIndex=g}}}if(1===e.progress){t=h(document,"abcjs-midi-current");var b=h(t,"abcjs-midi-loop"),y=function(){b&&a(b,"abcjs-pushed")&&k(h(t,"abcjs-midi-start"))};setTimeout((function(){I(t,y),t&&t.abcjsAnimate&&t.abcjsAnimate(t.abcjsTune.noteTimings[t.abcjsLastIndex],null,t.abcjsContext)}),1)}}function k(e){var t=l(e,"abcjs-inline-midi");if(a(e,"abcjs-pushed"))return v(),void o(e,"abcjs-pushed");a(t,"abcjs-midi-current")?m():(w(),T(e,t,(function(){m()}))),s(e,"abcjs-pushed")}function x(e){for(var t=document.querySelectorAll(".abcjs-midi-current"),i=0;i<t.length;i++)o(t[i],"abcjs-midi-current");s(e,"abcjs-midi-current")}function T(e,t,i){s(e,"abcjs-loading"),y(t,(function(){o(e,"abcjs-loading"),x(t),s(e,"abcjs-loaded"),i&&i()})),t.abcjsLastBeat=-1,t.abcjsLastIndex=-1,function(e){e?MIDI.player.setAnimation(e):MIDI.player.clearAnimation()}(A)}function S(e){h(e,"abcjs-midi-progress-indicator").style.left="0px",h(e,"abcjs-midi-clock").innerHTML=" 0:00"}function N(e){c(e,"abcjs-pushed")}function M(e){c(e,"abcjs-pushed")}function I(e,t){var i=l(e,"abcjs-inline-midi");w(),i&&y(i,(function(){x(i),S(i),t&&t()}))}function C(e){var t=l(e,"abcjs-inline-midi"),i=h(t,"abcjs-midi-start"),n=a(i,"abcjs-pushed");a(t,"abcjs-midi-current")&&I(e,(function(){n&&(m(),s(i,"abcjs-pushed"))}))}function E(e,t){var i=0,n=e.offsetWidth;do{i+=e.offsetLeft-e.scrollLeft,e=e.offsetParent}while(e);var r=t.pageX-i;return r<0&&(r=0),r>n&&(r=n-1),r}function _(e){var t=l(e,"abcjs-inline-midi"),i=h(t,"abcjs-midi-start");return!!a(t,"abcjs-midi-current")&&a(i,"abcjs-pushed")}function B(e,t){var i=l(e,"abcjs-inline-midi"),n=h(i,"abcjs-midi-start"),r=e.offsetWidth,s=E(e,t);a(i,"abcjs-midi-current")?b(_(e),s,r):T(n,i,(function(){b(!1,s,r)}))}function P(e){for(var t=parseInt(e.value,10),i=parseInt(e.getAttribute("data-start-tempo"),10);e&&!a(e,"abcjs-midi-current-tempo");)e=e.nextSibling;e.innerHTML=Math.floor(t*i/100),function(e){MIDI.player.warp=e>0?100/e:1}(t)}r.startPlaying=function(e){var t=e;a(e,"abcjs-inline-midi")&&(t=e.querySelector(".abcjs-midi-start")),k(t)},r.stopPlaying=function(){g();var e=document.querySelector(".abcjs-midi-current");if(e){S(e);var t=h(e,"abcjs-midi-start");t&&o(t,"abcjs-pushed")}},r.restartPlaying=function(){C(document.querySelector(".abcjs-midi-current"))},r.setLoop=function(e,t){var i=e.querySelector(".abcjs-midi-loop");i&&(t?s(i,"abcjs-pushed"):o(i,"abcjs-pushed"))},r.setRandomProgress=function(e){var t=a(h(document.querySelector(".abcjs-midi-current"),"abcjs-midi-start"),"abcjs-pushed"),i=MIDI.player.duration;t&&v(),MIDI.player.currentTime=i*e,t&&m()};var D,L,H=!1,V=!1;r.attachListeners=function(e){for(var t=e.querySelectorAll(".abcjs-inline-midi"),n=0;n<t.length;n++){var s=t[n];s.addEventListener("click",(function(e){for(var t=(e=e||window.event).target||e.srcElement;t&&t!==document.body;){if(a(t,"abcjs-midi-start"))return void k(t);if(a(t,"abcjs-midi-selection"))return void N(t);if(a(t,"abcjs-midi-loop"))return void M(t);if(a(t,"abcjs-midi-reset"))return void C(t);if(a(t,"abcjs-midi-progress-background"))return void(i&&B(t,e));t=t.parentNode}})),s.addEventListener("change",(function(e){for(var t=(e=e||window.event).target||e.srcElement;t!==document.body;)a(t,"abcjs-midi-tempo")&&P(t),t=t.parentNode})),s.addEventListener("mousedown",(function(e){if(i){var t=(e=e||window.event).target||e.srcElement;a(t,"abcjs-midi-progress-indicator")&&(D=t,H=!0,L=l(t,"abcjs-midi-progress-background"))}}))}if(V||(V=!0,document.body.addEventListener("mousemove",(function(e){if(H){(e=e||window.event).preventDefault();var t=E(L,e);D.style.left=t+"px"}}),!0),document.body.addEventListener("mouseup",(function(e){if(H){(e=e||window.event).preventDefault();var t=E(L,e),i=L.offsetWidth;b(_(L),t,i),B(L,e),H=!1,D=null,L=null}}))),void 0===window.MIDI){r.midiInlineInitialized="not loaded";for(var o=document.getElementsByClassName("abcjs-inline-midi"),c=0;c<o.length;c++)o[c].innerHTML="MIDI NOT PRESENT"}}}(),e.exports=r},function(e,t,i){"undefined"==typeof galactic&&(galactic={}),function(t){"use strict";t.request=function(e,i,n,r){"string"==typeof e&&(e={url:e});var a=e.data,s=e.url,o=e.method||(e.data?"POST":"GET"),c=e.format,l=e.headers,h=e.mimeType,u=e.responseType,d=e.withCredentials||!1;r=r||e.onprogress,i=i||e.onsuccess,n=n||e.onerror;if("undefined"==typeof NodeFS||!t.loc.isLocalUrl(s)){var f=new XMLHttpRequest;if(f.open(o,s,!0),l)for(var p in l)f.setRequestHeader(p,l[p]);else a&&f.setRequestHeader("Content-type","application/x-www-form-urlencoded");return h&&f.overrideMimeType(h),u&&(f.responseType=u),d&&(f.withCredentials=!0),n&&"onerror"in f&&(f.onerror=n),r&&f.upload&&"onprogress"in f.upload&&(a?f.upload.onprogress=function(e){r.call(f,e,event.loaded/event.total)}:f.addEventListener("progress",(function(e){var t=0;if(e.lengthComputable)t=e.total;else if(f.totalBytes)t=f.totalBytes;else{var i=parseInt(f.getResponseHeader("Content-Length-Raw"));if(!isFinite(i))return;f.totalBytes=t=i}r.call(f,e,e.loaded/t)}),!1)),f.onreadystatechange=function(e){if(4===f.readyState)if(200===f.status||304===f.status||308===f.status||0===f.status&&window.top.cordova){if(i){var t;if("json"===c)try{t=JSON.parse(e.target.response)}catch(t){n&&n.call(f,e)}else t="xml"===c?e.target.responseXML:"text"===c?e.target.responseText:e.target.response;i.call(f,e,t)}}else n&&n.call(f,e)},f.send(a),f}NodeFS.readFile(s,"utf8",(function(e,t){e?n&&n(e):i&&i({responseText:t},t)}))},e.exports&&(e.exports=t.request)}(galactic)},function(e,t,i){"undefined"==typeof galactic&&(galactic={}),function(t){"use strict";t.module=t.module||{},t.module.DOMMisc=function(e){var t,i,n,r=e.util||(e.util={});r.inherits=function(e,t){function i(){}i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e},r.errorHandler=function(e){return function(){console.warn(e,arguments)}},r.requestKioskMode=function(){e.client.nodewebkit&&win.enterKioskMode()},r.diff=function(e,t,i){if(e!==t){var n=new e.constructor,a=new t.constructor,s=!0;for(var o in e)if(i&&-1!==i.indexOf(o))n[o]=e[o],a[o]=t[o];else if(o in t){if(e[o]!==t[o])if("object"==typeof e[o]&&"object"==typeof t[o]){var c=r.diff(e[o],t[o],i);void 0!==c&&(s=!1,n[o]=c.from,a[o]=c.to)}else s=!1,n[o]=e[o],a[o]=t[o]}else s=!1,n[o]=e[o],a[o]=t[o];for(var o in t)o in e||(s=!1,n[o]=e[o],a[o]=t[o]);return s?void 0:{from:n,to:a}}},r.sort=function(e){var t,i=r.sort[e.fn]||e.fn,n=e.data||e,a=e.param;return Array.isArray(n)?t=a?n.sort((function(e,t){return i(e[a],t[a])})):n.sort(i):(t={},Object.keys(n).sort(i).forEach((function(e){t[e]=n[e]}))),t},r.sort.numeric=function(e,t){return e-t},r.sort.natural=function(e,t){var i=/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?$|^0x[0-9a-f]+$|[0-9]+)/gi,n=/(^[ ]*|[ ]*$)/g,r=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,a=/^0x[0-9a-f]+$/i,s=/^0/,o=e.toString().replace(n,"")||"",c=t.toString().replace(n,"")||"",l=o.replace(i,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),h=c.replace(i,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),u=parseInt(o.match(a))||1!=l.length&&o.match(r)&&Date.parse(o),d=parseInt(c.match(a))||u&&c.match(r)&&Date.parse(c)||null;if(d){if(u<d)return-1;if(u>d)return 1}for(var f=0,p=Math.max(l.length,h.length);f<p;f++){var m=!(l[f]||"").match(s)&&parseFloat(l[f])||l[f]||0,g=!(h[f]||"").match(s)&&parseFloat(h[f])||h[f]||0;if(isNaN(m)!==isNaN(g))return isNaN(m)?1:-1;if(typeof m!=typeof g&&(m+="",g+=""),m<g)return-1;if(m>g)return 1}return 0},r.getItems=function(e,t){var i=e.length,n={};r.each(e,(function(e){r.getItem(e,(function(r){n[e]=r,--i||t(n)}))}))},r.getItem=function(t,i){i=i||function(e){console.log(e)};var n=function(e){if(e)try{e=JSON.parse(e)}catch(e){}i(e)};if(r.exists("chrome.storage.local"))chrome.storage.local.get(t,(function(e){n(e[t])}));else{var a=(e.feature&&e.feature.prefix||"")+"/"+t,s=localStorage.getItem(a)||"";n(s)}},r.setItem=function(t,i){if(r.exists("chrome.storage.local")){var n={};n[t]=i,chrome.storage.local.set(n)}else{var a=(e.feature&&e.feature.prefix||"")+"/"+t;localStorage.setItem(a,i)}},r.Canvas=function(t,i,n){if("undefined"==typeof document){if(void 0===Canvas)return{ctx:{}};var r=new Canvas}else{r=document.createElement("canvas");"function"==typeof FlashCanvas&&(r.onload=e.client.fn.detect)}return r.ctx=r.getContext(n||"2d"),isFinite(t)&&(r.width=t||1),isFinite(i)&&(r.height=i||1),r},r.Canvas.resize=function(e,t,i){t&&i?(e.width=t,e.height=i):e.width=e.width},r.Canvas.clear=function(e){e.ctx.clearRect(0,0,e.width,e.height)},r.Context3d=function(e,t){return r.Canvas(e,t,"webgl").ctx},r.Context2d=function(e,t){return r.Canvas(e,t,"2d").ctx},r.json={},r.json.pretty=function(e){return JSON.stringify(e,null,"\t")},r.json.stringify=function(e){return JSON.stringify(e,(function(e,t){if("object"==typeof t){if(null===t)return;if(t.nodeName)return;if(t.tagName)return}return t}))},r.timestamp=function(){if("object"==typeof window){var e=window.performance;if(e&&e.now)return e.now.bind(e)}return Date.now}(),r.perf=function(e,t,i){if(!t||!e){var n=r.timestamp();return function(e,t){var i=r.timestamp(),a=Math.round(i-n);return e&&console.log(a+"ms",e),t&&(n=i),a}}for(var a=r.perf(),s=0;s<t;s++)e();console.log(a()+"ms",i||"")},r.exists=function(e,t){try{for(var i=e.split("."),n=t||window,r=0,a=i.length;r<a;r++){var s=i[r];if(null==n[s])return!1;n=n[s]}return!0}catch(e){return!1}},r.copy=(t="function"==typeof CanvasPattern,i=function(e){if(!e||"object"!=typeof e)return e;if(!(e.nodeType||t&&e instanceof CanvasPattern)){if(e.clone&&"function"==typeof e.clone)return e.clone();if(e.constructor){var n=new e.constructor;for(var r in e){var a=e[r];n[r]=a&&"object"==typeof a?i(a):a}return n}}}),r.copyInto=n=function(e,t,i){if(i=i||{},e&&"object"==typeof e)for(var r in e){var a=t[r],s=e[r],o=i.filter;if(!o||!o(s,a)){var c=typeof s;if(s&&"object"===c)if(s.nodeType){if(!i.referenceNodes)continue;t[r]=s}else t[r]=n(s,typeof a===c?a:new s.constructor,i);else t[r]=s}}return t},r.count=function(e,t,i){if(!e)return 0;if(isFinite(e.length))return e.length;if("object"==typeof e){var n=0,r=void 0!==t;if(r&&void 0!==i)for(var a in e)e[a]&&e[a][t]===i&&++n;else if(r)for(var a in e)void 0!==e[a]&&++n;else for(var a in e)++n;return n}},r.isEmpty=function(e){if(null==e)return!0;if(e.length>=0)return!e.length;for(var t in e)return!1;return!0},r.isNotEmpty=function(e){return!r.isEmpty(e)},r.clamp=function(e,t,i){return i<e?e:i>t?t:i},r.clampFinite=function(e){var t=r.INFINITY;return e>+t&&(e=+t),e<-t&&(e=-t),e},r.arrayEmpty=function(e){e.splice(0,e.length)},r.arrayIntersects=function(e,t){return t.some((function(t){return-1!==e.indexOf(t)}))},r.inArray=function(e,t){return-1!==e.indexOf(t)},r.isArray=function(e){return Array.isArray(e)||e instanceof NodeList},r.each=function(e,t){if(r.isArray(e))for(var i=0;i<e.length;i++)t(e[i],i);else for(var n in e)t(e[n],n)},r.equals=function(e,t){return"object"==typeof e?"object"==typeof t&&r.json.stringify(e)===r.json.stringify(t):e===t},r.objectToArray=function(e){var t=[];for(var i in e)t.push(e[i]);return t},r.arrayToObject=function(e){for(var t={},i=0,n=e.length;i<n;i++)t[e[i]]=!0;return t},r.addFileInput=function(t,i){e.uploader.addFileInput({target:t,onchange:function(t){t.fileInput.value="",t.addMedia({openAsNew:i,self:e.uploader})}})},r.bytesToSize=function(e,t){if(e){t=t||1;var i=Math.floor(Math.log(Math.abs(e))/Math.log(1024));return(e/Math.pow(1024,i)).toFixed(t)+["Bytes","kb","mb","gb","tb"][i]}return"0Bytes"},r.getTimeFormat=function(e,t){var i=(e/=1e3)/3600>>0,n=(e-3600*i)/60>>0,r=e-3600*i-60*n>>0;return t?(i<10&&(i="0"+i),n<10&&(n="0"+n),r<10&&(r="0"+r),i+":"+n+":"+r):{hours:i,minutes:n,seconds:r}},r.require=function(e){"string"==typeof e&&(e={url:e});var t=e.url,i=e.type||(-1!==t.indexOf(".css")?"css":"js"),n=e.async||!1,r=e.onsuccess;if("css"===i)n?setTimeout(o,0):o();else{var a=document.createElement("script");if(a.src=t,a.async=n,r){var s=!1;a.onload=a.onreadystatechange=function(){if(!1===s){var e=a.readyState;e&&!/loaded|complete/.test(e)||(s=!0,r(),a.onload=a.onreadystatechange=null)}}}document.head.appendChild(a)}function o(){var e=document.createElement("link");e.href=t,e.setAttribute("type","text/css"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)}},r.isEditingText=function(){var e=document.activeElement;if(!e)return!1;var t=e.nodeName;return("INPUT"===t||"TEXTAREA"===t||"true"===e.contentEditable)&&!e.classList.contains("sk-canvas-dummy")},r.pending=function(e,t){var i=e;return{add:function(e){i+=e||1},next:function(){--i||t()}}}},e.exports?e.exports=t.module.DOMMisc:t.module.DOMMisc(galactic)}(galactic)},function(e,t){!function(){"use strict";var e,t={},i={};function n(i){return new Promise((function(n,c){var l=i.format,h=i.codec,u=i.base64,d="audio/"+l+'; codecs="'+h+'"',f="data:"+d+";base64,"+u,p=new Audio;function m(i){function a(e,i,n,r){!t[i]&&(t[i]=r),!t[n]&&(t[n]=r),!e[i]&&(e[i]=r),e[n]=r}a(t.audio,l,h,i),t.audioapi?function(t){return new Promise((function(i,n){(e=e||new r).decodeAudioData(o(t),i,n).then((function(e){})).catch((function(e){})),setTimeout(n,250)}))}(f).then((function(){a(t.audioapi,l,h,!0),n()}),(function(e){a(t.audioapi,l,h,!1),n()})):n()}p.canPlayType(d).replace(/no/i,"")?(p.id="audio",p.controls=!1,p.setAttribute("autobuffer",!0),p.setAttribute("preload","auto"),p.addEventListener("error",(function e(t){var i;a&&!p.testedBlobURL?(p.testedBlobURL=!0,p.src=a((i=f,new Blob([o(i)],{type:s(i)})))):(p.removeEventListener("error",e),m(!1))})),p.addEventListener("canplaythrough",(function e(){p.removeEventListener("canplaythrough",e),m(!0)})),p.src=f,p.load()):m(!1)}))}var r=self.AudioContext||self.mozAudioContext||self.webkitAudioContext,a=(self.URL||self.webkitURL||{}).createObjectURL;function s(e){return(e=e.split(","))[0].split(":")[1].split(";")[0]}function o(e){e=e.split(",");for(var t=atob(e[1]),i=new ArrayBuffer(t.length),n=new Uint8Array(i),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return i}function c(e,t,n){i[e+"_"+t]={format:e,codec:t,base64:n}}c("mpeg","mp3","//MUxAAB6AXgAAAAAPP+c6nf//yi/6f3//MUxAMAAAIAAAjEcH//0fTX6C9Lf//0//MUxA4BeAIAAAAAAKX2/6zv//+IlR4f//MUxBMCMAH8AAAAABYWalVMQU1FMy45//MUxBUB0AH0AAAAADkuM1VVVVVVVVVV//MUxBgBUATowAAAAFVVVVVVVVVVVVVV"),c("ogg","opus","T2dnUwACAAAAAAAAAAAAAAAAAAAAAEVP7KoBE09wdXNIZWFkAQEAD0SsAAAAAABPZ2dTAAAAAAAAAAAAAAAAAAABAAAAVewFUgEYT3B1c1RhZ3MIAAAAUmVjb3JkZXIAAAAAT2dnUwAEwAMAAAAAAAAAAAAAAgAAAHSiY8oBA/j//g=="),c("ogg","vorbis","T2dnUwACAAAAAAAAAAD/QwAAAAAAAM2LVKsBHgF2b3JiaXMAAAAAAUSsAAAAAAAAgLsAAAAAAAC4AU9nZ1MAAAAAAAAAAAAA/0MAAAEAAADmvOe6Dy3/////////////////MgN2b3JiaXMdAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAwNzA2MjIAAAAAAQV2b3JiaXMfQkNWAQAAAQAYY1QpRplS0kqJGXOUMUaZYpJKiaWEFkJInXMUU6k515xrrLm1IIQQGlNQKQWZUo5SaRljkCkFmVIQS0kldBI6J51jEFtJwdaYa4tBthyEDZpSTCnElFKKQggZU4wpxZRSSkIHJXQOOuYcU45KKEG4nHOrtZaWY4updJJK5yRkTEJIKYWSSgelU05CSDWW1lIpHXNSUmpB6CCEEEK2IIQNgtCQVQAAAQDAQBAasgoAUAAAEIqhGIoChIasAgAyAAAEoCiO4iiOIzmSY0kWEBqyCgAAAgAQAADAcBRJkRTJsSRL0ixL00RRVX3VNlVV9nVd13Vd13UgNGQVAAABAEBIp5mlGiDCDGQYCA1ZBQAgAAAARijCEANCQ1YBAAABAABiKDmIJrTmfHOOg2Y5aCrF5nRwItXmSW4q5uacc845J5tzxjjnnHOKcmYxaCa05pxzEoNmKWgmtOacc57E5kFrqrTmnHPGOaeDcUYY55xzmrTmQWo21uaccxa0pjlqLsXmnHMi5eZJbS7V5pxzzjnnnHPOOeecc6oXp3NwTjjnnHOi9uZabkIX55xzPhmne3NCOOecc84555xzzjnnnHOC0JBVAAAQAABBGDaGcacgSJ+jgRhFiGnIpAfdo8MkaAxyCqlHo6ORUuoglFTGSSmdIDRkFQAACAAAIYQUUkghhRRSSCGFFFKIIYYYYsgpp5yCCiqppKKKMsoss8wyyyyzzDLrsLPOOuwwxBBDDK20EktNtdVYY62555xrDtJaaa211koppZRSSikIDVkFAIAAABAIGWSQQUYhhRRSiCGmnHLKKaigAkJDVgEAgAAAAgAAADzJc0RHdERHdERHdERHdETHczxHlERJlERJtEzL1ExPFVXVlV1b1mXd9m1hF3bd93Xf93Xj14VhWZZlWZZlWZZlWZZlWZZlWYLQkFUAAAgAAIAQQgghhRRSSCGlGGPMMeegk1BCIDRkFQAACAAgAAAAwFEcxXEkR3IkyZIsSZM0S7M8zdM8TfREURRN01RFV3RF3bRF2ZRN13RN2XRVWbVdWbZt2dZtX5Zt3/d93/d93/d93/d93/d1HQgNWQUASAAA6EiOpEiKpEiO4ziSJAGhIasAABkAAAEAKIqjOI7jSJIkSZakSZ7lWaJmaqZneqqoAqEhqwAAQAAAAQAAAAAAKJriKabiKaLiOaIjSqJlWqKmaq4om7Lruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7rui4QGrIKAJAAANCRHMmRHEmRFEmRHMkBQkNWAQAyAAACAHAMx5AUybEsS9M8zdM8TfRET/RMTxVd0QVCQ1YBAIAAAAIAAAAAADAkw1IsR3M0SZRUS7VUTbVUSxVVT1VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVTVN0zRNIDRkJQAABADAYo3B5SAhJSXl3hDCEJOeMSYhtV4hBJGS3jEGFYOeMqIMct5C4xCDHggNWREARAEAAMYgxxBzyDlHqZMSOeeodJQa5xyljlJnKcWYYs0oldhSrI1zjlJHraOUYiwtdpRSjanGAgAAAhwAAAIshEJDVgQAUQAAhDFIKaQUYow5p5xDjCnnmHOGMeYcc44556B0UirnnHROSsQYc445p5xzUjonlXNOSiehAACAAAcAgAALodCQFQFAnACAQZI8T/I0UZQ0TxRFU3RdUTRd1/I81fRMU1U90VRVU1Vt2VRVWZY8zzQ901RVzzRV1VRVWTZVVZZFVdVt03V123RV3ZZt2/ddWxZ2UVVt3VRd2zdV1/Zd2fZ9WdZ1Y/I8VfVM03U903Rl1XVtW3VdXfdMU5ZN15Vl03Vt25VlXXdl2fc103Rd01Vl2XRd2XZlV7ddWfZ903WF35VlX1dlWRh2XfeFW9eV5XRd3VdlVzdWWfZ9W9eF4dZ1YZk8T1U903RdzzRdV3VdX1dd19Y105Rl03Vt2VRdWXZl2fddV9Z1zzRl2XRd2zZdV5ZdWfZ9V5Z13XRdX1dlWfhVV/Z1WdeV4dZt4Tdd1/dVWfaFV5Z14dZ1Ybl1XRg+VfV9U3aF4XRl39eF31luXTiW0XV9YZVt4VhlWTl+4ViW3feVZXRdX1ht2RhWWRaGX/id5fZ943h1XRlu3efMuu8Mx++k+8rT1W1jmX3dWWZfd47hGDq/8OOpqq+brisMpywLv+3rxrP7vrKMruv7qiwLvyrbwrHrvvP8vrAso+z6wmrLwrDatjHcvm4sv3Acy2vryjHrvlG2dXxfeArD83R1XXlmXcf2dXTjRzh+ygAAgAEHAIAAE8pAoSErAoA4AQCPJImiZFmiKFmWKIqm6LqiaLqupGmmqWmeaVqaZ5qmaaqyKZquLGmaaVqeZpqap5mmaJqua5qmrIqmKcumasqyaZqy7LqybbuubNuiacqyaZqybJqmLLuyq9uu7Oq6pFmmqXmeaWqeZ5qmasqyaZquq3meanqeaKqeKKqqaqqqraqqLFueZ5qa6KmmJ4qqaqqmrZqqKsumqtqyaaq2bKqqbbuq7Pqybeu6aaqybaqmLZuqatuu7OqyLNu6L2maaWqeZ5qa55mmaZqybJqqK1uep5qeKKqq5ommaqqqLJumqsqW55mqJ4qq6omea5qqKsumatqqaZq2bKqqLZumKsuubfu+68qybqqqbJuqauumasqybMu+78qq7oqmKcumqtqyaaqyLduy78uyrPuiacqyaaqybaqqLsuybRuzbPu6aJqybaqmLZuqKtuyLfu6LNu678qub6uqrOuyLfu67vqucOu6MLyybPuqrPq6K9u6b+sy2/Z9RNOUZVM1bdtUVVl2Zdn2Zdv2fdE0bVtVVVs2TdW2ZVn2fVm2bWE0Tdk2VVXWTdW0bVmWbWG2ZeF2Zdm3ZVv2ddeVdV/XfePXZd3murLty7Kt+6qr+rbu+8Jw667wCgAAGHAAAAgwoQwUGrISAIgCAACMYYwxCI1SzjkHoVHKOecgZM5BCCGVzDkIIZSSOQehlJQy5yCUklIIoZSUWgshlJRSawUAABQ4AAAE2KApsThAoSErAYBUAACD41iW55miatqyY0meJ4qqqaq27UiW54miaaqqbVueJ4qmqaqu6+ua54miaaqq6+q6aJqmqaqu67q6Lpqiqaqq67qyrpumqqquK7uy7Oumqqqq68quLPvCqrquK8uybevCsKqu68qybNu2b9y6ruu+7/vCka3rui78wjEMRwEA4AkOAEAFNqyOcFI0FlhoyEoAIAMAgDAGIYMQQgYhhJBSSiGllBIAADDgAAAQYEIZKDRkRQAQJwAAGEMppJRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkgppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkqppJRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoplVJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSCgCQinAAkHowoQwUGrISAEgFAACMUUopxpyDEDHmGGPQSSgpYsw5xhyUklLlHIQQUmktt8o5CCGk1FJtmXNSWosx5hgz56SkFFvNOYdSUoux5ppr7qS0VmuuNedaWqs115xzzbm0FmuuOdecc8sx15xzzjnnGHPOOeecc84FAOA0OACAHtiwOsJJ0VhgoSErAYBUAAACGaUYc8456BBSjDnnHIQQIoUYc845CCFUjDnnHHQQQqgYc8w5CCGEkDnnHIQQQgghcw466CCEEEIHHYQQQgihlM5BCCGEEEooIYQQQgghhBA6CCGEEEIIIYQQQgghhFJKCCGEEEIJoZRQAABggQMAQIANqyOcFI0FFhqyEgAAAgCAHJagUs6EQY5Bjw1BylEzDUJMOdGZYk5qMxVTkDkQnXQSGWpB2V4yCwAAgCAAIMAEEBggKPhCCIgxAABBiMwQCYVVsMCgDBoc5gHAA0SERACQmKBIu7iALgNc0MVdB0IIQhCCWBxAAQk4OOGGJ97whBucoFNU6iAAAAAAAAwA4AEA4KAAIiKaq7C4wMjQ2ODo8AgAAAAAABYA+AAAOD6AiIjmKiwuMDI0Njg6PAIAAAAAAAAAAICAgAAAAAAAQAAAAICAT2dnUwAE7AwAAAAAAAD/QwAAAgAAADuydfsFAQEBAQEACg4ODg=="),self.AudioSupports=function(){return t.audio=!!self.Audio&&{},function(){if(navigator.requestMIDIAccess){if(-1!==Function.prototype.toString.call(navigator.requestMIDIAccess).indexOf("[native code]"))return t.midiapi={};for(var e=0;navigator.plugins.length>e;e++){if(navigator.plugins[e].name.indexOf("Jazz-Plugin")>=0)return t.midiapi={}}}t.midiapi=!1}(),t.audioapi=!!r&&{},new Promise((function(e,r){if(!t.audio)return e();setTimeout(e,5e3),Promise.all([n(i.mpeg_mp3),n(i.ogg_opus),n(i.ogg_vorbis)]).then(e)})).then((function(){return t}))},self.AudioSupports.register=c}()},function(e,t){"undefined"==typeof galactic&&(galactic={}),function(e){"use strict";galactic.EventEmitter=function(e){var t=1;function i(e,i){if("function"==typeof i)return e+"."+(i.uniqueId||(i.uniqueId=t++));console.warn(e,"listener does not exist")}function n(t){return e.on[t]?e.on[t]:e.on[t]=function(t){var n={};function r(){var t=!1;for(var i in n)n[i].apply(e,arguments)&&(t=!0);return t}return r.add=function(e){var r=i(t,e);if(void 0===n[r]&&e)return n[r]=e,{add:function(){n[r]=e},remove:function(){delete n[r]}}},r.remove=function(e){var r=i(t,e);void 0!==n[r]&&e&&delete n[r]},r.stack=n,r}(t)}e.on=function(e,t){return n(e).add(t)},e.off=function(t,i){i?n(t).remove(i):delete e.on[t]},e.emit=function(t){var i=e.on[t];if(i){var n=Array.prototype.slice.call(arguments).slice(1);return i.apply(e,n)}}}}()},function(e,t){"undefined"==typeof MIDI&&(MIDI={}),function(e){"use strict";e.DEBUG=!1,e.USE_XHR=!0,e.PATH="./soundfont/",e.DEBUG&&console&&console.log&&console.log("%c♥ MIDI.js 0.4.2 ♥","color: red;");var t={midiapi:0,audioapi:1,audio:2},i={ogg:0,mp3:1};e.setup=function(n){return new Promise((function(r,a){"function"==typeof(n=n||{})&&(n={onsuccess:n}),isFinite(n.debug)&&(e.DEBUG=!!n.debug),n.soundfontUrl&&(e.PATH=n.soundfontUrl),AudioSupports().then((function(s){function o(i){i=i.toLowerCase();var c=e.adaptor.format;function l(e){var n=parseInt(t[i])+1,r=Object.keys(t)[n];r?o(r):a&&a({message:"All plugins failed."})}s[i][c]?(n.tech=i,e.loadProgram(n).then((function(){r()})).catch((function(t){e.DEBUG&&console.error(i,t),l(t)}))):l()}!function(){for(var t in e.adaptor)delete e.adaptor[t];for(var n in i)if(s[n])return e.adaptor.format=n,!0}()?a({message:"MIDIJS: Browser does not have necessary audio support."}):s[location.hash.substr(1)]?o(location.hash.substr(1)):s.midi_api?o("midiapi"):window.AudioContext?o("audioapi"):window.Audio&&o("Audio")}),a)}))},e.loadProgram=function(t){return t||(t={}),"object"==typeof t||(t={instrument:t}),t.instruments=function(){var i=t.instruments||t.instrument||e.channels[0].program;"object"==typeof i?Array.isArray(i)||(i=Object.keys(i)):i=void 0===i?[]:[i];for(var n=0;n<i.length;n++){var r=i[n];if(r>=0){var a=e.getProgram(r);a&&(i[n]=a.nameId)}}0===i.length&&(i=["acoustic_grand_piano"]);return i}(),t.tech=t.tech||e.adaptor.id,e.adaptors._load(t)}}(MIDI)},function(e,t){"undefined"==typeof MIDI&&(MIDI={}),function(e){"use strict";var t=e.adaptor={},i=e.adaptors={},n=i._requests={};i._load=function(a){return r(),"midiapi"===a.tech?i.midiapi.connect(a):function(r){return new Promise((function(e,s){for(var o=t.format.split("_").shift(),c=r.instruments,l=r.onprogress,h=r.tech,u=c.length,d=0;d<u;d++){var f=c[d],p=n[f]||(n[f]={});p.loaded?m([f]):p.loading?p.queue.push(e):(p.queue=[e],p.loading=!0,a(f,o).then((function(e){m(e)})).catch(s))}function m(e){n[e].loading=!1;var t=!1;for(var a in n)n.hasOwnProperty(a)&&n[a].loading&&(t=!0);t||(!function e(t,i){e.progress!==t&&(e.progress=t,l&&l("load",t,i))}(1),i[h].connect(r).then((function(){c.forEach((function(e){for(var t,i=n[e];t=i.queue.pop();)t()}))})).catch(s))}}));function a(t,i,n){return new Promise((function(r,a){var s=e.PATH+t+"-"+i+".js";e.USE_XHR?galactic.request({url:s,format:"text",onerror:a,onprogress:n,onsuccess:function(e,i){var n=document.createElement("script");n.language="javascript",n.type="text/javascript",n.text=i,document.body.appendChild(n),r(t)}}):dom.loadScript.add({url:s,verify:'MIDI.Soundfont["'+t+'"]',onerror:a,onsuccess:r})}))}}(a)};function r(){var i;function n(t,i,n){e.adaptor.id&&(e.player.playing?e.loadProgram(i).then(e.player.start):e.loadProgram(i))}function r(e,t){return{configurable:!0,get:function(){return t},set:function(i){t=i,a(e)}}}function a(i){e.DEBUG&&console.warn("The "+t.id+' adaptor does not support "'+i+'".')}function s(e){return function(){a(e)}}i=performance.now(),Object.defineProperties(e,{currentTime:{configurable:!0,get:function(){return performance.now()-i}}}),e.set=function(t,i,n){if(n)return setTimeout((function(){e[t]=i}),1e3*n);e[t]=i},e.messageHandler={},e.programChange=function(t,i,r){var a=e.getProgram(i);if(a&&Number.isFinite(i=a.id)){var s=e.channels[t];if(s&&s.program!==i){r?setTimeout((function(){s.program=i}),r):s.program=i;var o=e.messageHandler.program||n;o&&o(t,i,r)}}},Object.defineProperties(e,{context:r(null),detune:r("detune",0),fx:r("fx",null),mute:r("mute",!1),volume:r("volume",1)}),e.send=s("send"),e.noteOn=s("noteOn"),e.noteOff=s("noteOff"),e.cancelNotes=s("cancelNotes"),e.setController=s("setController"),e.setEffects=s("setEffects"),e.setPitchBend=s("setPitchBend"),e.setProperty=s("setProperty"),e.setVolume=s("setVolume"),e.iOSUnlock=s("iOSUnlock")}r()}(MIDI)},function(e,t){window.Audio&&function(){"use strict";var e=MIDI.adaptors.audio={},t=[],i=-1,n=[],r={};function a(e,t,i,n){var r,a=MIDI.getNoteName(t);return n?r=setTimeout((function(){l(e,a,i)}),1e3*n):l(e,a,i),{cancel:function(){clearTimeout(r)}}}function s(e,t,i){return{cancel:function(){clearTimeout(void 0)}}}function o(e,t,i,n){for(var r=0;r<t.length;r++){var a=t[r],s=MIDI.getNoteName(a);if(s){if(n)return setTimeout((function(){l(e,s,i)}),1e3*n);l(e,s,i)}}}function c(e,t,i){for(var n=0;n<t.length;n++){var r=t[n],a=MIDI.getNoteName(r);if(a){if(i)return setTimeout((function(){h(e,a)}),1e3*i);h(e,a)}}}function l(e,a,s){var o=MIDI.channels[e];if(o){var c=o.program,l=MIDI.getProgram(c).nameId,h=l+""+a,u=(i+1)%t.length,d=MIDI.Soundfont[l];if(d){var f=t[u];f.src=d[a],f._channel=o,f._volume=s,f._id=h,r.volume(f),f.play(),i=u,n[u]=f}else MIDI.DEBUG&&console.log("404",l)}}function h(e,r){var a=MIDI.channels[e];if(a)for(var s=a.program,o=MIDI.getProgram(s).nameId+""+r,c=0,l=t.length;c<l;c++){var h=(c+i+1)%l,u=n[h];if(u&&u._id===o)return t[h].pause(),void(n[h]=null)}}e.connect=function(e){MIDI.adaptor.id="audio";for(var i=0;i<12;i++)t[i]||(t[i]=new Audio);return function(){function e(e,t,i){return{configurable:!0,get:function(){return t},set:function(n){typeof n===e&&(t=n,i&&i())}}}function t(e){return function(){for(var t in n)r[e](n[t])}}Object.defineProperties(MIDI,{mute:e("boolean",!1,t("volume")),volume:e("number",1,t("volume"))})}(),r.volume=function(e){var t=e._channel;if(MIDI.mute||t.mute)e.volume=0;else{var i=MIDI.volume*t.volume*e._volume;e.volume=Math.min(1,Math.max(-1,2*i))}},MIDI.noteOn=function(e,t,i,n){switch(typeof t){case"number":return a.apply(null,arguments);case"string":break;case"object":return o.apply(null,arguments)}},MIDI.noteOff=function(e,t,i){switch(typeof t){case"number":return s.apply(null,arguments);case"string":break;case"object":return c.apply(null,arguments)}},MIDI.stopAllNotes=function(e){if(isFinite(e));else for(var i=0,n=t.length;i<n;i++)t[i].pause()},new Promise((function(e,t){var i=MIDI.adaptors._requests,n=MIDI.Soundfont;for(var r in n){var a=i[r]||(i[r]={});a.loaded=!0,a.loading=!1}e()}))}}()},function(e,t){window.AudioContext&&function(){"use strict";var e=MIDI.adaptors,t=e.audioapi={},i=((i=new(window.AudioContext||window.webkitAudioContext)).hasDetune=function(){i.createBuffer(1,1,44100);var e=i.createBufferSource();try{return e.detune.value=1200,!0}catch(e){return!1}}(),i),n={},r=e._requests,a={},s={};function o(e,t){var i=s[e];for(var n in i)for(var r=i[n],a=0;a<r.length;a++)t(r,r[a])}t.connect=function(e){return MIDI.adaptor.id="audioapi",function(){function e(e,t,i){return{configurable:!0,get:function(){return t},set:function(n){typeof n===e&&(t=n,i&&i())}}}function t(e){return function(){MIDI.setProperty(e)}}Object.defineProperties(MIDI,{context:{configurable:!0,get:function(){return i},set:function(e){i=e}},detune:e("number",0,t("detune")),fx:e("object",null,t("fx")),mute:e("boolean",!1,t("volume")),volume:e("number",1,t("volume"))}),MIDI.setProperty=function(e,t){if(a[e])if(isFinite(t))"fx"===e&&r(MIDI.channels[t]),n();else for(var t in"fx"===e&&r(MIDI),s)n();function n(){o(t,(function(t,i){a[e](i)}))}function r(e){var t=e.fxNodes||(e.fxNodes={});for(var n in t)t[n].disconnect(i.destination),delete t[n];if(i.tunajs)for(var r=e.fx,a=0;a<r.length;a++){var s=r[a],o=s.type,c=new i.tunajs[o](s);c.connect(i.destination),t[o]=c}else MIDI.DEBUG&&console.error("fx not installed.",arguments)}}}(),a.volume=function(e){var t=e.gainNode.gain,n=e._channel;if(MIDI.mute||n.mute)t.value=0;else{var r=MIDI.volume*n.volume*e._volume;t.value=Math.min(2,Math.max(0,r))}t._fadeout&&(t.cancelScheduledValues(i.currentTime),t.linearRampToValueAtTime(t.value,t._startAt),t.linearRampToValueAtTime(0,t._startAt+.3))},a.detune=function(e){if(i.hasDetune){var t=e._channel,n=MIDI.detune+t.detune;n&&(e.detune.value=n)}},a.fx=function(e){var t=e._channel,i=e.gainNode;function n(e){if(e)for(var t in e){var n=e[t];i.connect(n.input),i=n}}e.disconnect(0),e.connect(i),n(MIDI.fxNodes),n(t.fxNodes)},MIDI.noteOn=function(e,i,n,r){switch(typeof i){case"number":return t.apply(null,arguments);case"string":break;case"object":return l.apply(null,arguments)}},MIDI.noteOff=function(e,t,i){switch(typeof t){case"number":return c.apply(null,arguments);case"string":break;case"object":return h.apply(null,arguments)}},MIDI.cancelNotes=function(e){if(isFinite(e))t(e);else for(var e in s)t(e);function t(e){o(e,(function(e,t){u(e,t)}))}},MIDI.iOSUnlock=function(){if(!0!==i.unlocked){i.unlocked=!0;var e=i.createBuffer(1,1,44100),t=i.createBufferSource();t.buffer=e,t.connect(i.destination),t.start(0)}},"suspended"===i.state&&i.resume(),new Promise((function(e,t){window.Tuna&&(i.tunajs instanceof Tuna||(i.tunajs=new Tuna(i)));var a=MIDI.Soundfont,s=Object.keys(a);for(var o in a){var c=MIDI.getProgram(o);if(c){var l=r[o]||(r[o]={});if(l.loaded)continue;if(l.decoding)l.queue.push(e);else{l.decoding=!0,l.queue.push(e),l.pending=0;var h=a[o];for(var u in h)f(o,c.id,u)}}}function d(){for(var e=0;e<s.length;e++){var t=s[e];if((n=r[t]).pending)return}for(e=0;e<s.length;e++){t=s[e];for(var i,n=r[t];i=n.queue.pop();)i()}}function f(e,t,s){var o=r[e],c=a[e][s];c&&(o.pending++,function(e){return new Promise((function(t,n){if(0===e.indexOf("data:audio"))a(function(e){e=e.split(",");for(var t=atob(e[1]),i=(e[0].split(":")[1].split(";")[0],new ArrayBuffer(t.length)),n=new Uint8Array(i),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return i}(e));else{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){a(r.response)},r.send()}function a(e){i.decodeAudioData(e,t,n)}}))}(c).then((function(i){i.id=s;var r=MIDI.getNoteNumber(s);n[t+"x"+r]=i,--o.pending||(o.decoding=!1,o.loading=!1,o.loaded=!0,MIDI.DEBUG&&console.log("loaded: ",e),d())})).catch((function(e){MIDI.DEBUG&&console.error("audio could not load",arguments)})))}setTimeout(d,0)}));function t(e,t,r,o){var c;if(o=o||0,MIDI.volume){var l=MIDI.channels[e],h=l.program,u=n[h+"x"+t];u?((c=i.createBufferSource()).buffer=u,c.gainNode=i.createGain(),c.gainNode.connect(i.destination),c._channel=l,c._volume=r,a.volume(c),a.detune(c),a.fx(c),c.start(o+i.currentTime),s[e]=s[e]||{},s[e][t]=s[e][t]||[],s[e][t].push(c),s[e][t].active=c):MIDI.DEBUG&&console.error(["no buffer",arguments])}return{cancel:function(){c&&c.disconnect(0)}}}function c(e,t,i){i=i||0;var n=s[e];if(n){var r=n[t];if(r){var a=r.active;a&&u(r,a,i)}}return{cancel:function(){a&&a.disconnect(0)}}}function l(e,t,i,n){for(var r,a={},s=0,o=t.length;s<o;s++)a[r=t[s]]=MIDI.noteOn(e,r,i,n);return a}function h(e,t,i){for(var n,r={},a=0,s=t.length;a<s;a++)r[n=t[a]]=MIDI.noteOff(e,n,i);return r}function u(e,t,n){var r=(n||0)+i.currentTime,a=t.gainNode.gain;a._fadeout=!0,a._startAt=r,a.linearRampToValueAtTime(a.value,r),a.linearRampToValueAtTime(0,r+.3),t.stop(r+.5),setTimeout((function(){e.shift()}),1e3*n)}}}()},function(e,t){!function(){"use strict";var e,t=MIDI.adaptors.midiapi={},i={},n={};function r(t,n,r,a){return e.send([144+t,n,127*r>>0],1e3*(a||0)),i[t+"x"+n]={_channel:MIDI.channels[t],_volume:r},{cancel:function(){}}}function a(t,n,r){return e.send([128+t,n,0],1e3*(r||0)),delete i[t+"x"+n],{cancel:function(){}}}function s(t,i,n,r){for(var a=0;a<i.length;a++)e.send([144+t,i[a],n],1e3*(r||0))}function o(t,i,n){for(var r=0;r<i.length;r++)e.send([128+t,i[r],0],1e3*(n||0))}function c(t,i,n,r){e.send([t,i,n],1e3*(r||0))}function l(t,i,n){e.send([224+t,i],1e3*(n||0))}function h(t,i,n){e.send([176+t,7,i],1e3*(n||0))}t.connect=function(t){return MIDI.adaptor.id="midiapi",function(){function t(e,t,i){return{configurable:!0,get:function(){return t},set:function(n){typeof n===e&&(t=n,i&&i())}}}function r(e){return function(){for(var t in i)n[e](i[t])}}Object.defineProperties(MIDI,{context:{configurable:!0,set:function(t){e=t},get:function(){return e}},detune:t("number",0,r("detune")),mute:t("boolean",!1,r("volume")),volume:t("number",1,r("volume"))})}(),n.volume=function(e){var t=e._channel;if(MIDI.mute||t.mute)h(t.id,0);else{var i=MIDI.volume*t.volume*e._volume;h(t.id,Math.min(1,Math.max(-1,2*i)))}},n.detune=function(e){var t=e._channel,i=MIDI.detune+t.detune;i&&l(t.id,i)},MIDI.setController=c,MIDI.setPitchBend=l,MIDI.setVolume=h,MIDI.messageHandler.program=function(t,i,n){e.send([192+t,i],1e3*(n||0))},MIDI.send=function(t,i){e.send(t,1e3*(i||0))},MIDI.noteOn=function(e,t,i,n){switch(typeof t){case"number":return r.apply(null,arguments);case"string":break;case"object":return s.apply(null,arguments)}},MIDI.noteOff=function(e,t,i){switch(typeof t){case"number":return a.apply(null,arguments);case"string":break;case"object":return o.apply(null,arguments)}},MIDI.cancelNotes=function(t){if(isFinite(t))e.send([176+t,123,0]);else{e.cancel();for(t=0;t<16;t++)e.send([176+t,123,0])}},new Promise((function(t,i){function n(e){i&&i(e)}navigator.requestMIDIAccess().then((function(i){var r=i.outputs;r.size&&r.forEach((function(t){"connected"===t.state&&"input"===t.type&&(e=t)})),null==e?n({message:"No available outputs."}):t()}),n)}))}}()},function(e,t){"undefined"==typeof MIDI&&(MIDI={}),function(e){"use strict";e.channels=function(t){for(var i=0;i<=15;i++)n(i);return t;function n(n){var r=t[n]={};function a(t,i,r){return{configurable:!0,enumerable:!0,get:function(){return r},set:function(a){typeof a===t&&(r=a,e.setProperty(i,n))}}}r.noteOn=function(t,i,r){return e.noteOn(n,t,i,r)},r.noteOff=function(t,i){return e.noteOff(n,t,i)},r.cancelNotes=function(){return e.cancelNotes(n)},r.set=function(){},Object.defineProperties(r,{id:{value:i,enumerable:!0,writable:!0},program:{value:i,enumerable:!0,writable:!0},volume:a("number","volume",1),mute:a("boolean","volume",!1),mono:a("boolean","*",!1),omni:a("boolean","*",!1),solo:a("boolean","*",!1),detune:a("number","detune",0),fx:a("object","fx",null)})}}({})}(MIDI)},function(e,t){"undefined"==typeof MIDI&&(MIDI={}),function(e){"use strict";function t(e){return e.replace(/[^a-z0-9_ ]/gi,"").replace(/[ ]/g,"_").toLowerCase()}e.getProgram=function(i){return"string"==typeof i?e.getProgram.byName[t(i)]:e.getProgram.byId[i]},function(i){var n=e.GM={},r=e.getProgram.byId={},a=e.getProgram.byName={};for(var s in i)for(var o=i[s],c=0,l=o.length;c<l;c++){var h=o[c];if(h){var u=parseInt(h.substr(0,h.indexOf(" ")),10),d=h.replace(u+" ",""),f=t(d),p=t(s),m={id:--u,name:d,nameId:f,category:s};r[u]=m,a[f]=m,n[p]=n[p]||[],n[p].push(m)}}}({Piano:["1 Acoustic Grand Piano","2 Bright Acoustic Piano","3 Electric Grand Piano","4 Honky-tonk Piano","5 Electric Piano 1","6 Electric Piano 2","7 Harpsichord","8 Clavinet"],"Chromatic Percussion":["9 Celesta","10 Glockenspiel","11 Music Box","12 Vibraphone","13 Marimba","14 Xylophone","15 Tubular Bells","16 Dulcimer"],Organ:["17 Drawbar Organ","18 Percussive Organ","19 Rock Organ","20 Church Organ","21 Reed Organ","22 Accordion","23 Harmonica","24 Tango Accordion"],Guitar:["25 Acoustic Guitar (nylon)","26 Acoustic Guitar (steel)","27 Electric Guitar (jazz)","28 Electric Guitar (clean)","29 Electric Guitar (muted)","30 Overdriven Guitar","31 Distortion Guitar","32 Guitar Harmonics"],Bass:["33 Acoustic Bass","34 Electric Bass (finger)","35 Electric Bass (pick)","36 Fretless Bass","37 Slap Bass 1","38 Slap Bass 2","39 Synth Bass 1","40 Synth Bass 2"],Strings:["41 Violin","42 Viola","43 Cello","44 Contrabass","45 Tremolo Strings","46 Pizzicato Strings","47 Orchestral Harp","48 Timpani"],Ensemble:["49 String Ensemble 1","50 String Ensemble 2","51 Synth Strings 1","52 Synth Strings 2","53 Choir Aahs","54 Voice Oohs","55 Synth Choir","56 Orchestra Hit"],Brass:["57 Trumpet","58 Trombone","59 Tuba","60 Muted Trumpet","61 French Horn","62 Brass Section","63 Synth Brass 1","64 Synth Brass 2"],Reed:["65 Soprano Sax","66 Alto Sax","67 Tenor Sax","68 Baritone Sax","69 Oboe","70 English Horn","71 Bassoon","72 Clarinet"],Pipe:["73 Piccolo","74 Flute","75 Recorder","76 Pan Flute","77 Blown Bottle","78 Shakuhachi","79 Whistle","80 Ocarina"],"Synth Lead":["81 Lead 1 (square)","82 Lead 2 (sawtooth)","83 Lead 3 (calliope)","84 Lead 4 (chiff)","85 Lead 5 (charang)","86 Lead 6 (voice)","87 Lead 7 (fifths)","88 Lead 8 (bass + lead)"],"Synth Pad":["89 Pad 1 (new age)","90 Pad 2 (warm)","91 Pad 3 (polysynth)","92 Pad 4 (choir)","93 Pad 5 (bowed)","94 Pad 6 (metallic)","95 Pad 7 (halo)","96 Pad 8 (sweep)"],"Synth Effects":["97 FX 1 (rain)","98 FX 2 (soundtrack)","99 FX 3 (crystal)","100 FX 4 (atmosphere)","101 FX 5 (brightness)","102 FX 6 (goblins)","103 FX 7 (echoes)","104 FX 8 (sci-fi)"],Ethnic:["105 Sitar","106 Banjo","107 Shamisen","108 Koto","109 Kalimba","110 Bagpipe","111 Fiddle","112 Shanai"],Percussive:["113 Tinkle Bell","114 Agogo","115 Steel Drums","116 Woodblock","117 Taiko Drum","118 Melodic Tom","119 Synth Drum","129 Percussion"],"Sound effects":["120 Reverse Cymbal","121 Guitar Fret Noise","122 Breath Noise","123 Seashore","124 Bird Tweet","125 Telephone Ring","126 Helicopter","127 Applause","128 Gunshot"]}),function(){for(var t=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"],i={},n={},r=21;r<=108;r++){var a=t[r%12]+((r-12)/12>>0);i[a]=r,n[r]=a}e.getNoteName=function(e){return e in i?e:e in n?n[e]:void 0},e.getNoteNumber=function(e){return e in n?e:e in i?i[e]:void 0}}()}(MIDI)},function(e,t){"undefined"==typeof MIDI&&(MIDI={}),MIDI.player=new function(){"use strict";var e=this;galactic.EventEmitter(e);var t,i,n,r=20,a=100,s={},o=[],c={};function l(n,d){if(!(n>e.duration)){if(d){e.playing?h():e.playing=!0;var p=(y=function(e){for(var t=0,i=c.length,n=0;n<i;n++){var r=c[n][1];if(!(t+r<e))break;t+=r}return{idx:n,time:t}}(n)).idx,m=i=y.time}else p=t,m=i;for(var g=n-e.currentTime,v=0,b=c.length;p<b&&v<=r;){var y=c[p];t=++p,i+=y[1],n=i-m;var w=y[0].event,A=w.type,k=w.subtype;if(f[k])switch(A){case"channel":T();break;case"meta":x()}}}function x(){k}function T(){var t=w.channel,r=MIDI.channels[t],a=Math.max(0,(n+g)/1e3);switch(k){case"controller":MIDI.setController(t,w.controllerType,w.value,a);break;case"programChange":var s=w.programNumber;(function(t){var i=MIDI.getProgram(t);return i&&e.instruments[i.nameId]})(s)&&MIDI.programChange(t,s,a);break;case"pitchBend":var c=w.value;MIDI.setPitchBend(t,c,a);break;case"noteOn":var l=N(w.noteNumber);o.push({promise:r.noteOn(l,w.velocity/127,a),timeout:S(w,l,i,a)}),v++;break;case"noteOff":l=N(w.noteNumber);o.push({promise:r.noteOff(l,a),timeout:S(w,l,i,a)}),v++}}function S(t,n,r,c){return setTimeout((function(){var r=galactic.util.copy(t);r.noteNumber=n,e.emit("event",r),o.shift();var c=r.channel+"x"+r.noteNumber;switch(r.subtype){case"noteOn":s[c]=r;break;case"noteOff":delete s[c]}o.length<=a&&l(i)}),1e3*c)}function N(t){return u(0,127,t+e.transpose)}}function h(){if(e.playing){for(e.playing=!1;o.length;){var t=o.pop();t&&(t.promise&&t.promise.cancel(),clearTimeout(t.timeout))}for(var i in s){var n=s[i];e.emit("event",{channel:n.channel,noteNumber:n.noteNumber,status:n.status-16,subtype:"noteOff",type:"channel"})}}}function u(e,t,i){return i<e?e:i>t?t:i}function d(){n&&(c=Replayer(MidiFile(n),e.bpm)),e.duration=function(){for(var e=c.length,t=0,i=0;i<e;i++)t+=c[i][1];return t}()}!function(){var t=0,i=!1,r=0;function a(t,i){return{get:function(){return t},set:function(r){Number.isFinite(r)&&(t=r,i&&n&&(e.stop(),d(),l(0,!0)))}}}function s(i){r=performance.now(),t=u(0,e.duration,i)}Object.defineProperties(e,{bpm:a(null,!0),warp:a(1,!0),transpose:a(0,!0),currentTime:{get:function(){return e.playing?t+(performance.now()-r):t},set:function(e){Number.isFinite(e)&&s(e)}},duration:a(0,!1),playing:{get:function(){return i},set:function(t){s(e.currentTime),i=t}}})}(),e.start=function(t){h(),e.currentTime=t,l(e.currentTime,!0)},e.stop=function(){h(),e.currentTime=0},e.pause=function(){h()},e.setAnimation=function(t){var i=0,n=0,r=0;e.clearAnimation(),requestAnimationFrame((function a(){if(e.frameId=requestAnimationFrame(a),e.duration){e.playing?(i=r===e.currentTime?n-Date.now():0,i=0===e.currentTime?0:e.currentTime-i,r!==e.currentTime&&(n=Date.now(),r=e.currentTime)):i=e.currentTime;var s=e.duration,o=i/1e3,c=o/60,l=60*c+(o-60*c),h=s/1e3;if(h-l<-1)return;var u=Math.min(1,l/h);u!==t.progress&&(t.progress=u,t({progress:u,currentTime:l,duration:h}))}}))},e.clearAnimation=function(){e.frameId&&cancelAnimationFrame(e.frameId)};var f={controller:!0,noteOff:!0,noteOn:!0,pitchBend:!0,setTempo:!0,programChange:!0};e.handleEvent=function(e,t){f[e]=t},e.load=function(t){return new Promise((function(i,r){"string"==typeof t&&(t={src:t});var a=t.src,s=t.onprogress;function o(){try{d(),e.instruments=function(){for(var e={},t={},i=0;i<c.length;i++){var n=c[i][0].event;if("channel"===n.type){var r=n.channel;switch(n.subtype){case"programChange":t[r]=n.programNumber;break;case"noteOn":var a=t[r];if(Number.isFinite(a)){if(f.programChange)var s=MIDI.getProgram(a);else r=MIDI.channels[r],s=MIDI.getProgram(r.program);e[s.nameId]=!0}}}}return e}(),MIDI.setup({instruments:e.instruments,onprogress:s}).then((function(e){i(e)})).catch((function(e){r(e)}))}catch(e){r&&r(e)}}e.stop(),t.events?(c=t.events,n=void 0,o()):-1!==a.indexOf("base64,")?(n=atob(a.split(",")[1]),o()):galactic.request({url:a,mimeType:"text/plain; charset=x-user-defined",onerror:function(){r&&r("Unable to load MIDI file: "+a)},onsuccess:function(e,t){n=function(e){for(var t=[],i=String.fromCharCode,n=0,r=e.length;n<r;n++)t[n]=i(255&e.charCodeAt(n));return t.join("")}(t),o()}})}))}}},function(e,t,i){var n,r=i(52),a=i(53),s=i(54),o=i(55);!function(){"use strict";function e(e){return 60+e}n=function(t,i){void 0===i&&(i={});var n=o(t,i),c=r(n,i),l=s(),h=new a,u=t.metaText?t.metaText.title:void 0;u&&u.length>128&&(u=u.substring(0,124)+"..."),l.setGlobalInfo(c.tempo,u),h.setGlobalInfo(c.tempo,u);for(var d=0;d<c.tracks.length;d++){l.startTrack(),h.startTrack();for(var f=0;f<c.tracks[d].length;f++){var p=c.tracks[d][f];switch(p.cmd){case"program":l.setChannel(p.channel),l.setInstrument(p.instrument),h.setChannel(p.channel),h.setInstrument(p.instrument);break;case"start":l.startNote(e(p.pitch),p.volume),h.startNote(e(p.pitch),p.volume);break;case"stop":l.endNote(e(p.pitch),0),h.endNote(e(p.pitch));break;case"move":l.addRest(1920*p.duration),h.addRest(1920*p.duration);break;default:console.log("MIDI create Unknown: "+p.cmd)}}l.endTrack(),h.endTrack()}var m=l.getData(),g=h.getData();return void 0===i.generateInline&&(i.generateInline=!0),i.generateInline&&i.generateDownload?{download:m,inline:g}:i.generateInline?g:m}}(),e.exports=n},function(e,t){var i;!function(){"use strict";var e,t,n,r,a,s,o,c,l,h,u,d,f,p,m,g,v,b,y,w,A,k=1,x={num:4,den:4},T=0,S=128,N=!1,M=64,I=64,C=64,E=.25,_={},B=1/128;function P(e){for(var t=0,i=0;i<e.length;i++){for(var n=e[i],r=0,a=0;a<n.length;a++){var s=n[a];s.duration&&(r+=s.duration)}t=Math.max(t,r)}return t}function D(e){switch(e.den){case 2:return.5;case 4:return.25;case 8:return.375;case 16:return.125}return.25}i=function(i,T){T||(T={}),e=[],t=[0,0,0,0,0,0,0],r=!1,a=1,s=[],o=void 0,c=void 0,k=1,l=void 0,h=void 0,u=void 0,p=void 0,d={},x={num:4,den:4},m=[],v=i.length,g=!1,b=[],y=void 0,w=0,N=!!T.chordsOff,M=64,I=64,C=64,E=.25,A=[],!1,_={};for(var S=0;S<i.length;S++){n=0,f=-1;var B=i[S];u=[{cmd:"program",channel:S,instrument:l}],p=0,d={};for(var L=0;L<B.length;L++){var H=B[L];switch(H.el_type){case"note":V(H,T.voicesOff);break;case"key":t=q(H);break;case"meter":c||(c=H),E=D(x=H);break;case"tempo":o?k=H.qpm?o/H.qpm:1:o=H.qpm;break;case"transpose":n=H.transpose;break;case"bar":m.length>0&&0===S&&(Z(),b=[]),w=0,e=[],0===S&&J(i.length+1);break;case"bagpipes":r=!0;break;case"instrument":void 0===l&&(l=H.program),h=H.program,u.push({cmd:"program",channel:S,instrument:H.program});break;case"channel":break;case"drum":_=Q(H.params);break;case"gchord":T.chordsOff||(N=H.tacet);break;case"beat":M=H.beats[0],I=H.beats[1],C=H.beats[2];break;default:console.log("MIDI creation. Unknown el_type: "+H.el_type+"\n")}}void 0===u[0].instrument&&(u[0].instrument=l||0),s.push(u),m.length>0&&(g=!0),A.length>0&&!0}return m.length>0&&s.push(m),A.length>0&&s.push(A),{tempo:o,instrument:l,tracks:s,totalDuration:P(s)}};var L=["break","(break)","no chord","n.c.","tacet"];function H(){for(var e=0,t=0;t<u.length;t++)"move"===u[t].cmd&&(e+=u[t].duration);return e}function V(e,t){var i;i=0===w?M:w%E<.001?I:C;var s=t?0:i,o=function(e){if(N)return"break";if(g||!e.chord||0===e.chord.length)return null;for(var t=0;t<e.chord.length;t++){var i=e.chord[t];if("default"===i.position)return i.name;if(L.indexOf(i.name.toLowerCase())>=0)return"break"}return null}(e);if(o){var c=function(e){if(0===e.length)return;if("break"===e)return{chick:[]};var t=e.substring(0,1);if("("===t){if(0===(e=e.substring(1,e.length-2)).length)return;t=e.substring(0,1)}var i=W[t];if(!i)return;var r,a=(i+=n)-5;1===e.length&&(r=U(i,""));var s=e.substring(1),o=s.substring(0,1);"b"===o||"♭"===o?(i--,a--,s=s.substring(1)):"#"!==o&&"♯"!==o||(i++,a++,s=s.substring(1));var c=s.split("/");if(r=U(i,c[0]),2===c.length){W[c[1]]&&(i=W[c[1]]+n,a=i)}return{boom:i,boom2:a,chick:r}}(o);if(c){if(0===m.length){m.push({cmd:"program",channel:v,instrument:T});var l=H();l>0&&m.push({cmd:"move",duration:l*k})}y=c,b.push({chord:y,beat:w})}}e.startTriplet&&(a=e.tripletMultiplier);var A,x=(e.durationClass?e.durationClass:e.duration)*a;if(w+=x,e.gracenotes){var S=r||f<0||0===u.length,_=S?x:u[f].duration;A=function(e,t){for(var i,n=0,r=[],a=0;a<e.length;a++)i=e[a],n+=i.duration;var s=2*(n/=j)>t?t/(2*n):1;for(a=0;a<e.length;a++){var o=(i=e[a]).midipitch?i.midipitch-60:i.pitch;r.push({pitch:o,duration:i.duration/j*s})}return r}(e.gracenotes,_),r||(x=F(A,S,x,null,s))}if(e.currentTrackMilliseconds=p,e.pitches){A&&r&&(x=F(A,!0,x,null,s));var P=[];e.midiPitches=[];for(var D=0;D<e.pitches.length;D++){var V=e.pitches[D],z=O(V);if(P.push({pitch:z,startTie:V.startTie}),e.midiPitches.push({pitch:z+60,durationInMeasures:x*k,volume:i,instrument:h}),d[""+z]){for(var q=u.length-1;q>=0;q--)if("start"===u[q].cmd&&u[q].pitch===z){for(var R=u[q].elem.midiPitches,Y=0;Y<R.length;Y++)R[Y].pitch-60===z&&(R[Y].durationInMeasures+=x*k);break}}else u.push({cmd:"start",pitch:z,volume:s});V.startTie?(d[""+z]=!0,u[u.length-1].elem=e):V.endTie&&(d[""+z]=!1)}if(e.gracenotes)for(var G=0;G<e.gracenotes.length;G++){e.midiGraceNotePitches=[];var K=e.gracenotes[G];e.midiGraceNotePitches.push({pitch:O(K)+60,durationInMeasures:0,volume:i,instrument:h})}var X=B,Z=x-B;Z<0&&(Z=0,X=0),u.push({cmd:"move",duration:Z*k}),f=u.length-1,p+=Z*k;for(var Q=0;Q<P.length;Q++)d[""+P[Q].pitch]||u.push({cmd:"stop",pitch:P[Q].pitch});u.push({cmd:"move",duration:X*k}),p+=X*k}else e.rest&&(u.push({cmd:"move",duration:x*k}),p+=x*k);e.endTriplet&&(a=1)}var z=[0,2,4,5,7,9,11];function O(i){if(i.midipitch)return i.midipitch-60;var r=i.pitch;if(i.accidental)switch(i.accidental){case"sharp":e[r]=1;break;case"flat":e[r]=-1;break;case"natural":e[r]=0;break;case"dblsharp":e[r]=2;break;case"dblflat":e[r]=-2}var a=12*function(e){return Math.floor(e/7)}(r)+z[R(r)];return void 0!==e[r]?a+=e[r]:a+=t[R(r)],a+=n}function q(e){var t=[0,0,0,0,0,0,0];if(!e.accidentals)return t;for(var i=0;i<e.accidentals.length;i++){var n=e.accidentals[i],r="sharp"===n.acc?1:"natural"===n.acc?0:-1;t[R(n.note.toLowerCase().charCodeAt(0)-"c".charCodeAt(0))]+=r}return t}var j=8;function F(e,t,i,n,r){for(var a=0;a<e.length;a++){var s=O(e[a]);s!==n&&u.push({cmd:"start",pitch:s,volume:r}),u.push({cmd:"move",duration:e[a].duration*k}),s!==n&&u.push({cmd:"stop",pitch:s}),t||(u[f].duration-=e[a].duration),i-=e[a].duration}return i}function R(e){return(e%=7)<0&&(e+=7),e}var W={A:-27,B:-25,C:-24,D:-22,E:-20,F:-19,G:-17};var Y={dim:[0,3,6],"°":[0,3,6],"˚":[0,3,6],dim7:[0,3,6,9],"°7":[0,3,6,9],"˚7":[0,3,6,9],"ø7":[0,3,6,10],"m7(b5)":[0,3,6,10],m7b5:[0,3,6,10],"-7(b5)":[0,3,6,10],"-7b5":[0,3,6,10],"7b5":[0,4,6,10],"7(b5)":[0,4,6,10],"7♭5":[0,4,6,10],"7(b9,b5)":[0,4,6,10,13],"7b9,b5":[0,4,6,10,13],"7(#9,b5)":[0,4,6,10,15],"7#9b5":[0,4,6,10,15],"maj7(b5)":[0,3,6,11],maj7b5:[0,3,6,11],"13(b5)":[0,4,6,10,14,18],"13b5":[0,4,6,10,14,18],m:[0,3,7],"-":[0,3,7],m6:[0,3,7,9],"-6":[0,3,7,9],m7:[0,3,7,10],"-7":[0,3,7,10],"-(b6)":[0,3,7,8],"-b6":[0,3,7,8],"-6/9":[0,3,7,9,14],"-7(b9)":[0,3,7,10,13],"-7b9":[0,3,7,10,13],"-maj7":[0,3,7,11],"-9+7":[0,3,7,11,13],"-11":[0,3,7,11,14,16],M:[0,4,7],6:[0,4,7,9],"6/9":[0,4,7,9,14],7:[0,4,7,10],9:[0,4,7,10,14],11:[0,4,7,10,14,16],13:[0,4,7,10,14,18],"7b9":[0,4,7,10,13],"7♭9":[0,4,7,10,13],"7(b9)":[0,4,7,10,13],"7(#9)":[0,4,7,10,15],"7#9":[0,4,7,10,15],"(13)":[0,4,7,10,14,18],"7(9,13)":[0,4,7,10,14,18],"7(#9,b13)":[0,4,7,10,15,17],"7(#11)":[0,4,7,10,14,17],"7#11":[0,4,7,10,14,17],"7(b13)":[0,4,7,10,17],"7b13":[0,4,7,10,17],"9(#11)":[0,4,7,10,14,17],"9#11":[0,4,7,10,14,17],"13(#11)":[0,4,7,10,15,18],"13#11":[0,4,7,10,15,18],maj7:[0,4,7,11],"∆7":[0,4,7,11],"Δ7":[0,4,7,11],maj9:[0,4,7,11,14],"maj7(9)":[0,4,7,11,14],"maj7(11)":[0,4,7,11,16],"maj7(#11)":[0,4,7,11,17],"maj7(13)":[0,4,7,11,18],"maj7(9,13)":[0,4,7,11,14,18],"7sus4":[0,5,7,10],m7sus4:[0,5,7,10],sus4:[0,5,7],sus2:[0,2,7],"7sus2":[0,2,7,10],"9sus4":[0,5,7,14],"13sus4":[0,5,7,18],aug7:[0,4,8,10],"+7":[0,4,8,10],"+":[0,4,8],"7#5":[0,4,8,10],"7♯5":[0,4,8,10],"7+5":[0,4,8,10],"9#5":[0,4,8,10,14],"9♯5":[0,4,8,10,14],"9+5":[0,4,8,10,14],"-7(#5)":[0,3,8,10],"-7#5":[0,3,8,10],"7(#5)":[0,4,8,10],"7(b9,#5)":[0,4,8,10,13],"7b9#5":[0,4,8,10,13],"maj7(#5)":[0,4,8,11],"maj7#5":[0,4,8,11],"maj7(#5,#11)":[0,4,8,11,14],"maj7#5#11":[0,4,8,11,14],"9(#5)":[0,4,8,10,14],"13(#5)":[0,4,8,10,14,18],"13#5":[0,4,8,10,14,18]};function U(e,t){var i=Y[t];i||(i=Y.M),e+=12;for(var n=[],r=0;r<i.length;r++)n.push(e+i[r]);return n}function G(e,t){void 0!==e&&m.push({cmd:"start",pitch:e,volume:64}),m.push({cmd:"move",duration:t/2*k}),void 0!==e&&m.push({cmd:"stop",pitch:e}),m.push({cmd:"move",duration:t/2*k})}function K(e,t){for(var i=0;i<e.length;i++)m.push({cmd:"start",pitch:e[i],volume:48});for(m.push({cmd:"move",duration:t/2*k}),i=0;i<e.length;i++)m.push({cmd:"stop",pitch:e[i]});m.push({cmd:"move",duration:t/2*k})}var X={"2/2":["boom","chick"],"2/4":["boom","chick"],"3/4":["boom","chick","chick"],"4/4":["boom","chick","boom2","chick"],"5/4":["boom","chick","chick","boom2","chick"],"6/8":["boom","","chick","boom2","","chick"],"9/8":["boom","","chick","boom2","","chick","boom2","","chick"],"12/8":["boom","","chick","boom2","","chick","boom2","","chick","boom2","","chick"]};function Z(){var e=x.num,t=x.den,i=1/t,n=X[e+"/"+t],r=parseInt(e,10)/parseInt(t,10),a=Math.abs(r-w);if(!n||a>.0078125){n=[];for(var s=w/i,o=0;o<s;o++)n.push("chick")}if(0===b.length&&b.push({beat:0,chord:y}),0!==b[0].beat&&y&&b.unshift({beat:0,chord:y}),1!==b.length){for(var c={},l=0;l<b.length;l++){var h=b[l];c[""+Math.floor(h.beat/i)]=h}for(var u=0;u<n.length;u++){var d;switch(c[""+u]&&(d=c[""+u]),n[u]){case"boom":c[""+(u+1)]?K(d.chord.chick,i):G(d.chord.boom,i);break;case"boom2":c[""+(u+1)]?K(d.chord.chick,i):G(d.chord.boom2,i);break;case"chick":K(d.chord.chick,i);break;case"":c[""+u]?K(d.chord.chick,i):m.push({cmd:"move",duration:i*k})}}}else for(var f=0;f<n.length;f++)switch(n[f]){case"boom":G(b[0].chord.boom,i);break;case"boom2":G(b[0].chord.boom2,i);break;case"chick":K(b[0].chord.chick,i);break;case"":m.push({cmd:"move",duration:i*k})}}function Q(e){if(0===e.pattern.length||!1===e.on)return{on:!1};for(var t=e.pattern[0],i=[],n="",r=0,a=0;a<t.length;a++)if("d"===t[a]&&r++,"d"===t[a]||"z"===t[a])0!==n.length?(i.push(n),n=t[a]):n+=t[a];else{if(0===n.length)return{on:!1};n+=t[a]}if(0!==n.length&&i.push(n),e.pattern.length!==2*r+1)return{on:!1};for(var s={on:!0,bars:e.bars,pattern:[]},o=1/x.den,c=0,l=0;l<i.length;l++){n=i[l];for(var h=1,u=!1,d=0,f=1;f<n.length;f++)switch(n[f]){case"/":0!==d&&(h*=d),d=0,u=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d=10*d+n[f];break;default:return{on:!1}}u?(0===d&&(d=2),h/=d):d&&(h*=d),"d"===n[0]?(s.pattern.push({len:h*o,pitch:e.pattern[1+c],velocity:e.pattern[1+c+r]}),c++):s.pattern.push({len:h*o,pitch:null})}for(var p=0,m=x.num/x.den,g=0;g<s.pattern.length;g++)p+=s.pattern[g].len;var v=p/(e.bars?e.bars:1)/m;for(g=0;g<s.pattern.length;g++)s.pattern[g].len=s.pattern[g].len/v;return s}function J(e){if(0!==A.length||_.on){var t,i,n,r=x.num/x.den;if(0===A.length){A.push({cmd:"program",channel:e,instrument:S});var a=H();if(a>0&&a<r-.01)return void A.push({cmd:"move",duration:a*k})}if(_.on)for(var s=0;s<_.pattern.length;s++){var o=_.pattern[s].len*k;_.pattern[s].pitch?(t=_.pattern[s].pitch,i=o,n=_.pattern[s].velocity,A.push({cmd:"start",pitch:t-60,volume:n}),A.push({cmd:"move",duration:i}),A.push({cmd:"stop",pitch:t-60})):A.push({cmd:"move",duration:o})}else A.push({cmd:"move",duration:r*k})}}}(),e.exports=i},function(e,t){var i;!function(){"use strict";(i=function(){this.tempo=0,this.timeFactor=0,this.output=[],this.currentChannel=0,this.currentInstrument=0,this.track=0,this.nextDuration=0,this.tracks=[[]]}).prototype.setInstrument=function(e){this.currentInstrument=e;var t=[{ticksToEvent:0,track:this.track,event:{channel:this.currentChannel,deltaTime:0,programNumber:this.currentInstrument,subtype:"programChange",type:"channel"}},this.nextDuration*this.timeFactor];this.tracks[this.track].push(t)},i.prototype.setChannel=function(e){this.currentChannel=e},i.prototype.startTrack=function(){this.track++,this.tracks[this.track]=[],this.nextDuration=0},i.prototype.setGlobalInfo=function(e,t){this.tempo=e;var i=Math.round(1/e*6e7);this.timeFactor=i/48e4;this.track,this.nextDuration,this.timeFactor;this.track,this.nextDuration,this.timeFactor,this.track,this.nextDuration,this.timeFactor},i.prototype.startNote=function(e,t){var i=5*Math.floor(this.nextDuration/5),n=[{ticksToEvent:i,track:this.track,event:{deltaTime:i,channel:this.currentChannel,type:"channel",noteNumber:e,velocity:t,subtype:"noteOn"}},this.nextDuration*this.timeFactor];this.tracks[this.track].push(n),this.nextDuration=0},i.prototype.endNote=function(e){var t=5*Math.floor(this.nextDuration/5),i=[{ticksToEvent:t,track:this.track,event:{deltaTime:t,channel:this.currentChannel,type:"channel",noteNumber:e,velocity:0,subtype:"noteOff"}},this.nextDuration*this.timeFactor];this.tracks[this.track].push(i),this.nextDuration=0},i.prototype.addRest=function(e){this.nextDuration+=e},i.prototype.endTrack=function(){this.track},i.prototype.getData=function(){return function(e){!function(e){for(var t=0;t<e.length;t++)for(var i=0,n=0;n<e[t].length;n++)i+=e[t][n][1],e[t][n].absTime=i}(e);var t=function(e){for(var t=[],i=0;i<e.length;i++)for(var n=0;n<e[i].length;n++)t.push(e[i][n]);return t}(e);return function(e){for(var t=0,i=0;i<e.length;i++){var n=e[i].absTime;e[i][1]=n-t,t=n}}(t=function(e){return e.sort((function(e,t){if(e.absTime>t.absTime)return 1;if(e.absTime===t.absTime&&e.length>0&&t.length>0&&e[0].event&&t[0].event){var i=e[0].event.channel,n=t[0].event.channel;if(i>n)return 1;if(i<n)return-1;if("programChange"===t[0].event.subtype)return 1}return-1}))}(t)),t}(this.tracks)}}(),e.exports=i},function(e,t){var i;!function(){"use strict";function e(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i]);return e}function t(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90"}function n(e,t){for(var i=e.toString(16);i.length<t;)i="0"+i;return function(e){for(var t="",i=0;i<e.length;i+=2)t+="%",t+=e.substr(i,2);return t}(i)}function r(e){for(var t=0,i=[];0!==e;)i.push(127&e),e>>=7;for(var r=i.length-1;r>=0;r--){t<<=8;var a=i[r];0!==r&&(a|=128),t|=a}var s=t.toString(16).length;return n(t,s+=s%2)}t.prototype.setTempo=function(e){0===this.trackcount&&(this.startTrack(),this.track+="%00%FF%51%03"+n(Math.round(6e7/e),6),this.endTrack())},t.prototype.setGlobalInfo=function(e,t){if(0===this.trackcount){if(this.startTrack(),this.track+="%00%FF%51%03"+n(Math.round(6e7/e),6),t){for(var i="",r=0;r<t.length;r++)i+=n(t.charCodeAt(r),2);this.track+="%00%FF%03"+n(i.length/3,2),this.track+=i}this.endTrack()}},t.prototype.startTrack=function(){this.track="",this.silencelength=0,this.trackcount++,this.first=!0,this.instrument&&this.setInstrument(this.instrument)},t.prototype.endTrack=function(){var e=n(this.track.length/3+4,8);this.track="MTrk"+e+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},t.prototype.setInstrument=function(e){this.track?this.track="%00%C0"+n(e,2)+this.track:this.track="%00%C0"+n(e,2),this.instrument=e},t.prototype.setChannel=function(e){this.channel=e,this.noteOnAndChannel="%9"+this.channel.toString(16)},t.prototype.startNote=function(e,t){this.track+=r(this.silencelength),this.silencelength=0,this.first&&(this.first=!1,this.track+=this.noteOnAndChannel),this.track+="%"+e.toString(16)+n(t,2)},t.prototype.endNote=function(e,t){this.track+=r(this.silencelength+t),this.silencelength=0,this.track+="%"+e.toString(16)+"%00"},t.prototype.addRest=function(e){this.silencelength+=e},t.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+n(this.trackcount,4)+"%01%e0"+this.trackstrings},t.prototype.embed=function(t,i){var n=this.getData(),r=e(document.createElement("a"),{href:n});if(r.innerHTML="download midi",t.insertBefore(r,t.firstChild),!i){var a=e(document.createElement("embed"),{src:n,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});t.insertBefore(a,t.firstChild)}},i=function(){return new t}}(),e.exports=i},function(e,t){var i;!function(){"use strict";var e;function t(e){var t=.25;e.duration&&(t=e.duration[0]);var i=60;return e.bpm&&(i=e.bpm),t*i/.25}function n(t){var i;switch(t.type){case"common_time":i={el_type:"meter",num:4,den:4};break;case"cut_time":i={el_type:"meter",num:2,den:2};break;case"specified":i={el_type:"meter",num:t.value[0].num,den:t.value[0].den};break;default:i={el_type:"meter"}}return e=i.num/i.den,i}i=function(i,r){var a=180,s=(r=r||{}).program||0,o=r.midiTranspose||0,c=r.channel||0,l=r.drum||"",h=r.drumBars||1,u=r.drumIntro||0,d=""!==l;s=parseInt(s,10),o=parseInt(o,10),10===(c=parseInt(c,10))&&(s=128),l=l.split(" "),h=parseInt(h,10),u=parseInt(u,10);var f=i.formatting.bagpipes;if(f&&(s=71),i.formatting.midi){var p=i.formatting.midi;p.program&&p.program.length>0&&(s=p.program[0],p.program.length>1&&(s=p.program[1],c=p.program[0])),p.transpose&&(o=p.transpose[0]),p.channel&&(c=p.channel[0]),p.drum&&(l=p.drum),p.drumbars&&(h=p.drumbars[0]),p.drumon&&(d=!0),10===c&&(s=128)}i.metaText.tempo&&(a=t(i.metaText.tempo)),r.qpm&&(a=parseInt(r.qpm,10));var m=[];f&&m.push({el_type:"bagpipes"}),m.push({el_type:"instrument",program:s}),c&&m.push({el_type:"channel",channel:c}),o&&m.push({el_type:"transpose",transpose:o}),m.push({el_type:"tempo",qpm:a});for(var g=[],v=[],b=[],y=!1,w=0;w<i.lines.length;w++){var A=i.lines[w];if(A.staff)for(var k=A.staff,x=0,T=0;T<k.length;T++)for(var S=k[T],N=0;N<S.voices.length;N++){var M=S.voices[N];if(g[x]||(g[x]=[].concat(JSON.parse(JSON.stringify(m)))),S.clef&&"perc"===S.clef.type)for(var I=0;I<g[x].length;I++)"instrument"===g[x][I].el_type&&(g[x][I].program=128);else S.key&&("HP"===S.key.root?g[x].push({el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}):g[x].push({el_type:"key",accidentals:S.key.accidentals}));S.meter&&g[x].push(n(S.meter)),!y&&d&&(g[x].push({el_type:"drum",params:{pattern:l,bars:h,on:d,intro:u}}),y=!0),S.clef&&S.clef.transpose&&(S.clef.el_type="clef",g[x].push({el_type:"transpose",transpose:S.clef.transpose})),i.formatting.midi&&i.formatting.midi.drumoff&&(g[x].push({el_type:"bar"}),g[x].push({el_type:"drum",params:{pattern:"",on:!1}}));for(var C=0,E=0;E<M.length;E++){var _=M[E];switch(_.el_type){case"note":_.rest&&"spacer"===_.rest.type||(g[x].push(_),C++);break;case"key":"HP"===_.root?g[x].push({el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}):g[x].push({el_type:"key",accidentals:_.accidentals});break;case"meter":g[x].push(n(_));break;case"clef":_.transpose&&g[x].push({el_type:"transpose",transpose:_.transpose});break;case"tempo":a=t(_),g[x].push({el_type:"tempo",qpm:a});break;case"bar":C>0&&g[x].push({el_type:"bar"}),C=0;var B="bar_right_repeat"===_.type||"bar_dbl_repeat"===_.type,P="1"===_.startEnding,D="bar_left_repeat"===_.type||"bar_dbl_repeat"===_.type||"bar_right_repeat"===_.type;if(B){var L=v[x];L||(L=0);var H=b[x];H||(H=g[x].length),g[x]=g[x].concat(g[x].slice(L,H)),b[x]=void 0,v[x]=void 0}P&&(b[x]=g[x].length),D&&(v[x]=g[x].length);break;case"style":case"part":break;case"stem":case"scale":break;case"midi":var V=!1;switch(_.cmd){case"drumon":d=!0,V=!0;break;case"drumoff":d=!1,V=!0;break;case"drum":l=_.params,V=!0;break;case"drumbars":h=_.params[0],V=!0;break;case"drummap":break;case"program":g[x].push({el_type:"instrument",program:_.params[0]});break;case"transpose":g[x].push({el_type:"transpose",transpose:_.params[0]});break;case"gchordoff":g[x].push({el_type:"gchord",tacet:!0});break;case"gchordon":g[x].push({el_type:"gchord",tacet:!1});break;case"beat":g[x].push({el_type:"beat",beats:_.params});break;default:console.log("MIDI seq: midi cmd not handled: ",_.cmd,_)}V&&(g[0].push({el_type:"drum",params:{pattern:l,bars:h,intro:u,on:d}}),y=!0);break;default:console.log("MIDI: element type "+_.el_type+" not handled.")}}x++}}if(u)for(var z=i.getPickupLength(),O=0;O<g.length;O++){for(var q=0;"note"!==g[O][q].el_type&&g[O].length>q;)q++;if(g[O].length>q)for(var j=0;j<u;j++)0===z||j<u-1?g[O].splice(q,0,{el_type:"note",rest:{type:"rest"},duration:e},{el_type:"bar"}):g[O].splice(q,0,{el_type:"note",rest:{type:"rest"},duration:e-z})}return g}}(),e.exports=i}]);
\ No newline at end of file
--- a/abcjs_plugin_5.10.3-min.js	Wed Jul 01 11:37:21 2020 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-/*! abcjs_plugin v5.10.3 Copyright © 2009-2019 Paul Rosen and Gregory Dyke (https://abcjs.net) */
-/*! For license information please see abcjs_plugin_5.10.3-min.js.LICENSE */
-!function(e){var t={};function i(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(r,s,function(t){return e[t]}.bind(null,s));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=11)}([function(e,t){var i={clone:function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},cloneArray:function(e){for(var t=[],r=0;r<e.length;r++)t.push(i.clone(e[r]));return t},cloneHashOfHash:function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=i.clone(e[r]));return t},cloneHashOfArrayOfHash:function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=i.cloneArray(e[r]));return t},gsub:function(e,t,i){return e.split(t).join(i)},strip:function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(e,t){return 0===e.indexOf(t)},endsWith:function(e,t){var i=e.length-t.length;return i>=0&&e.lastIndexOf(t)===i},each:function(e,t,i){for(var r=0,s=e.length;r<s;r++)t.apply(i,[e[r],r])},last:function(e){return 0===e.length?null:e[e.length-1]},compact:function(e){for(var t=[],i=0;i<e.length;i++)e[i]&&t.push(e[i]);return t},detect:function(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return!0;return!1}};[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})),e.exports=i},function(e,t){var i={FONTEM:360,FONTSIZE:30};i.STEP=93*i.FONTSIZE/720,i.SPACE=10,i.TOPNOTE=15,i.STAVEHEIGHT=100,i.INDENT=50,e.exports=i},function(e,t,i){i(3);var r=function(e,t,i,r,s){switch(s=s||{},this.x=0,this.c=e,this.dx=t,this.w=i,this.pitch=r,this.scalex=s.scalex||1,this.scaley=s.scaley||1,this.type=s.type||"symbol",this.pitch2=s.pitch2,this.linewidth=s.linewidth,this.klass=s.klass,this.top=r,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=r,void 0!==this.pitch2&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),s.thickness&&(this.top+=s.thickness/2,this.bottom-=s.thickness/2),s.stemHeight&&(s.stemHeight>0?this.top+=s.stemHeight:this.bottom+=s.stemHeight),this.height=s.height?s.height:4,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":s.position&&"below"===s.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":s.position&&"below"===s.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?s.position&&"below"===s.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};r.prototype.setX=function(e){this.x=e+this.dx},r.prototype.setUpperAndLowerElements=function(e){switch(this.type){case"part":this.top=e.partHeightAbove+this.height,this.bottom=e.partHeightAbove;break;case"text":case"chord":this.chordHeightAbove?(this.top=e.chordHeightAbove,this.bottom=e.chordHeightAbove):(this.top=e.chordHeightBelow,this.bottom=e.chordHeightBelow);break;case"lyric":this.lyricHeightAbove?(this.top=e.lyricHeightAbove,this.bottom=e.lyricHeightAbove):(this.top=e.lyricHeightBelow,this.bottom=e.lyricHeightBelow);break;case"debug":this.top=e.chordHeightAbove,this.bottom=e.chordHeightAbove}void 0!==this.pitch&&void 0!==this.top||window.console.error("RelativeElement position not set.",this.type,this.pitch,this.top,e)},r.prototype.draw=function(e,t){void 0===this.pitch&&window.console.error(this.type+" Relative Element y-coordinate not set.");var i=e.calcY(this.pitch);switch(this.type){case"symbol":if(null===this.c)return null;var r="symbol";this.klass&&(r+=" "+this.klass),this.graphelem=e.printSymbol(this.x,this.pitch,this.c,this.scalex,this.scaley,e.addClasses(r));break;case"debug":this.graphelem=e.renderText(this.x,e.calcY(15),""+this.c,"debugfont","debug-msg","start");break;case"barNumber":this.graphelem=e.renderText(this.x,i,""+this.c,"measurefont","bar-number","middle");break;case"lyric":this.graphelem=e.renderText(this.x,i,this.c,"vocalfont","lyric","middle");break;case"chord":this.graphelem=e.renderText(this.x,i,this.c,"gchordfont","chord","middle");break;case"decoration":this.graphelem=e.renderText(this.x,i,this.c,"annotationfont","annotation","middle",!0);break;case"text":this.graphelem=e.renderText(this.x,i,this.c,"annotationfont","annotation","start",this.centerVertically);break;case"multimeasure-text":this.graphelem=e.renderText(this.x+this.w/2,i,this.c,"tempofont","rest","middle",!1);break;case"part":this.graphelem=e.renderText(this.x,i,this.c,"partsfont","part","start");break;case"bar":this.graphelem=e.printStem(this.x,this.linewidth,i,t||e.calcY(this.pitch2));break;case"stem":this.graphelem=e.printStem(this.x,this.linewidth,i,e.calcY(this.pitch2));break;case"ledger":this.graphelem=e.printStaveLine(this.x,this.x+this.w,this.pitch)}return 1!==this.scalex&&this.graphelem&&e.scaleExistingElem(this.graphelem,this.scalex,this.scaley,this.x,i),this.graphelem},e.exports=r},function(e,t,i){var r=i(1);e.exports=new function(){"use strict";var e={0:{d:[["M",4.83,-14.97],["c",.33,-.03,1.11,0,1.47,.06],["c",1.68,.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,.81,6.96,-.9,9.27],["c",-.78,1.08,-1.71,1.71,-2.91,1.95],["c",-.45,.09,-1.32,.09,-1.77,0],["c",-.81,-.18,-1.47,-.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,.87],["c",-.21,-.06,-.69,-.09,-.87,-.06],["c",-.54,.12,-.87,.42,-1.17,.99],["c",-.36,.66,-.51,1.56,-.6,3],["c",-.03,.75,-.03,4.59,0,5.31],["c",.09,1.5,.27,2.4,.6,3.06],["c",.24,.48,.57,.78,.96,.9],["c",.27,.09,.78,.09,1.05,0],["c",.39,-.12,.72,-.42,.96,-.9],["c",.33,-.66,.51,-1.56,.6,-3.06],["c",.03,-.72,.03,-4.56,0,-5.31],["c",-.09,-1.47,-.27,-2.37,-.6,-3.03],["c",-.24,-.48,-.54,-.78,-.93,-.9],["z"]],w:10.78,h:14.959},1:{d:[["M",3.3,-15.06],["c",.06,-.06,.21,-.03,.66,.15],["c",.81,.39,1.08,.39,1.83,.03],["c",.21,-.09,.39,-.15,.42,-.15],["c",.12,0,.21,.09,.27,.21],["c",.06,.12,.06,.33,.06,5.94],["c",0,3.93,0,5.85,.03,6.03],["c",.06,.36,.15,.69,.27,.96],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.12,-.27,.21,-.6,.27,-.96],["c",.03,-.18,.03,-1.59,.03,-4.29],["c",0,-3.87,0,-4.05,-.06,-4.14],["c",-.09,-.15,-.18,-.24,-.39,-.24],["c",-.12,0,-.15,.03,-.21,.06],["c",-.03,.06,-.45,.99,-.96,2.13],["c",-.48,1.14,-.9,2.1,-.93,2.16],["c",-.06,.15,-.21,.24,-.33,.24],["c",-.24,0,-.42,-.18,-.42,-.39],["c",0,-.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},2:{d:[["M",4.23,-14.97],["c",.57,-.06,1.68,0,2.34,.18],["c",.69,.18,1.5,.54,2.01,.9],["c",1.35,.96,1.95,2.25,1.77,3.81],["c",-.15,1.35,-.66,2.34,-1.68,3.15],["c",-.6,.48,-1.44,.93,-3.12,1.65],["c",-1.32,.57,-1.8,.81,-2.37,1.14],["c",-.57,.33,-.57,.33,-.24,.27],["c",.39,-.09,1.26,-.09,1.68,0],["c",.72,.15,1.41,.45,2.1,.9],["c",.99,.63,1.86,.87,2.55,.75],["c",.24,-.06,.42,-.15,.57,-.3],["c",.12,-.09,.3,-.42,.3,-.51],["c",0,-.09,.12,-.21,.24,-.24],["c",.18,-.03,.39,.12,.39,.3],["c",0,.12,-.15,.57,-.3,.87],["c",-.54,1.02,-1.56,1.74,-2.79,2.01],["c",-.42,.09,-1.23,.09,-1.62,.03],["c",-.81,-.18,-1.32,-.45,-2.01,-1.11],["c",-.45,-.45,-.63,-.57,-.96,-.69],["c",-.84,-.27,-1.89,.12,-2.25,.9],["c",-.12,.21,-.21,.54,-.21,.72],["c",0,.12,-.12,.21,-.27,.24],["c",-.15,0,-.27,-.03,-.33,-.15],["c",-.09,-.21,.09,-1.08,.33,-1.71],["c",.24,-.66,.66,-1.26,1.29,-1.89],["c",.45,-.45,.9,-.81,1.92,-1.56],["c",1.29,-.93,1.89,-1.44,2.34,-1.98],["c",.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-.06,-1.29,-.39,-2.31,-.96,-2.91],["c",-.36,-.33,-.72,-.51,-1.17,-.54],["c",-.84,-.03,-1.53,.42,-1.59,1.05],["c",-.03,.33,.12,.6,.57,1.14],["c",.45,.54,.54,.87,.42,1.41],["c",-.15,.63,-.54,1.11,-1.08,1.38],["c",-.63,.33,-1.2,.33,-1.83,0],["c",-.24,-.12,-.33,-.18,-.54,-.39],["c",-.18,-.18,-.27,-.3,-.36,-.51],["c",-.24,-.45,-.27,-.84,-.21,-1.38],["c",.12,-.75,.45,-1.41,1.02,-1.98],["c",.72,-.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.97},3:{d:[["M",3.78,-14.97],["c",.3,-.03,1.41,0,1.83,.06],["c",2.22,.3,3.51,1.32,3.72,2.91],["c",.03,.33,.03,1.26,-.03,1.65],["c",-.12,.84,-.48,1.47,-1.05,1.77],["c",-.27,.15,-.36,.24,-.45,.39],["c",-.09,.21,-.09,.36,0,.57],["c",.09,.15,.18,.24,.51,.39],["c",.75,.42,1.23,1.14,1.41,2.13],["c",.06,.42,.06,1.35,0,1.71],["c",-.18,.81,-.48,1.38,-1.02,1.95],["c",-.75,.72,-1.8,1.2,-3.18,1.38],["c",-.42,.06,-1.56,.06,-1.95,0],["c",-1.89,-.33,-3.18,-1.29,-3.51,-2.64],["c",-.03,-.12,-.03,-.33,-.03,-.6],["c",0,-.36,0,-.42,.06,-.63],["c",.12,-.3,.27,-.51,.51,-.75],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.51,.36,-.63,.54,-.6,.87],["c",.06,.54,.54,.9,1.38,.99],["c",.36,.06,.72,.03,.96,-.06],["c",.81,-.27,1.29,-1.23,1.44,-2.79],["c",.03,-.45,.03,-1.95,-.03,-2.37],["c",-.09,-.75,-.33,-1.23,-.75,-1.44],["c",-.33,-.18,-.45,-.18,-1.98,-.18],["c",-1.35,0,-1.41,0,-1.5,-.06],["c",-.18,-.12,-.24,-.39,-.12,-.6],["c",.12,-.15,.15,-.15,1.68,-.15],["c",1.5,0,1.62,0,1.89,-.15],["c",.18,-.09,.42,-.36,.54,-.57],["c",.18,-.42,.27,-.9,.3,-1.95],["c",.03,-1.2,-.06,-1.8,-.36,-2.37],["c",-.24,-.48,-.63,-.81,-1.14,-.96],["c",-.3,-.06,-1.08,-.06,-1.38,.03],["c",-.6,.15,-.9,.42,-.96,.84],["c",-.03,.3,.06,.45,.63,.84],["c",.33,.24,.42,.39,.45,.63],["c",.03,.72,-.57,1.5,-1.32,1.65],["c",-1.05,.27,-2.1,-.57,-2.1,-1.65],["c",0,-.45,.15,-.96,.39,-1.38],["c",.12,-.21,.54,-.63,.81,-.81],["c",.57,-.42,1.38,-.69,2.25,-.81],["z"]],w:9.735,h:14.967},4:{d:[["M",8.64,-14.94],["c",.27,-.09,.42,-.12,.54,-.03],["c",.09,.06,.15,.21,.15,.3],["c",-.03,.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-.03,.06,.12,.06,2.55,.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,.03,-2.37,.06,-2.46],["c",.03,-.06,.21,-.18,.57,-.42],["c",1.08,-.72,1.38,-1.08,1.86,-2.16],["c",.12,-.3,.24,-.54,.27,-.57],["c",.12,-.12,.39,-.06,.45,.12],["c",.06,.09,.06,.57,.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,.06],["c",.24,.15,.24,.54,0,.69],["c",-.09,.06,-.15,.06,-1.2,.06],["l",-1.08,0],["l",0,.33],["c",0,.57,.09,1.11,.3,1.53],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.21,-.42,.3,-.96,.3,-1.53],["l",0,-.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-.15],["c",-.18,-.12,-.3,-.39,-.27,-.54],["c",.03,-.06,.18,-.24,.33,-.45],["c",.75,-.9,1.59,-2.07,2.13,-3.03],["c",.33,-.54,.84,-1.62,1.05,-2.16],["c",.57,-1.41,.84,-2.64,.9,-4.05],["c",.03,-.63,.06,-.72,.24,-.81],["l",.12,-.06],["l",.45,.12],["c",.66,.18,1.02,.24,1.47,.27],["c",.6,.03,1.23,-.09,2.01,-.33],["z"]],w:11.795,h:14.994},5:{d:[["M",1.02,-14.94],["c",.12,-.09,.03,-.09,1.08,.06],["c",2.49,.36,4.35,.36,6.96,-.06],["c",.57,-.09,.66,-.06,.81,.06],["c",.15,.18,.12,.24,-.15,.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-.6,.09,-1.2,.12,-1.71,.12],["c",-.39,0,-.45,0,-.57,.06],["c",-.09,.06,-.15,.12,-.21,.21],["l",-.06,.12],["l",0,1.65],["l",0,1.65],["l",.21,-.21],["c",.66,-.57,1.41,-.96,2.19,-1.14],["c",.33,-.06,1.41,-.06,1.95,0],["c",2.61,.36,4.02,1.74,4.26,4.14],["c",.03,.45,.03,1.08,-.03,1.44],["c",-.18,1.02,-.78,2.01,-1.59,2.7],["c",-.72,.57,-1.62,1.02,-2.49,1.2],["c",-1.38,.27,-3.03,.06,-4.2,-.54],["c",-1.08,-.54,-1.71,-1.32,-1.86,-2.28],["c",-.09,-.69,.09,-1.29,.57,-1.74],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.18,.12,-.36,.3,-.42,.33],["c",-.36,.42,-.18,.99,.36,1.26],["c",.51,.27,1.47,.36,2.01,.27],["c",.93,-.21,1.47,-1.17,1.65,-2.91],["c",.06,-.45,.06,-1.89,0,-2.31],["c",-.15,-1.2,-.51,-2.1,-1.05,-2.55],["c",-.21,-.18,-.54,-.36,-.81,-.39],["c",-.3,-.06,-.84,-.03,-1.26,.06],["c",-.93,.18,-1.65,.6,-2.16,1.2],["c",-.15,.21,-.27,.3,-.39,.3],["c",-.15,0,-.3,-.09,-.36,-.18],["c",-.06,-.09,-.06,-.15,-.06,-3.66],["c",0,-3.39,0,-3.57,.06,-3.66],["c",.03,-.06,.09,-.15,.15,-.18],["z"]],w:10.212,h:14.997},6:{d:[["M",4.98,-14.97],["c",.36,-.03,1.2,0,1.59,.06],["c",.9,.15,1.68,.51,2.25,1.05],["c",.57,.51,.87,1.23,.84,1.98],["c",-.03,.51,-.21,.9,-.6,1.26],["c",-.24,.24,-.45,.39,-.75,.51],["c",-.21,.06,-.27,.06,-.6,.06],["c",-.33,0,-.39,0,-.6,-.06],["c",-.3,-.12,-.51,-.27,-.75,-.51],["c",-.39,-.36,-.57,-.78,-.57,-1.26],["c",0,-.27,0,-.3,.09,-.42],["c",.03,-.09,.18,-.21,.3,-.3],["c",.12,-.09,.3,-.21,.39,-.27],["c",.09,-.06,.21,-.18,.27,-.24],["c",.06,-.12,.09,-.15,.09,-.33],["c",0,-.18,-.03,-.24,-.09,-.36],["c",-.24,-.39,-.75,-.6,-1.38,-.57],["c",-.54,.03,-.9,.18,-1.23,.48],["c",-.81,.72,-1.08,2.16,-.96,5.37],["l",0,.63],["l",.3,-.12],["c",.78,-.27,1.29,-.33,2.1,-.27],["c",1.47,.12,2.49,.54,3.27,1.29],["c",.48,.51,.81,1.11,.96,1.89],["c",.06,.27,.06,.42,.06,.93],["c",0,.54,0,.69,-.06,.96],["c",-.15,.78,-.48,1.38,-.96,1.89],["c",-.54,.51,-1.17,.87,-1.98,1.08],["c",-1.14,.3,-2.4,.33,-3.24,.03],["c",-1.5,-.48,-2.64,-1.89,-3.27,-4.02],["c",-.36,-1.23,-.51,-2.82,-.42,-4.08],["c",.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",.66,7.41],["c",-.27,-.09,-.81,-.12,-1.08,-.06],["c",-.72,.18,-1.08,.69,-1.23,1.71],["c",-.06,.54,-.06,3,0,3.54],["c",.18,1.26,.72,1.77,1.8,1.74],["c",.39,-.03,.63,-.09,.9,-.27],["c",.66,-.42,.9,-1.32,.9,-3.24],["c",0,-2.22,-.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},7:{d:[["M",.21,-14.97],["c",.21,-.06,.45,0,.54,.15],["c",.06,.09,.06,.15,.06,.39],["c",0,.24,0,.33,.06,.42],["c",.06,.12,.21,.24,.27,.24],["c",.03,0,.12,-.12,.24,-.21],["c",.96,-1.2,2.58,-1.35,3.99,-.42],["c",.15,.12,.42,.3,.54,.45],["c",.48,.39,.81,.57,1.29,.6],["c",.69,.03,1.5,-.3,2.13,-.87],["c",.09,-.09,.27,-.3,.39,-.45],["c",.12,-.15,.24,-.27,.3,-.3],["c",.18,-.06,.39,.03,.51,.21],["c",.06,.18,.06,.24,-.27,.72],["c",-.18,.24,-.54,.78,-.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-.03,.33,-.03,.66,-.03,1.26],["c",0,.9,0,1.08,.15,1.89],["c",.06,.45,.06,.48,.03,.6],["c",-.06,.09,-.21,.21,-.3,.21],["c",-.03,0,-.27,-.06,-.54,-.15],["c",-.84,-.27,-1.11,-.3,-1.65,-.3],["c",-.57,0,-.84,.03,-1.56,.27],["c",-.6,.18,-.69,.21,-.81,.15],["c",-.12,-.06,-.21,-.18,-.21,-.3],["c",0,-.15,.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",.21,-.27,.36,-.48,.33,-.48],["c",0,0,-.12,.06,-.27,.12],["c",-.54,.3,-.99,.39,-1.56,.39],["c",-.75,.03,-1.2,-.18,-1.83,-.75],["c",-.99,-.9,-1.83,-1.17,-2.31,-.72],["c",-.18,.15,-.36,.51,-.45,.84],["c",-.06,.24,-.06,.33,-.09,1.98],["c",0,1.62,-.03,1.74,-.06,1.8],["c",-.15,.24,-.54,.24,-.69,0],["c",-.06,-.09,-.06,-.15,-.06,-3.57],["c",0,-3.42,0,-3.48,.06,-3.57],["c",.03,-.06,.09,-.12,.15,-.15],["z"]],w:10.561,h:15.093},8:{d:[["M",4.98,-14.97],["c",.33,-.03,1.02,-.03,1.32,0],["c",1.32,.12,2.49,.6,3.21,1.32],["c",.39,.39,.66,.81,.78,1.29],["c",.09,.36,.09,1.08,0,1.44],["c",-.21,.84,-.66,1.59,-1.59,2.55],["l",-.3,.3],["l",.27,.18],["c",1.47,.93,2.31,2.31,2.25,3.75],["c",-.03,.75,-.24,1.35,-.63,1.95],["c",-.45,.66,-1.02,1.14,-1.83,1.53],["c",-1.8,.87,-4.2,.87,-6,.03],["c",-1.62,-.78,-2.52,-2.16,-2.46,-3.66],["c",.06,-.99,.54,-1.77,1.8,-2.97],["c",.54,-.51,.54,-.54,.48,-.57],["c",-.39,-.27,-.96,-.78,-1.2,-1.14],["c",-.75,-1.11,-.87,-2.4,-.3,-3.6],["c",.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,.69],["c",-.42,-.09,-1.11,-.12,-1.38,-.06],["c",-.3,.06,-.6,.18,-.81,.3],["c",-.21,.12,-.6,.51,-.72,.72],["c",-.51,.87,-.42,1.89,.21,2.52],["c",.21,.21,.36,.3,1.95,1.23],["c",.96,.54,1.74,.99,1.77,1.02],["c",.09,0,.63,-.6,.99,-1.11],["c",.21,-.36,.48,-.87,.57,-1.23],["c",.06,-.24,.06,-.36,.06,-.72],["c",0,-.45,-.03,-.66,-.15,-.99],["c",-.39,-.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-.03,0,-.18,.15,-.39,.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",.09,1.59,1.35,2.85,3.21,3.24],["c",.33,.06,.45,.06,.93,.06],["c",.63,0,.81,-.03,1.29,-.27],["c",.9,-.42,1.47,-1.41,1.41,-2.4],["c",-.06,-.66,-.39,-1.29,-.9,-1.65],["c",-.12,-.09,-1.05,-.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},9:{d:[["M",4.23,-14.97],["c",.42,-.03,1.29,0,1.62,.06],["c",.51,.12,.93,.3,1.38,.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",.18,2.55,-.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-.06,-2.31,-.45,-3.03,-1.14],["c",-.57,-.51,-.87,-1.23,-.84,-1.98],["c",.03,-.51,.21,-.9,.6,-1.26],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.39,.36,.57,.78,.57,1.26],["c",0,.27,0,.3,-.09,.42],["c",-.03,.09,-.18,.21,-.3,.3],["c",-.12,.09,-.3,.21,-.39,.27],["c",-.09,.06,-.21,.18,-.27,.24],["c",-.06,.12,-.06,.15,-.06,.33],["c",0,.18,0,.24,.06,.36],["c",.24,.39,.75,.6,1.38,.57],["c",.54,-.03,.9,-.18,1.23,-.48],["c",.81,-.72,1.08,-2.16,.96,-5.37],["l",0,-.63],["l",-.3,.12],["c",-.78,.27,-1.29,.33,-2.1,.27],["c",-1.47,-.12,-2.49,-.54,-3.27,-1.29],["c",-.48,-.51,-.81,-1.11,-.96,-1.89],["c",-.06,-.27,-.06,-.42,-.06,-.96],["c",0,-.51,0,-.66,.06,-.93],["c",.15,-.78,.48,-1.38,.96,-1.89],["c",.15,-.12,.33,-.27,.42,-.36],["c",.69,-.51,1.62,-.81,2.76,-.93],["z"],["m",1.17,.66],["c",-.21,-.06,-.57,-.06,-.81,-.03],["c",-.78,.12,-1.26,.69,-1.41,1.74],["c",-.12,.63,-.15,1.95,-.09,2.79],["c",.12,1.71,.63,2.4,1.77,2.46],["c",1.08,.03,1.62,-.48,1.8,-1.74],["c",.06,-.54,.06,-3,0,-3.54],["c",-.15,-1.05,-.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},"rests.multimeasure":{d:[["M",0,-4],["l",0,16],["l",1,0],["l",0,-5],["l",40,0],["l",0,5],["l",1,0],["l",0,-16],["l",-1,0],["l",0,5],["l",-40,0],["l",0,-5],["z"]],w:42,h:18},"rests.whole":{d:[["M",.06,.03],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",.06,-4.62],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",.12,-.06,.24,-.06,.36,-.03],["c",.09,.06,4.74,5.58,4.86,5.82],["c",.21,.39,.15,.78,-.15,1.26],["c",-.24,.33,-.72,.81,-1.62,1.56],["c",-.45,.36,-.87,.75,-.96,.84],["c",-.93,.99,-1.14,2.49,-.6,3.63],["c",.18,.39,.27,.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",0,.18,-.18,.36,-.36,.39],["c",-.15,0,-.27,-.06,-.48,-.27],["c",-.75,-.75,-2.46,-1.29,-3.39,-1.08],["c",-.45,.09,-.69,.27,-.9,.69],["c",-.12,.3,-.21,.66,-.24,1.14],["c",-.03,.66,.09,1.35,.3,2.01],["c",.15,.42,.24,.66,.45,.96],["c",.18,.24,.18,.33,.03,.42],["c",-.12,.06,-.18,.03,-.45,-.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-.27,-1.05,-.15,-1.77,.27,-2.07],["c",.21,-.12,.42,-.15,.87,-.15],["c",.87,.06,2.1,.39,3.3,.9],["l",.39,.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-.09,-.24,-.12,-.48,-.03,-.75],["c",.15,-.48,.57,-.96,1.83,-2.01],["c",.45,-.36,.84,-.72,.93,-.78],["c",.69,-.75,1.02,-1.8,.9,-2.79],["c",-.06,-.33,-.21,-.84,-.39,-1.11],["c",-.09,-.15,-.45,-.6,-.81,-1.05],["c",-.36,-.42,-.69,-.81,-.72,-.87],["c",-.09,-.18,0,-.42,.21,-.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.33,-.09],["c",.39,-.18,1.32,-1.29,1.68,-1.98],["c",.09,-.21,.24,-.3,.39,-.3],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.15,-.57,1.68,-4.92],["c",.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-.51,.15],["c",-1.08,.36,-1.74,.48,-2.55,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.87,.42],["c",.39,-.18,1.2,-1.23,1.62,-2.07],["c",.06,-.15,.24,-.24,.36,-.24],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-.03,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.12,-.57,1.44,-4.92],["c",.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-.03,0,-.27,.06,-.54,.15],["c",-1.08,.36,-1.77,.48,-2.58,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.12,0,.18,0,.33,-.09],["c",.33,-.15,1.02,-.93,1.41,-1.59],["c",.12,-.21,.18,-.39,.39,-1.08],["c",.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-.21,.06,-.42,.15],["c",-.51,.15,-1.2,.33,-1.68,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.27,-.06],["c",.33,-.21,.99,-1.11,1.44,-1.98],["c",.09,-.24,.21,-.33,.39,-.33],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.09,-.57,1.23,-4.92],["c",.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-.03,-.12,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.12,.09,.3,.18,.48,.21],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.29,-1.29,1.56,-1.89],["c",.03,-.12,1.23,-4.59,1.23,-4.65],["c",0,-.03,-.18,.03,-.39,.12],["c",-.63,.18,-1.2,.36,-1.74,.45],["c",-.39,.06,-.54,.06,-1.02,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.18,.18,.51,.27,.72,.15],["c",.3,-.12,.69,-.57,1.08,-1.17],["c",.42,-.6,.39,-.51,1.05,-3.03],["c",.33,-1.26,.6,-2.31,.6,-2.34],["c",0,0,-.21,.03,-.45,.12],["c",-.57,.18,-1.14,.33,-1.62,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.54,.3,.75,.18],["c",.24,-.12,.63,-.66,1.08,-1.56],["c",.33,-.66,.39,-.72,.6,-.72],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.06,-.57,1.05,-4.95],["c",.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-.24,.06,-.51,.15],["c",-.66,.24,-1.2,.36,-1.77,.48],["c",-.42,.06,-.57,.06,-1.05,.06],["c",-.69,0,-.87,-.03,-1.35,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.21,.03,.39,-.09,.72,-.42],["c",.45,-.45,1.02,-1.26,1.17,-1.65],["c",.03,-.09,.27,-1.14,.54,-2.34],["c",.27,-1.2,.48,-2.19,.51,-2.22],["c",0,-.03,-.09,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.9,.42],["c",.36,-.18,1.2,-1.26,1.47,-1.89],["c",.03,-.09,.3,-1.2,.57,-2.43],["l",.51,-2.28],["l",-.54,.18],["c",-1.11,.36,-1.8,.48,-2.61,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.21,.21,.54,.3,.75,.18],["c",.36,-.18,.93,-.93,1.29,-1.68],["c",.12,-.24,.18,-.48,.63,-2.55],["l",.51,-2.31],["c",0,-.03,-.18,.03,-.39,.12],["c",-1.14,.36,-2.1,.54,-2.82,.51],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.21,0,.33,-.06,.54,-.36],["c",.15,-.21,.54,-.93,.78,-1.47],["c",.15,-.33,.18,-.39,.3,-.48],["c",.18,-.09,.45,0,.51,.15],["c",.03,.09,-7.11,42.75,-7.17,42.84],["c",-.03,.03,-.15,.09,-.24,.15],["c",-.18,.06,-.24,.06,-.45,.06],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.03,-.57,.84,-4.98],["c",.51,-2.7,.93,-4.92,.9,-4.92],["c",0,0,-.15,.06,-.36,.12],["c",-.78,.27,-1.62,.48,-2.31,.57],["c",-.15,.03,-.54,.03,-.81,.03],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.63,.48],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.14,-1.11,1.5,-1.83],["c",.12,-.27,.12,-.27,.54,-2.52],["c",.24,-1.23,.42,-2.25,.39,-2.25],["c",0,0,-.24,.06,-.51,.18],["c",-1.26,.39,-2.25,.57,-3.06,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.51,.3,.75,.18],["c",.36,-.15,1.05,-.99,1.41,-1.77],["l",.15,-.3],["l",.42,-2.25],["c",.21,-1.26,.42,-2.28,.39,-2.28],["l",-.51,.15],["c",-1.11,.39,-1.89,.51,-2.7,.51],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.18,.48,.27,.72,.21],["c",.33,-.12,1.14,-1.26,1.41,-1.95],["c",0,-.09,.21,-1.11,.45,-2.34],["c",.21,-1.2,.39,-2.22,.39,-2.28],["c",.03,-.03,0,-.03,-.45,.12],["c",-.57,.18,-1.2,.33,-1.71,.42],["c",-.3,.06,-.51,.06,-.93,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.18,0,.36,-.09,.57,-.33],["c",.33,-.36,.78,-1.14,.93,-1.56],["c",.03,-.12,.24,-1.2,.45,-2.4],["c",.24,-1.2,.42,-2.22,.42,-2.28],["c",.03,-.03,0,-.03,-.39,.09],["c",-1.05,.36,-1.8,.48,-2.58,.48],["c",-.63,0,-.84,-.03,-1.29,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.31],["c",0,1.23,0,2.22,.03,2.22],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.43],["c",0,1.32,0,2.43,.03,2.43],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.52],["c",0,2.28,-.03,2.55,-.06,2.64],["c",-.21,.36,-.72,.36,-.93,0],["c",-.03,-.09,-.06,-.33,-.06,-2.43],["l",0,-2.31],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.43],["c",0,2.58,0,2.52,-.15,2.67],["c",-.06,.09,-.27,.18,-.36,.18],["c",-.12,0,-.33,-.09,-.39,-.18],["c",-.15,-.15,-.15,-.09,-.15,-2.43],["c",0,-1.23,0,-2.22,-.03,-2.22],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-.03,-2.43],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.52],["c",0,-2.28,.03,-2.55,.06,-2.64],["c",.21,-.36,.72,-.36,.93,0],["c",.03,.09,.06,.33,.06,2.43],["l",.03,2.31],["l",1.26,-.51],["l",1.26,-.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,.06,-2.55],["c",.06,-.12,.12,-.18,.27,-.24],["z"],["m",-.33,10.65],["l",0,-2.43],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.46],["l",0,2.43],["l",.09,-.03],["c",.06,-.03,.63,-.27,1.29,-.51],["l",1.17,-.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.01],["c",0,1.05,0,1.89,.03,1.89],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.37],["c",0,1.32,0,2.37,.03,2.37],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.25],["c",0,1.95,0,2.28,-.06,2.37],["c",-.06,.12,-.12,.21,-.24,.27],["c",-.27,.12,-.54,.03,-.69,-.24],["c",-.06,-.12,-.06,-.21,-.06,-2.01],["c",0,-1.05,0,-1.89,-.03,-1.89],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-.03,-2.37],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,.06,-2.4],["c",.06,-.12,.12,-.18,.27,-.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",.21,-11.4],["c",.24,-.06,.78,0,.99,.15],["c",.03,.03,.03,.48,0,2.61],["c",-.03,1.44,-.03,2.61,-.03,2.61],["c",0,.03,.75,-.09,1.68,-.24],["c",.96,-.18,1.71,-.27,1.74,-.27],["c",.15,.03,.27,.15,.36,.3],["l",.06,.12],["l",.09,8.67],["c",.09,6.96,.12,8.67,.09,8.67],["c",-.03,.03,-.12,.06,-.21,.09],["c",-.24,.09,-.72,.09,-.96,0],["c",-.09,-.03,-.18,-.06,-.21,-.09],["c",-.03,-.03,-.03,-.48,0,-2.61],["c",.03,-1.44,.03,-2.61,.03,-2.61],["c",0,-.03,-.75,.09,-1.68,.24],["c",-.96,.18,-1.71,.27,-1.74,.27],["c",-.15,-.03,-.27,-.15,-.36,-.3],["l",-.06,-.15],["l",-.09,-7.53],["c",-.06,-4.14,-.09,-8.04,-.12,-8.67],["l",0,-1.11],["l",.15,-.06],["c",.09,-.03,.21,-.06,.27,-.09],["z"],["m",3.75,8.4],["c",0,-.33,0,-.42,-.03,-.42],["c",-.12,0,-2.79,.45,-2.79,.48],["c",-.03,0,-.09,6.3,-.09,6.33],["c",.03,0,2.79,-.45,2.82,-.48],["c",0,0,.09,-4.53,.09,-5.91],["z"]],w:5.4,h:22.8},"accidentals.flat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.6,-.12,9.06],["c",-.09,5.55,-.15,9.06,-.18,9.12],["c",-.03,.09,-.09,.18,-.15,.27],["c",-.24,.21,-.54,.24,-.81,.06],["c",-.06,-.03,-.27,-.24,-.45,-.42],["c",-.36,-.42,-.66,-.66,-1.8,-1.44],["c",-1.23,-.84,-1.83,-1.32,-2.25,-1.77],["c",-.66,-.78,-.96,-1.56,-.93,-2.46],["c",.09,-1.41,1.11,-2.58,2.4,-2.79],["c",.3,-.06,.84,-.03,1.23,.06],["c",.54,.12,1.08,.33,1.53,.63],["c",.12,.09,.24,.15,.24,.12],["c",0,0,-.12,-8.37,-.18,-9.75],["l",0,-.66],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",-1.65,10.95],["c",-.6,-.18,-1.08,.09,-1.38,.69],["c",-.27,.6,-.36,1.38,-.18,2.07],["c",.12,.42,.42,.99,.72,1.41],["c",.3,.42,.93,1.05,1.56,1.59],["l",.48,.39],["l",0,-.12],["c",.03,-.09,.03,-.48,.06,-.9],["c",.03,-.57,.03,-1.08,0,-2.22],["c",-.03,-1.62,-.03,-1.62,-.24,-2.07],["c",-.21,-.42,-.6,-.75,-1.02,-.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.33,-.03,4.89],["c",-.06,2.67,-.09,5.01,-.09,5.22],["l",0,.36],["l",.15,-.15],["c",.36,-.3,.75,-.51,1.2,-.63],["c",.33,-.09,.96,-.09,1.26,-.03],["c",.27,.09,.63,.27,.87,.45],["l",.21,.15],["l",0,-.27],["c",0,-.15,-.03,-2.43,-.09,-5.1],["c",-.09,-4.56,-.09,-4.86,-.03,-4.89],["c",.15,-.12,.39,-.15,.72,-.15],["c",.3,0,.54,.03,.69,.15],["c",.06,.03,.06,.33,-.03,4.95],["c",-.06,2.7,-.09,5.04,-.09,5.22],["l",.03,.3],["l",.21,-.15],["c",.69,-.48,1.44,-.69,2.28,-.69],["c",.51,0,.78,.03,1.2,.21],["c",1.32,.63,2.01,2.28,1.53,3.69],["c",-.21,.57,-.51,1.02,-1.05,1.56],["c",-.42,.42,-.81,.72,-1.92,1.5],["c",-1.26,.87,-1.5,1.08,-1.86,1.5],["c",-.39,.45,-.54,.54,-.81,.51],["c",-.18,0,-.21,0,-.33,-.06],["l",-.21,-.21],["l",-.06,-.12],["l",-.03,-.99],["c",-.03,-.54,-.03,-1.29,-.06,-1.68],["l",0,-.69],["l",-.21,.24],["c",-.36,.42,-.75,.75,-1.8,1.62],["c",-1.02,.84,-1.2,.99,-1.44,1.38],["c",-.36,.51,-.54,.6,-.9,.51],["c",-.15,-.03,-.39,-.27,-.42,-.42],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",2.52,10.98],["c",-.18,-.09,-.48,-.12,-.66,-.06],["c",-.39,.15,-.69,.54,-.84,1.14],["c",-.06,.24,-.06,.39,-.09,1.74],["c",-.03,1.44,0,2.73,.06,3.18],["l",.03,.15],["l",.27,-.27],["c",.93,-.96,1.5,-1.95,1.74,-3.06],["c",.06,-.27,.06,-.39,.06,-.96],["c",0,-.54,0,-.69,-.06,-.93],["c",-.09,-.51,-.27,-.81,-.51,-.93],["z"],["m",5.43,0],["c",-.18,-.09,-.51,-.12,-.72,-.06],["c",-.54,.12,-.96,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.9],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.36,-.3],["c",.42,-.36,1.02,-.96,1.29,-1.29],["c",.36,-.45,.66,-.99,.81,-1.41],["c",.42,-1.23,.15,-2.76,-.6,-3.12],["z"]],w:11.613,h:18.804},"accidentals.dblsharp":{d:[["M",-.18,-3.96],["c",.06,-.03,.12,-.06,.15,-.06],["c",.09,0,2.76,.27,2.79,.3],["c",.12,.03,.15,.12,.15,.51],["c",.06,.96,.24,1.59,.57,2.1],["c",.06,.09,.15,.21,.18,.24],["l",.09,.06],["l",.09,-.06],["c",.03,-.03,.12,-.15,.18,-.24],["c",.33,-.51,.51,-1.14,.57,-2.1],["c",0,-.39,.03,-.45,.12,-.51],["c",.03,0,.66,-.09,1.44,-.15],["c",1.47,-.15,1.5,-.15,1.56,-.03],["c",.03,.06,0,.42,-.09,1.44],["c",-.09,.72,-.15,1.35,-.15,1.38],["c",0,.03,-.03,.09,-.06,.12],["c",-.06,.06,-.12,.09,-.51,.09],["c",-1.08,.06,-1.8,.3,-2.28,.75],["l",-.12,.09],["l",.09,.09],["c",.12,.15,.39,.33,.63,.45],["c",.42,.18,.96,.27,1.68,.33],["c",.39,0,.45,.03,.51,.09],["c",.03,.03,.06,.09,.06,.12],["c",0,.03,.06,.66,.15,1.38],["c",.09,1.02,.12,1.38,.09,1.44],["c",-.06,.12,-.09,.12,-1.56,-.03],["c",-.78,-.06,-1.41,-.15,-1.44,-.15],["c",-.09,-.06,-.12,-.12,-.12,-.54],["c",-.06,-.93,-.24,-1.56,-.57,-2.07],["c",-.06,-.09,-.15,-.21,-.18,-.24],["l",-.09,-.06],["l",-.09,.06],["c",-.03,.03,-.12,.15,-.18,.24],["c",-.33,.51,-.51,1.14,-.57,2.07],["c",0,.42,-.03,.48,-.12,.54],["c",-.03,0,-.66,.09,-1.44,.15],["c",-1.47,.15,-1.5,.15,-1.56,.03],["c",-.03,-.06,0,-.42,.09,-1.44],["c",.09,-.72,.15,-1.35,.15,-1.38],["c",0,-.03,.03,-.09,.06,-.12],["c",.06,-.06,.12,-.09,.51,-.09],["c",.72,-.06,1.26,-.15,1.68,-.33],["c",.24,-.12,.51,-.3,.63,-.45],["l",.09,-.09],["l",-.12,-.09],["c",-.48,-.45,-1.2,-.69,-2.28,-.75],["c",-.39,0,-.45,-.03,-.51,-.09],["c",-.03,-.03,-.06,-.09,-.06,-.12],["c",0,-.03,-.06,-.63,-.12,-1.38],["c",-.09,-.72,-.15,-1.35,-.15,-1.38],["z"]],w:7.95,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",.09,-.03,.27,-.06,.39,-.06],["c",.96,0,1.74,.78,1.74,1.71],["c",0,.96,-.78,1.74,-1.71,1.74],["c",-.96,0,-1.74,-.78,-1.74,-1.71],["c",0,-.78,.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-.69,-4.02],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["c",.06,.15,.06,.18,.06,1.41],["l",0,1.23],["l",.12,-.18],["c",.72,-1.26,2.64,-2.31,4.86,-2.64],["c",.81,-.15,1.11,-.15,2.13,-.15],["c",.99,0,1.29,0,2.1,.15],["c",.75,.12,1.38,.27,2.04,.54],["c",1.35,.51,2.34,1.26,2.82,2.1],["l",.12,.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,.06,-1.38],["c",.09,-.18,.15,-.24,.33,-.33],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,3.54],["l",0,3.54],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.38],["l",0,-1.23],["l",-.12,.18],["c",-.48,.84,-1.47,1.59,-2.82,2.1],["c",-.84,.33,-1.71,.54,-2.85,.66],["c",-.45,.06,-2.16,.06,-2.61,0],["c",-1.14,-.12,-2.01,-.33,-2.85,-.66],["c",-1.35,-.51,-2.34,-1.26,-2.82,-2.1],["l",-.12,-.18],["l",0,1.23],["c",0,1.23,0,1.26,-.06,1.38],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,.06,-3.66],["c",.09,-.18,.15,-.24,.33,-.33],["z"],["m",7.71,.63],["c",-.36,-.06,-.9,-.06,-1.14,0],["c",-.3,.03,-.66,.24,-.87,.42],["c",-.6,.54,-.9,1.62,-.75,2.82],["c",.12,.93,.51,1.68,1.11,2.31],["c",.75,.72,1.83,1.2,2.85,1.26],["c",1.05,.06,1.83,-.54,2.1,-1.65],["c",.21,-.9,.12,-1.95,-.24,-2.82],["c",-.36,-.81,-1.08,-1.53,-1.95,-1.95],["c",-.3,-.15,-.78,-.3,-1.11,-.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",.51,-.03,2.01,0,2.52,.03],["c",1.41,.18,2.64,.51,3.72,1.08],["c",1.2,.63,1.95,1.41,2.19,2.31],["c",.09,.33,.09,.9,0,1.23],["c",-.24,.9,-.99,1.68,-2.19,2.31],["c",-1.08,.57,-2.28,.9,-3.75,1.08],["c",-.66,.06,-2.31,.06,-2.97,0],["c",-1.47,-.18,-2.67,-.51,-3.75,-1.08],["c",-1.2,-.63,-1.95,-1.41,-2.19,-2.31],["c",-.09,-.33,-.09,-.9,0,-1.23],["c",.24,-.9,.99,-1.68,2.19,-2.31],["c",1.2,-.63,2.61,-.99,4.23,-1.11],["z"],["m",.57,.66],["c",-.87,-.15,-1.53,0,-2.04,.51],["c",-.15,.15,-.24,.27,-.33,.48],["c",-.24,.51,-.36,1.08,-.33,1.77],["c",.03,.69,.18,1.26,.42,1.77],["c",.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,.21,1.95,-.15,2.34,-.99],["c",.24,-.51,.36,-1.08,.33,-1.8],["c",-.06,-1.11,-.45,-2.04,-1.17,-2.76],["c",-.63,-.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",.06,-.03,.27,-.03,.48,-.03],["c",1.05,0,1.71,.24,2.1,.81],["c",.42,.6,.45,1.35,.18,2.4],["c",-.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,.93,-3.18,1.44,-5.4,1.53],["c",-1.17,.03,-1.89,-.21,-2.28,-.81],["c",-.42,-.6,-.45,-1.35,-.18,-2.4],["c",.42,-1.59,1.14,-2.73,2.16,-3.39],["c",.63,-.42,1.23,-.72,1.98,-.96],["c",.9,-.3,1.65,-.42,3.12,-.54],["z"],["m",1.29,.87],["c",-.27,-.09,-.63,-.12,-.9,-.03],["c",-.72,.24,-1.53,.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-.36,.72,-.06,1.5,.66,1.77],["c",.24,.12,.69,.09,.99,0],["c",.84,-.3,1.92,-.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",.36,-.72,.06,-1.5,-.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",.36,-.03,1.2,0,1.53,.06],["c",1.17,.24,1.89,.84,2.16,1.83],["c",.06,.18,.06,.3,.06,.66],["c",0,.45,0,.63,-.15,1.08],["c",-.66,2.04,-3.06,3.93,-5.52,4.38],["c",-.54,.09,-1.44,.09,-1.83,.03],["c",-1.23,-.27,-1.98,-.87,-2.25,-1.86],["c",-.06,-.18,-.06,-.3,-.06,-.66],["c",0,-.45,0,-.63,.15,-1.08],["c",.24,-.78,.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[["M",9.3,-7.77],["c",.06,-.06,.18,-.06,1.71,-.06],["l",1.65,0],["l",.09,.09],["c",.06,.06,.06,.09,.06,.15],["c",-.03,.12,-9.21,15.24,-9.3,15.33],["c",-.06,.06,-.18,.06,-1.71,.06],["l",-1.65,0],["l",-.09,-.09],["c",-.06,-.06,-.06,-.09,-.06,-.15],["c",.03,-.12,9.21,-15.24,9.3,-15.33],["z"]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[["M",.78,-4.05],["c",.12,-.03,.24,-.03,.36,.03],["c",.03,.03,.93,.72,1.95,1.56],["l",1.86,1.5],["l",1.86,-1.5],["c",1.02,-.84,1.92,-1.53,1.95,-1.56],["c",.21,-.12,.33,-.09,.75,.24],["c",.3,.27,.36,.36,.36,.54],["c",0,.03,-.03,.12,-.06,.18],["c",-.03,.06,-.9,.75,-1.89,1.56],["l",-1.8,1.47],["c",0,.03,.81,.69,1.8,1.5],["c",.99,.81,1.86,1.5,1.89,1.56],["c",.03,.06,.06,.15,.06,.18],["c",0,.18,-.06,.27,-.36,.54],["c",-.42,.33,-.54,.36,-.75,.24],["c",-.03,-.03,-.93,-.72,-1.95,-1.56],["l",-1.86,-1.5],["l",-1.86,1.5],["c",-1.02,.84,-1.92,1.53,-1.95,1.56],["c",-.21,.12,-.33,.09,-.75,-.24],["c",-.3,-.27,-.36,-.36,-.36,-.54],["c",0,-.03,.03,-.12,.06,-.18],["c",.03,-.06,.9,-.75,1.89,-1.56],["l",1.8,-1.47],["c",0,-.03,-.81,-.69,-1.8,-1.5],["c",-.99,-.81,-1.86,-1.5,-1.89,-1.56],["c",-.06,-.12,-.09,-.21,-.03,-.36],["c",.03,-.09,.57,-.57,.72,-.63],["z"]],w:9.843,h:8.139},"scripts.ufermata":{d:[["M",-.75,-10.77],["c",.12,0,.45,-.03,.69,-.03],["c",2.91,-.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",.12,.51,.12,.57,.03,.69],["c",-.12,.21,-.48,.27,-.69,.12],["c",-.12,-.09,-.18,-.24,-.27,-.69],["c",-.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-.78,-.21,-1.2,-.24,-2.07,-.24],["c",-.63,0,-.84,0,-1.2,.06],["c",-1.83,.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-.09,.45,-.15,.6,-.27,.69],["c",-.21,.15,-.57,.09,-.69,-.12],["c",-.09,-.12,-.09,-.18,.03,-.69],["c",.33,-1.62,.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",.33,7.47],["c",1.38,-.3,2.58,.9,2.31,2.25],["c",-.15,.72,-.78,1.35,-1.47,1.5],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-.42],["c",.15,-.09,.36,-.06,.51,.03],["c",.12,.09,.18,.24,.27,.66],["c",.78,3.66,3.42,6.57,6.78,7.41],["c",.78,.21,1.2,.24,2.07,.24],["c",.63,0,.84,0,1.2,-.06],["c",1.83,-.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",.09,-.42,.15,-.57,.27,-.66],["c",.21,-.15,.57,-.09,.69,.12],["c",.09,.12,.09,.18,-.03,.69],["c",-.33,1.62,-.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-.48,-.96,-.84,-1.92,-1.14,-2.97],["c",-.18,-.69,-.42,-1.74,-.42,-1.92],["c",0,-.12,.09,-.27,.24,-.33],["z"],["m",9.21,0],["c",1.2,-.27,2.34,.63,2.34,1.86],["c",0,.9,-.66,1.68,-1.5,1.89],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",.06,-.03,.15,-.06,.18,-.06],["c",.06,0,2.85,.72,6.24,1.59],["l",6.33,1.65],["c",.33,.06,.45,.21,.45,.51],["c",0,.3,-.12,.45,-.45,.51],["l",-6.33,1.65],["c",-3.39,.87,-6.18,1.59,-6.21,1.59],["c",-.21,0,-.48,-.24,-.51,-.45],["c",0,-.15,.06,-.36,.18,-.45],["c",.09,-.06,.87,-.27,3.84,-1.05],["c",2.04,-.54,3.84,-.99,4.02,-1.02],["c",.15,-.06,1.14,-.24,2.22,-.42],["c",1.05,-.18,1.92,-.36,1.92,-.36],["c",0,0,-.87,-.18,-1.92,-.36],["c",-1.08,-.18,-2.07,-.36,-2.22,-.42],["c",-.18,-.03,-1.98,-.48,-4.02,-1.02],["c",-2.97,-.78,-3.75,-.99,-3.84,-1.05],["c",-.12,-.09,-.18,-.3,-.18,-.45],["c",.03,-.15,.15,-.3,.3,-.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-.36,-1.47],["c",.93,-.21,1.86,.51,1.86,1.47],["c",0,.93,-.87,1.65,-1.8,1.47],["c",-.54,-.12,-1.02,-.57,-1.14,-1.08],["c",-.21,-.81,.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-.48],["l",.12,-.06],["l",4.08,0],["l",4.08,0],["l",.12,.06],["c",.39,.21,.39,.75,0,.96],["l",-.12,.06],["l",-4.08,0],["l",-4.08,0],["l",-.12,-.06],["c",-.39,-.21,-.39,-.75,0,-.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-.15,-8.19],["c",.15,-.12,.36,-.03,.45,.15],["c",.21,.42,3.45,7.65,3.45,7.71],["c",0,.12,-.12,.27,-.21,.3],["c",-.03,.03,-.51,.03,-1.14,.03],["c",-1.05,0,-1.08,0,-1.17,-.06],["c",-.09,-.06,-.24,-.36,-1.17,-2.4],["c",-.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",0,-.03,-.51,1.02,-1.08,2.34],["c",-.93,2.07,-1.08,2.34,-1.14,2.4],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.06,3.24,-7.32,3.45,-7.71],["c",.03,-.06,.09,-.15,.15,-.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,.03],["c",.03,0,.57,-.03,1.17,-.03],["c",1.05,0,1.08,0,1.17,.06],["c",.09,.06,.24,.36,1.17,2.4],["c",.57,1.29,1.05,2.34,1.08,2.34],["c",0,.03,.51,-1.02,1.08,-2.34],["c",.93,-2.07,1.08,-2.34,1.14,-2.4],["c",.06,-.03,.15,-.06,.18,-.06],["c",.15,0,.33,.18,.33,.33],["c",0,.09,-3.45,7.74,-3.54,7.83],["c",-.12,.12,-.3,.12,-.42,0],["c",-.09,-.09,-3.54,-7.74,-3.54,-7.83],["c",0,-.09,.12,-.27,.18,-.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-.27,-4.08],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.5],["l",0,1.47],["l",1.47,0],["l",1.5,0],["l",.15,.06],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.09,.36,0,.54],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.12,.06,-.18,.06,-1.62,.06],["l",-1.47,0],["l",0,1.47],["l",0,1.47],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-1.47],["l",0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.47,0],["l",1.47,0],["l",0,-1.47],["c",0,-1.44,0,-1.5,.06,-1.62],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",.12,-.09,.36,-.06,.48,.03],["c",.03,.03,.09,.09,.12,.15],["c",.03,.06,.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",.63,2.46],["l",.63,-2.46],["c",.63,-2.4,.66,-2.55,2.01,-6.96],["c",.75,-2.49,1.38,-4.56,1.41,-4.62],["c",.06,-.15,.18,-.21,.36,-.24],["c",.15,0,.3,.06,.39,.18],["c",.15,.21,.24,-.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,.12,-.06,.27,-.09,.3],["c",-.12,.21,-.6,.21,-.72,0],["c",-.03,-.03,-.09,-.18,-.09,-.3],["c",-.03,-.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",.03,-.03,.09,-.09,.15,-.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",.09,-.06],["l",5.46,0],["l",5.46,0],["l",.09,.06],["l",.06,.09],["l",0,4.77],["c",0,5.28,0,4.89,-.18,5.01],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.06,-.09,-.06,-.18,-.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-.06,2.97],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.21,-.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",.36,-.06,1.05,-.06,1.44,.03],["c",.78,.15,1.5,.51,2.34,1.14],["c",.6,.45,1.05,.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",.6,.36,1.32,.57,1.92,.57],["c",.9,0,1.71,-.57,1.89,-1.35],["c",.24,-.93,-.39,-1.89,-1.35,-2.1],["l",-.15,-.06],["l",-.09,.15],["c",-.03,.09,-.15,.24,-.24,.33],["c",-.72,.72,-2.04,.54,-2.49,-.36],["c",-.48,-.93,.03,-1.86,1.17,-2.19],["c",.3,-.09,1.02,-.09,1.35,0],["c",.99,.27,1.74,.87,2.25,1.83],["c",.69,1.41,.63,3,-.21,4.26],["c",-.21,.3,-.69,.81,-.99,1.02],["c",-.3,.21,-.84,.45,-1.17,.54],["c",-1.23,.36,-2.49,.15,-3.72,-.6],["c",-.75,-.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-.6,-.36,-1.32,-.57,-1.92,-.57],["c",-.9,0,-1.71,.57,-1.89,1.35],["c",-.24,.93,.39,1.89,1.35,2.1],["l",.15,.06],["l",.09,-.15],["c",.03,-.09,.15,-.24,.24,-.33],["c",.72,-.72,2.04,-.54,2.49,.36],["c",.48,.93,-.03,1.86,-1.17,2.19],["c",-.3,.09,-1.02,.09,-1.35,0],["c",-.99,-.27,-1.74,-.87,-2.25,-1.83],["c",-.69,-1.41,-.63,-3,.21,-4.26],["c",.21,-.3,.69,-.81,.99,-1.02],["c",.48,-.33,1.11,-.57,1.74,-.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-.51,-16.02],["c",.12,-.09,.21,-.18,.21,-.18],["l",-.81,4.02],["l",-.81,4.02],["c",.03,0,.51,-.27,1.08,-.6],["c",.6,-.3,1.14,-.63,1.26,-.66],["c",1.14,-.54,2.31,-.6,3.09,-.18],["c",.27,.15,.54,.36,.6,.51],["l",.06,.12],["l",.21,-.21],["c",.9,-.81,2.22,-.99,3.12,-.42],["c",.6,.42,.9,1.14,.78,2.07],["c",-.15,1.29,-1.05,2.31,-1.95,2.25],["c",-.48,-.03,-.78,-.3,-.96,-.81],["c",-.09,-.27,-.09,-.9,-.03,-1.2],["c",.21,-.75,.81,-1.23,1.59,-1.32],["l",.24,-.03],["l",-.09,-.12],["c",-.51,-.66,-1.62,-.63,-2.31,.03],["c",-.39,.42,-.3,.09,-1.23,4.77],["l",-.81,4.14],["c",-.03,0,-.12,-.03,-.21,-.09],["c",-.33,-.15,-.54,-.18,-.99,-.18],["c",-.42,0,-.66,.03,-1.05,.18],["c",-.12,.06,-.21,.09,-.21,.09],["c",0,-.03,.36,-1.86,.81,-4.11],["c",.9,-4.47,.87,-4.26,.69,-4.53],["c",-.21,-.36,-.66,-.51,-1.17,-.36],["c",-.15,.06,-2.22,1.14,-2.58,1.38],["c",-.12,.09,-.12,.09,-.21,.6],["l",-.09,.51],["l",.21,.24],["c",.63,.75,1.02,1.47,1.2,2.19],["c",.06,.27,.06,.36,.06,.81],["c",0,.42,0,.54,-.06,.78],["c",-.15,.54,-.33,.93,-.63,1.35],["c",-.18,.24,-.57,.63,-.81,.78],["c",-.24,.15,-.63,.36,-.84,.42],["c",-.27,.06,-.66,.06,-.87,.03],["c",-.81,-.18,-1.32,-1.05,-1.38,-2.46],["c",-.03,-.6,.03,-.99,.33,-2.46],["c",.21,-1.08,.24,-1.32,.21,-1.29],["c",-1.2,.48,-2.4,.75,-3.21,.72],["c",-.69,-.06,-1.17,-.3,-1.41,-.72],["c",-.39,-.75,-.12,-1.8,.66,-2.46],["c",.24,-.18,.69,-.42,1.02,-.51],["c",.69,-.18,1.53,-.15,2.31,.09],["c",.3,.09,.75,.3,.99,.45],["c",.12,.09,.15,.09,.15,.03],["c",.03,-.03,.33,-1.59,.72,-3.45],["c",.36,-1.86,.66,-3.42,.69,-3.45],["c",0,-.03,.03,-.03,.21,.03],["c",.21,.06,.27,.06,.48,.06],["c",.42,-.03,.78,-.18,1.26,-.48],["c",.15,-.12,.36,-.27,.48,-.39],["z"],["m",-5.73,7.68],["c",-.27,-.03,-.96,-.06,-1.2,-.03],["c",-.81,.12,-1.35,.57,-1.5,1.2],["c",-.18,.66,.12,1.14,.75,1.29],["c",.66,.12,1.92,-.12,3.18,-.66],["l",.33,-.15],["l",.09,-.39],["c",.06,-.21,.09,-.42,.09,-.45],["c",0,-.03,-.45,-.3,-.75,-.45],["c",-.27,-.15,-.66,-.27,-.99,-.36],["z"],["m",4.29,3.63],["c",-.24,-.39,-.51,-.75,-.51,-.69],["c",-.06,.12,-.39,1.92,-.45,2.28],["c",-.09,.54,-.12,1.14,-.06,1.38],["c",.06,.42,.21,.6,.51,.57],["c",.39,-.06,.75,-.48,.93,-1.14],["c",.09,-.33,.09,-1.05,0,-1.38],["c",-.09,-.39,-.24,-.69,-.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",.78,-.09,1.59,.03,2.31,.42],["c",1.2,.6,2.01,1.71,2.31,3.09],["c",.09,.42,.09,1.2,.03,1.5],["c",-.15,.45,-.39,.81,-.66,.93],["c",-.33,.18,-.84,.21,-1.23,.15],["c",-.81,-.18,-1.32,-.93,-1.26,-1.89],["c",.03,-.36,.09,-.57,.24,-.9],["c",.15,-.33,.45,-.6,.72,-.75],["c",.12,-.06,.18,-.09,.18,-.12],["c",0,-.03,-.03,-.15,-.09,-.24],["c",-.18,-.45,-.54,-.87,-.96,-1.08],["c",-1.11,-.57,-2.34,-.18,-2.88,.9],["c",-.24,.51,-.33,1.11,-.24,1.83],["c",.27,1.92,1.5,3.54,3.93,5.13],["c",.48,.33,1.26,.78,1.29,.78],["c",.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",.84,0],["l",.87,0],["l",-.03,.06],["c",-.15,.21,-6.15,10.41,-6.15,10.44],["c",0,0,.21,.15,.48,.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,.51,5.07,-1.44,6.39],["c",-.66,.42,-1.32,.63,-2.13,.69],["c",-2.01,.09,-3.81,-1.41,-4.26,-3.54],["c",-.09,-.42,-.09,-1.2,-.03,-1.5],["c",.15,-.45,.39,-.81,.66,-.93],["c",.33,-.18,.84,-.21,1.23,-.15],["c",.81,.18,1.32,.93,1.26,1.89],["c",-.03,.36,-.09,.57,-.24,.9],["c",-.15,.33,-.45,.6,-.72,.75],["c",-.12,.06,-.18,.09,-.18,.12],["c",0,.03,.03,.15,.09,.24],["c",.18,.45,.54,.87,.96,1.08],["c",1.11,.57,2.34,.18,2.88,-.9],["c",.24,-.51,.33,-1.11,.24,-1.83],["c",-.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-.48,-.33,-1.26,-.78,-1.29,-.78],["c",-.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-.87,0],["l",-.87,0],["l",.03,-.06],["c",.15,-.21,6.15,-10.41,6.15,-10.44],["c",0,0,-.21,-.15,-.48,-.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-.9,-1.89,-.72,-4.02,.48,-5.52],["c",.69,-.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"],["m",-10.53,2.61],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-.21,-10.47],["c",.18,-.12,.42,-.06,.54,.12],["c",.06,.09,.06,.18,.06,1.5],["l",0,1.38],["l",.18,0],["c",.39,.06,.96,.24,1.38,.48],["c",1.68,.93,2.82,3.24,3.03,6.12],["c",.03,.24,.03,.45,.03,.45],["c",0,.03,.6,.03,1.35,.03],["c",1.5,0,1.47,0,1.59,.18],["c",.09,.12,.09,.3,0,.42],["c",-.12,.18,-.09,.18,-1.59,.18],["c",-.75,0,-1.35,0,-1.35,.03],["c",0,0,0,.21,-.03,.42],["c",-.24,3.15,-1.53,5.58,-3.45,6.36],["c",-.27,.12,-.72,.24,-.96,.27],["l",-.18,0],["l",0,1.38],["c",0,1.32,0,1.41,-.06,1.5],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.18,-.06,-1.5],["l",0,-1.38],["l",-.18,0],["c",-.39,-.06,-.96,-.24,-1.38,-.48],["c",-1.68,-.93,-2.82,-3.24,-3.03,-6.15],["c",-.03,-.21,-.03,-.42,-.03,-.42],["c",0,-.03,-.6,-.03,-1.35,-.03],["c",-1.5,0,-1.47,0,-1.59,-.18],["c",-.09,-.12,-.09,-.3,0,-.42],["c",.12,-.18,.09,-.18,1.59,-.18],["c",.75,0,1.35,0,1.35,-.03],["c",0,0,0,-.21,.03,-.45],["c",.24,-3.12,1.53,-5.55,3.45,-6.33],["c",.27,-.12,.72,-.24,.96,-.27],["l",.18,0],["l",0,-1.38],["c",0,-1.53,0,-1.5,.18,-1.62],["z"],["m",-.18,6.93],["c",0,-2.97,0,-3.15,-.06,-3.15],["c",-.09,0,-.51,.15,-.66,.21],["c",-.87,.51,-1.38,1.62,-1.56,3.51],["c",-.06,.54,-.12,1.59,-.12,2.16],["l",0,.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-.09,-.03,-.21,-.06,-.27,-.09],["l",-.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-.81],["c",-.06,-2.4,-.33,-3.69,-.93,-4.59],["c",-.27,-.39,-.66,-.69,-1.08,-.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,0],["l",-1.2,0],["l",0,.81],["c",.03,.96,.06,1.47,.15,2.13],["c",.24,2.04,.96,3.12,2.13,3.36],["l",.12,0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",.12,0],["c",1.17,-.24,1.89,-1.32,2.13,-3.36],["c",.09,-.66,.12,-1.17,.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",.3,-.12,.69,-.03,.93,.15],["c",.12,.12,.36,.45,.51,.78],["c",.9,1.77,.54,4.05,-1.08,6.75],["c",-.36,.63,-.87,1.38,-.96,1.44],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.09,-.18,-.09,-.3,.12,-.6],["c",.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-.06,-.93,-.3,-1.68,-.78,-2.46],["c",-.27,-.39,-.33,-.63,-.24,-.96],["c",.09,-.27,.36,-.54,.66,-.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",.21,-.09,.36,-.09,.57,0],["c",.39,.15,.63,.39,1.47,1.35],["c",.66,.75,.78,.87,1.08,1.05],["c",.75,.45,1.65,.42,2.4,-.06],["c",.12,-.09,.27,-.27,.54,-.6],["c",.42,-.54,.51,-.63,.69,-.63],["c",.09,0,.3,.12,.36,.21],["c",.09,.12,.12,.3,.03,.42],["c",-.06,.12,-3.15,3.9,-3.3,4.08],["c",-.06,.06,-.18,.12,-.27,.18],["c",-.27,.12,-.6,.06,-.99,-.27],["c",-.27,-.21,-.42,-.39,-1.08,-1.14],["c",-.63,-.72,-.81,-.9,-1.17,-1.08],["c",-.36,-.18,-.57,-.21,-.99,-.21],["c",-.39,0,-.63,.03,-.93,.18],["c",-.36,.15,-.51,.27,-.9,.81],["c",-.24,.27,-.45,.51,-.48,.54],["c",-.12,.09,-.27,.06,-.39,0],["c",-.24,-.15,-.33,-.39,-.21,-.6],["c",.09,-.12,3.18,-3.87,3.33,-4.02],["c",.06,-.06,.18,-.15,.24,-.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.57,-.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-.03,0,-.57,.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.arpeggio":{d:[["M",1.5,0],["c",1.5,2,1.5,3,1.5,3],["s",0,1,-2,1.5],["s",-.5,3,1,5.5],["l",1.5,0],["s",-1.75,-2,-1.9,-3.25],["s",2.15,-.6,2.95,-1.6],["s",.45,-1,.5,-1.25],["s",0,-1,-2,-3.9],["l",-1.5,0],["z"]],w:5,h:10},"scripts.mordent":{d:[["M",-.21,-4.95],["c",.27,-.15,.63,0,.75,.27],["c",.06,.12,.06,.24,.06,1.44],["l",0,1.29],["l",.57,-.84],["c",.51,-.75,.57,-.84,.69,-.9],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.83,-1.89],["c",-.81,-.99,-1.5,-1.8,-1.53,-1.86],["c",-.06,-.03,-.06,-.03,-.12,.03],["c",-.06,.06,-.06,.15,-.06,2.28],["c",0,1.95,0,2.25,-.06,2.34],["c",-.18,.45,-.81,.48,-1.05,.03],["c",-.03,-.06,-.06,-.24,-.06,-1.41],["l",0,-1.35],["l",-.57,.84],["c",-.54,.78,-.6,.87,-.72,.93],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.06,-.06,.09,-.09],["c",.06,-.12,.06,-.15,.06,-2.28],["c",0,-1.92,0,-2.22,.06,-2.31],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-.42,3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",0,.18],["c",0,.3,.06,.84,.12,1.23],["c",.24,1.53,.9,3.12,2.13,5.16],["l",.99,1.59],["c",.87,1.44,1.38,2.34,1.77,3.09],["c",.81,1.68,1.2,3.06,1.26,4.53],["c",.03,1.53,-.21,3.27,-.75,5.01],["c",-.21,.69,-.51,1.5,-.6,1.59],["c",-.09,.12,-.27,.21,-.42,.21],["c",-.15,0,-.42,-.12,-.51,-.21],["c",-.15,-.18,-.18,-.42,-.09,-.66],["c",.15,-.33,.45,-1.2,.57,-1.62],["c",.42,-1.38,.6,-2.58,.6,-3.9],["c",0,-.66,0,-.81,-.06,-1.11],["c",-.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-.42,-.45],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-.42,7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,.39],["c",.06,1.08,.39,2.19,.99,3.39],["c",.45,.9,.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",.45,.93,.72,1.8,.87,2.64],["c",.06,.51,.06,1.5,0,1.92],["c",-.12,.6,-.3,1.2,-.54,1.71],["l",-.09,.24],["l",.18,.45],["c",.51,1.2,.72,2.22,.69,3.42],["c",-.06,1.53,-.39,3.03,-.99,4.53],["c",-.3,.75,-.36,.81,-.57,.9],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.12,-.75],["c",.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-.6,-.03,-1.05,-.18,-1.59],["c",-.3,-1.2,-.99,-2.4,-2.25,-3.87],["c",-.42,-.48,-1.53,-1.62,-2.19,-2.22],["l",-.45,-.42],["l",-.03,1.11],["l",0,1.11],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["z"],["m",1.65,.09],["c",-.3,-.3,-.69,-.72,-.9,-.87],["l",-.33,-.33],["l",0,.15],["c",0,.3,.06,.81,.15,1.26],["c",.27,1.29,.87,2.61,2.04,4.29],["c",.15,.24,.6,.87,.96,1.38],["l",1.08,1.53],["l",.42,.63],["c",.03,0,.12,-.36,.21,-.72],["c",.06,-.33,.06,-1.2,0,-1.62],["c",-.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-.42,11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,.36],["c",.09,1.68,.69,3.27,2.07,5.46],["l",.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",.48,1.02,.78,1.92,.93,2.88],["c",.06,.48,.06,1.5,0,1.89],["c",-.09,.42,-.21,.87,-.36,1.26],["l",-.12,.3],["l",.15,.39],["c",.69,1.56,.84,2.88,.54,4.38],["c",-.09,.45,-.27,1.08,-.45,1.47],["l",-.12,.24],["l",.18,.36],["c",.33,.72,.57,1.56,.69,2.34],["c",.12,1.02,-.06,2.52,-.42,3.84],["c",-.27,.93,-.75,2.13,-.93,2.31],["c",-.18,.15,-.45,.18,-.66,.09],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.06,-.6],["c",.21,-.36,.42,-.9,.57,-1.38],["c",.51,-1.41,.69,-3.06,.48,-4.08],["c",-.15,-.81,-.57,-1.68,-1.2,-2.55],["c",-.72,-.99,-1.83,-2.13,-3.3,-3.33],["l",-.48,-.42],["l",-.03,1.53],["l",0,1.56],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-.27,-.3,-.54,-.6,-.66,-.72],["l",-.18,-.21],["l",0,.42],["c",.06,.87,.24,1.74,.66,2.67],["c",.36,.87,.96,1.86,1.92,3.18],["c",.21,.33,.63,.87,.87,1.23],["c",.27,.39,.6,.84,.75,1.08],["l",.27,.39],["l",.03,-.12],["c",.12,-.45,.15,-1.05,.09,-1.59],["c",-.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-.27,6.09],["c",-.27,-.21,-.48,-.42,-.51,-.45],["c",-.06,-.03,-.06,-.03,-.06,.21],["c",0,.9,.3,2.04,.81,3.09],["c",.48,1.02,.96,1.77,2.37,3.63],["c",.6,.78,1.05,1.44,1.29,1.77],["c",.06,.12,.15,.21,.15,.18],["c",.03,-.03,.18,-.57,.24,-.87],["c",.06,-.45,.06,-1.32,-.03,-1.74],["c",-.09,-.48,-.24,-.9,-.51,-1.44],["c",-.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-.42,15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,.36],["c",.06,1.2,.39,2.37,1.02,3.66],["c",.39,.81,.84,1.56,1.8,3.09],["c",.81,1.26,1.05,1.68,1.35,2.22],["c",.87,1.5,1.35,2.79,1.56,4.08],["c",.06,.54,.06,1.56,-.03,2.04],["c",-.09,.48,-.21,.99,-.36,1.35],["l",-.12,.27],["l",.12,.27],["c",.09,.15,.21,.45,.27,.66],["c",.69,1.89,.63,3.66,-.18,5.46],["l",-.18,.39],["l",.15,.33],["c",.3,.66,.51,1.44,.63,2.1],["c",.06,.48,.06,1.35,0,1.71],["c",-.15,.57,-.42,1.2,-.78,1.68],["l",-.21,.27],["l",.18,.33],["c",.57,1.05,.93,2.13,1.02,3.18],["c",.06,.72,0,1.83,-.21,2.79],["c",-.18,1.02,-.63,2.34,-1.02,3.09],["c",-.15,.33,-.48,.45,-.78,.3],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.03,-.54],["c",.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-.06,-1.02,-.42,-2.01,-1.17,-3.15],["c",-.48,-.72,-1.02,-1.35,-1.89,-2.22],["c",-.57,-.57,-1.56,-1.5,-1.92,-1.77],["l",-.12,-.09],["l",0,1.68],["l",0,1.68],["l",-.21,0],["l",-.21,0],["l",0,-15],["z"],["m",.93,-8.07],["c",-.27,-.3,-.48,-.54,-.51,-.54],["c",0,0,0,.69,.03,1.02],["c",.15,1.47,.75,2.94,2.04,4.83],["l",1.08,1.53],["c",.39,.57,.84,1.2,.99,1.44],["c",.15,.24,.3,.45,.3,.45],["c",0,0,.03,-.09,.06,-.21],["c",.36,-1.59,-.15,-3.33,-1.47,-5.4],["c",-.63,-.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",.06,6.72],["c",-.24,-.21,-.48,-.42,-.51,-.45],["l",-.06,-.06],["l",0,.33],["c",0,1.2,.3,2.34,.93,3.6],["c",.45,.9,.96,1.68,2.25,3.51],["c",.39,.54,.84,1.17,1.02,1.44],["c",.21,.33,.33,.51,.33,.48],["c",.06,-.09,.21,-.63,.3,-.99],["c",.06,-.33,.06,-.45,.06,-.96],["c",0,-.6,-.03,-.84,-.18,-1.35],["c",-.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-.39,-.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-.24,-.21,-.48,-.39,-.51,-.42],["l",-.06,-.06],["l",0,.33],["c",0,1.41,.45,2.82,1.38,4.35],["c",.42,.72,.72,1.14,1.86,2.73],["c",.36,.45,.75,.99,.87,1.2],["c",.15,.21,.3,.36,.3,.36],["c",.06,0,.3,-.48,.39,-.75],["c",.09,-.36,.12,-.63,.12,-1.05],["c",-.06,-1.05,-.45,-2.04,-1.2,-3.18],["c",-.57,-.87,-1.11,-1.53,-2.07,-2.49],["c",-.36,-.33,-.84,-.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",.24,-.12,.54,-.06,.69,.15],["c",.06,.06,.21,.36,.39,.66],["c",.84,1.77,1.26,3.36,1.32,5.1],["c",.03,1.29,-.21,2.37,-.81,3.63],["c",-.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-.63,.93,-1.11,1.92,-1.38,2.79],["c",-.15,.54,-.27,1.35,-.27,1.8],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",.48,-.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",.78,-.81,1.32,-1.53,1.71,-2.31],["c",.45,-.93,.6,-1.74,.51,-2.88],["c",-.12,-1.56,-.63,-3.18,-1.47,-4.68],["c",-.12,-.21,-.15,-.33,-.06,-.51],["c",.06,-.15,.15,-.24,.33,-.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",.15,-.09,.33,-.06,.51,0],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.06,.39,-.03,.54],["c",-.06,.15,-10.89,8.88,-11.07,8.97],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.06,-.39,.03,-.54],["c",.06,-.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",.18,-.09,.33,-.12,.48,-.06],["c",.18,.09,14.01,8.04,14.1,8.1],["c",.12,.12,.18,.33,.18,.51],["c",-.03,.21,-.15,.39,-.36,.48],["c",-.18,.09,-.33,.12,-.48,.06],["c",-.18,-.09,-14.01,-8.04,-14.1,-8.1],["c",-.12,-.12,-.18,-.33,-.18,-.51],["c",.03,-.21,.15,-.39,.36,-.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",.27,-.12,.57,-.06,.72,.15],["c",.15,.15,.33,.87,.45,1.56],["c",.06,.33,.06,1.35,0,1.65],["c",-.06,.33,-.15,.78,-.27,1.11],["c",-.12,.33,-.45,.96,-.66,1.32],["l",-.18,.27],["l",.09,.18],["c",.48,1.02,.72,2.25,.69,3.3],["c",-.06,1.23,-.42,2.28,-1.26,3.45],["c",-.57,.87,-.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-.42,.84,-.66,1.8,-.66,2.55],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,1.14],["l",0,1.11],["l",.27,-.15],["c",1.11,-.57,1.77,-.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",.03,-.18,.03,-.39,.03,-.78],["c",0,-.6,-.03,-.93,-.24,-1.5],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.5],["c",-.06,-.18,-.15,-.36,-.15,-.36],["c",-.03,0,-.03,.03,-.06,.06],["c",-.06,.12,-.96,1.02,-1.95,1.98],["c",-.63,.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-.03,.18,-.03,.54,-.06,.99],["l",0,.69],["l",.18,-.09],["c",.93,-.54,2.1,-1.29,2.82,-1.83],["c",.69,-.51,1.02,-.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.84,-29.13],["c",.27,-.12,.57,-.06,.72,.15],["c",.12,.12,.27,.63,.36,1.11],["c",.33,1.59,.06,3.06,-.81,4.47],["l",-.18,.27],["l",.09,.15],["c",.12,.24,.33,.69,.45,1.05],["c",.63,1.83,.45,3.57,-.57,5.22],["l",-.18,.3],["l",.15,.27],["c",.42,.87,.6,1.71,.57,2.61],["c",-.06,1.29,-.48,2.46,-1.35,3.78],["c",-.54,.81,-.93,1.29,-2.46,3],["c",-.51,.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,.33],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,1.35],["l",.03,1.35],["l",.78,-.39],["c",1.38,-.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",.15,-.48,.18,-.72,.18,-1.29],["c",0,-.57,-.06,-.9,-.24,-1.47],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.2],["c",-.09,-.18,-.12,-.21,-.12,-.15],["c",-.03,.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-.84,.96,-1.38,1.86,-1.68,2.76],["c",-.21,.57,-.27,.99,-.3,1.65],["l",0,.54],["l",.66,-.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",.06,-.39,.06,-1.2,-.03,-1.65],["c",-.06,-.39,-.24,-.9,-.36,-1.2],["z"],["m",-.06,7.2],["c",-.06,-.15,-.12,-.33,-.15,-.45],["l",-.06,-.18],["l",-.18,.21],["l",-1.83,1.83],["c",-.87,.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-.06,.3,-.06,.51,-.09,.93],["l",0,.57],["l",.09,-.06],["c",.75,-.45,1.89,-1.26,2.52,-1.74],["c",.81,-.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.385,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",.3,-.12,.66,-.03,.78,.24],["c",.18,.33,.27,2.1,.15,2.64],["c",-.09,.39,-.21,.78,-.39,1.08],["l",-.15,.3],["l",.09,.27],["c",.03,.12,.09,.45,.12,.69],["c",.27,1.44,.18,2.55,-.3,3.6],["l",-.12,.33],["l",.06,.42],["c",.27,1.35,.33,2.82,.21,3.63],["c",-.12,.6,-.3,1.23,-.57,1.8],["l",-.15,.27],["l",.03,.42],["c",.06,1.02,.06,2.7,.03,3.06],["c",-.15,1.47,-.66,2.76,-1.74,4.41],["c",-.45,.69,-.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,.42],["l",-.21,0],["l",-.21,0],["l",0,-15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,1.86],["l",0,1.89],["c",0,0,.21,-.03,.45,-.09],["c",2.22,-.39,4.08,-1.11,5.19,-2.01],["c",.63,-.54,1.02,-1.14,1.2,-1.8],["c",.06,-.3,.06,-1.14,-.03,-1.65],["c",-.03,-.18,-.06,-.39,-.09,-.48],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.45,6.15],["c",-.03,-.18,-.06,-.42,-.06,-.54],["l",-.03,-.18],["l",-.33,.3],["c",-.42,.36,-.87,.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-.75,.69,-1.23,1.44,-1.47,2.19],["c",-.15,.45,-.18,.63,-.21,1.35],["l",0,.66],["l",.39,-.18],["c",1.83,-.9,3.45,-1.95,4.47,-2.91],["c",.93,-.9,1.53,-1.83,1.74,-2.82],["c",.06,-.33,.06,-.87,.03,-1.32],["z"],["m",-.27,4.86],["c",-.03,-.21,-.06,-.36,-.06,-.36],["c",0,-.03,-.12,.09,-.24,.24],["c",-.39,.48,-.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-.66,.87,-1.08,1.74,-1.29,2.58],["c",-.09,.42,-.15,.87,-.15,1.44],["l",0,.54],["l",.48,-.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",.03,-.39,.03,-1.17,-.03,-1.71],["z"],["m",-.66,7.68],["c",.03,-.15,.03,-.6,.03,-.99],["l",0,-.72],["l",-.27,.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-.51,1.02,-.72,1.77,-.75,2.91],["c",0,.63,0,.63,.06,.6],["c",.03,-.03,.3,-.27,.63,-.54],["c",.66,-.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",.06,-14.94],["l",.09,-.06],["l",1.92,0],["l",1.92,0],["l",.09,.06],["l",.06,.09],["l",0,14.85],["l",0,14.82],["l",-.06,.09],["l",-.09,.06],["l",-1.92,0],["l",-1.92,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",.09,-.06,.09,-.06,.57,-.06],["c",.45,0,.45,0,.54,.06],["l",.06,.09],["l",0,7.14],["l",0,7.11],["l",.09,-.06],["c",.18,-.18,.72,-.84,.96,-1.2],["c",.3,-.45,.66,-1.17,.84,-1.65],["c",.36,-.9,.57,-1.83,.6,-2.79],["c",.03,-.48,.03,-.54,.09,-.63],["c",.12,-.18,.36,-.21,.54,-.12],["c",.18,.09,.21,.15,.24,.66],["c",.06,.87,.21,1.56,.57,2.22],["c",.51,1.02,1.26,1.68,2.22,1.92],["c",.21,.06,.33,.06,.78,.06],["c",.45,0,.57,0,.84,-.06],["c",.45,-.12,.81,-.33,1.08,-.6],["c",.57,-.57,.87,-1.41,.99,-2.88],["c",.06,-.54,.06,-3,0,-3.57],["c",-.21,-2.58,-.84,-3.87,-2.16,-4.5],["c",-.48,-.21,-1.17,-.36,-1.77,-.36],["c",-.69,0,-1.29,.27,-1.5,.72],["c",-.06,.15,-.06,.21,-.06,.42],["c",0,.24,0,.3,.06,.45],["c",.12,.24,.24,.39,.63,.66],["c",.42,.3,.57,.48,.69,.72],["c",.06,.15,.06,.21,.06,.48],["c",0,.39,-.03,.63,-.21,.96],["c",-.3,.6,-.87,1.08,-1.5,1.26],["c",-.27,.06,-.87,.06,-1.14,0],["c",-.78,-.24,-1.44,-.87,-1.65,-1.68],["c",-.12,-.42,-.09,-1.17,.09,-1.71],["c",.51,-1.65,1.98,-2.82,3.81,-3.09],["c",.84,-.09,2.46,.03,3.51,.27],["c",2.22,.57,3.69,1.8,4.44,3.75],["c",.36,.93,.57,2.13,.57,3.36],["c",0,1.44,-.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-.48,0,-.51,0,-.75,-.09],["c",-.15,-.03,-.48,-.21,-.78,-.36],["c",-.69,-.36,-.87,-.42,-1.26,-.42],["c",-.27,0,-.3,0,-.51,.09],["c",-.57,.3,-.81,.9,-.81,2.1],["c",0,1.23,.24,1.83,.81,2.13],["c",.21,.09,.24,.09,.51,.09],["c",.39,0,.57,-.06,1.26,-.42],["c",.3,-.15,.63,-.33,.78,-.36],["c",.24,-.09,.27,-.09,.75,-.09],["c",2.01,0,4.02,.93,5.28,2.4],["c",.9,1.11,1.38,2.4,1.38,3.84],["c",0,1.5,-.3,2.88,-.84,3.96],["c",-.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,.24,-2.67,.36,-3.51,.27],["c",-1.83,-.27,-3.3,-1.44,-3.81,-3.09],["c",-.18,-.54,-.21,-1.29,-.09,-1.74],["c",.15,-.6,.63,-1.2,1.23,-1.47],["c",.36,-.18,.57,-.21,.99,-.21],["c",.42,0,.63,.03,1.02,.21],["c",.42,.21,.84,.63,1.05,1.05],["c",.18,.36,.21,.6,.21,.96],["c",0,.3,0,.36,-.06,.51],["c",-.12,.24,-.27,.42,-.69,.72],["c",-.57,.42,-.69,.63,-.69,1.08],["c",0,.24,0,.3,.06,.45],["c",.12,.21,.3,.39,.57,.54],["c",.42,.18,.87,.21,1.53,.15],["c",1.08,-.15,1.8,-.57,2.34,-1.32],["c",.54,-.75,.84,-1.83,.99,-3.51],["c",.06,-.57,.06,-3.03,0,-3.57],["c",-.12,-1.47,-.42,-2.31,-.99,-2.88],["c",-.27,-.27,-.63,-.48,-1.08,-.6],["c",-.27,-.06,-.39,-.06,-.84,-.06],["c",-.45,0,-.57,0,-.78,.06],["c",-1.14,.27,-2.01,1.17,-2.46,2.49],["c",-.21,.57,-.3,.99,-.33,1.65],["c",-.03,.51,-.06,.57,-.24,.66],["c",-.12,.06,-.27,.06,-.39,0],["c",-.21,-.09,-.21,-.15,-.24,-.75],["c",-.09,-1.92,-.78,-3.72,-2.01,-5.19],["c",-.18,-.21,-.36,-.42,-.39,-.45],["l",-.09,-.06],["l",0,7.11],["l",0,7.14],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.54,.06],["c",-.48,0,-.48,0,-.57,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",.36,-.03,1.65,0,2.13,.03],["c",3.6,.42,6.03,2.1,6.93,4.86],["c",.27,.84,.36,1.5,.36,2.58],["c",0,.9,-.03,1.35,-.18,2.16],["c",-.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-.39,.18,-.75,.33,-.81,.36],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.15,.06,-.21,.51,-.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",.51,-.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",.06,-.42,.06,-1.77,0,-2.19],["c",-.24,-2.01,-.93,-3.63,-2.04,-4.71],["c",-.63,-.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-.39,-3.36,.15,-4.56,1.44],["c",-.54,.6,-1.05,1.47,-1.32,2.22],["l",-.09,.21],["l",.24,-.12],["c",.39,-.21,.63,-.24,1.11,-.24],["c",.3,0,.45,0,.66,.06],["c",1.92,.48,2.85,2.55,1.95,4.38],["c",-.45,.99,-1.41,1.62,-2.46,1.71],["c",-1.47,.09,-2.91,-.87,-3.39,-2.25],["c",-.18,-.57,-.21,-1.32,-.03,-2.28],["c",.39,-2.25,1.83,-4.2,3.81,-5.19],["c",.69,-.36,1.59,-.6,2.37,-.69],["z"],["m",11.58,2.52],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.3,1.17,-.72,2.19,-1.89,1.89],["c",-.99,-.21,-1.5,-1.32,-1.02,-2.25],["c",.18,-.39,.6,-.69,1.02,-.78],["z"],["m",0,7.5],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.21,.87,-.3,1.71,-1.14,1.89],["c",-.87,.21,-1.71,-.3,-1.89,-1.14],["c",-.21,-.84,.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",.09,-.09,.24,-.06,.36,0],["c",.12,.09,.57,.6,.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",.21,1.56,.03,3.27,-.45,4.86],["c",-.69,2.31,-1.92,4.47,-4.23,7.44],["c",-.3,.39,-.57,.72,-.6,.75],["c",-.03,.06,0,.15,.18,.78],["c",.54,1.68,1.38,4.44,1.68,5.49],["l",.09,.42],["l",.39,0],["c",1.47,.09,2.76,.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",.09,.45,.12,1.29,.06,1.74],["c",-.09,1.02,-.33,1.83,-.75,2.73],["c",-.84,1.71,-2.28,3.06,-4.02,3.72],["l",-.33,.12],["l",.03,1.26],["c",0,1.74,-.06,3.63,-.21,4.62],["c",-.45,3.06,-2.19,5.49,-4.47,6.21],["c",-.57,.18,-.9,.21,-1.59,.21],["c",-.69,0,-1.02,-.03,-1.65,-.21],["c",-1.14,-.27,-2.13,-.84,-2.94,-1.65],["c",-.99,-.99,-1.56,-2.16,-1.71,-3.54],["c",-.09,-.81,.06,-1.53,.45,-2.13],["c",.63,-.99,1.83,-1.56,3,-1.53],["c",1.5,.09,2.64,1.32,2.73,2.94],["c",.06,1.47,-.93,2.7,-2.37,2.97],["c",-.45,.06,-.84,.03,-1.29,-.09],["l",-.21,-.09],["l",.09,.12],["c",.39,.54,.78,.93,1.32,1.26],["c",1.35,.87,3.06,1.02,4.35,.36],["c",1.44,-.72,2.52,-2.28,2.97,-4.35],["c",.15,-.66,.24,-1.5,.3,-3.03],["c",.03,-.84,.03,-2.94,0,-3],["c",-.03,0,-.18,0,-.36,.03],["c",-.66,.12,-.99,.12,-1.83,.12],["c",-1.05,0,-1.71,-.06,-2.61,-.3],["c",-4.02,-.99,-7.11,-4.35,-7.8,-8.46],["c",-.12,-.66,-.12,-.99,-.12,-1.83],["c",0,-.84,0,-1.14,.15,-1.92],["c",.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",.54,-.66,.96,-1.2,.96,-1.23],["c",0,-.03,-.09,-.33,-.18,-.69],["c",-.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-.12,-1.38,-.15,-3.09,-.06,-3.96],["c",.33,-2.67,1.38,-5.07,3.12,-7.08],["c",.36,-.42,.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-.15,-.3,-.3,-.54,-.3,-.54],["c",-.03,0,-.18,.09,-.3,.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-.06,.54,-.06,1.41,-.03,1.89],["c",.09,1.29,.48,3.12,1.08,5.22],["c",.15,.42,.24,.78,.24,.81],["c",0,.03,.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",.09,-.57,.12,-1.74,.06,-2.37],["c",-.09,-1.23,-.27,-1.92,-.87,-3.12],["z"],["m",-2.94,20.7],["c",-.21,-.72,-.39,-1.32,-.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-.03,.21,-.03,.69,-.03,1.08],["c",0,.69,0,.75,.06,1.11],["c",.12,.54,.27,.99,.51,1.47],["c",.69,1.38,1.83,2.55,3.42,3.42],["c",.96,.54,2.07,.9,3.21,1.08],["c",.78,.12,2.04,.12,2.94,-.03],["c",.51,-.06,.45,-.03,.42,-.3],["c",-.24,-3.33,-.72,-6.33,-1.62,-10.08],["c",-.09,-.39,-.18,-.75,-.18,-.78],["c",-.03,-.03,-.42,0,-.81,.09],["c",-.9,.18,-1.65,.57,-2.22,1.14],["c",-.72,.72,-1.08,1.65,-1.05,2.64],["c",.06,.96,.48,1.83,1.23,2.58],["c",.36,.36,.72,.63,1.17,.9],["c",.33,.18,.36,.21,.42,.33],["c",.18,.42,-.18,.9,-.6,.87],["c",-.18,-.03,-.84,-.36,-1.26,-.63],["c",-.78,-.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-.99,-6.42,1.71,-8.19],["c",.3,-.21,.81,-.48,1.17,-.63],["c",.3,-.09,1.02,-.3,1.14,-.3],["c",.06,0,.09,0,.09,-.03],["c",.03,-.03,-.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-.18,-.03,-.36,-.06,-.39,-.06],["c",-.03,0,0,.21,.18,1.02],["c",.75,3.18,1.26,6.3,1.5,9.09],["c",.06,.72,0,.69,.51,.42],["c",.78,-.36,1.44,-.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,.3,-5.55],["c",-.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:9.99,h:14.97},"timesig.common":{d:[["M",6.66,-7.83],["c",.72,-.06,1.41,-.03,1.98,.09],["c",1.2,.27,2.34,.96,3.09,1.92],["c",.63,.81,1.08,1.86,1.14,2.73],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,0,-.09,-.12,-.24,-.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,.15,-2.04,.69,-2.4,1.74],["c",-.36,.93,-.42,1.89,-.42,5.37],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.63,1.68,1.41,2.07],["c",.81,.39,2.16,.45,3.18,.09],["c",1.29,-.45,2.37,-1.53,3.03,-2.97],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.06,.39,-.42,1.38,-.69,1.89],["c",-.96,1.8,-2.49,2.94,-4.23,3.18],["c",-.99,.12,-2.58,-.06,-3.63,-.45],["c",-.96,-.36,-1.71,-.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.9,-3.45,2.01,-4.56],["c",.69,-.66,1.44,-1.11,2.37,-1.47],["c",.63,-.24,1.47,-.42,2.22,-.48],["z"]],w:13.038,h:15.689},"timesig.cut":{d:[["M",6.24,-10.44],["c",.09,-.06,.09,-.06,.48,-.06],["c",.36,0,.36,0,.45,.06],["l",.06,.09],["l",0,1.23],["l",0,1.26],["l",.27,0],["c",1.26,0,2.49,.45,3.48,1.29],["c",1.05,.87,1.8,2.28,1.89,3.48],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,-.03,-.45,-.51,-.66,-.69],["c",-.87,-.69,-1.83,-1.05,-2.94,-1.11],["l",-.42,0],["l",0,7.17],["l",0,7.14],["l",.42,0],["c",.69,-.03,1.23,-.18,1.86,-.51],["c",1.05,-.51,1.89,-1.47,2.46,-2.7],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.03,.24,-.21,.78,-.39,1.2],["c",-.96,2.37,-2.94,3.9,-5.13,3.9],["l",-.3,0],["l",0,1.26],["l",0,1.23],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.45,.06],["c",-.39,0,-.39,0,-.48,-.06],["l",-.06,-.09],["l",0,-1.29],["l",0,-1.29],["l",-.21,-.03],["c",-1.23,-.21,-2.31,-.63,-3.21,-1.29],["c",-.15,-.09,-.45,-.36,-.66,-.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.93,-3.45,2.04,-4.59],["c",.42,-.39,.78,-.66,1.26,-.93],["c",.75,-.45,1.65,-.75,2.61,-.9],["l",.21,-.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-.06,10.44],["c",0,-5.58,0,-6.99,-.03,-6.99],["c",-.15,0,-.63,.27,-.87,.45],["c",-.45,.36,-.75,.93,-.93,1.77],["c",-.18,.81,-.24,1.8,-.24,4.74],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.66,1.68,1.41,2.07],["c",.12,.06,.3,.12,.33,.15],["l",.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"timesig.imperfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[["M",9.93,-14.28],["c",1.53,-.18,2.88,.45,3.12,1.5],["c",.12,.51,0,1.32,-.27,1.86],["c",-.15,.3,-.42,.57,-.63,.69],["c",-.69,.36,-1.56,.03,-1.83,-.69],["c",-.09,-.24,-.09,-.69,0,-.87],["c",.06,-.12,.21,-.24,.45,-.42],["c",.42,-.24,.57,-.45,.6,-.72],["c",.03,-.33,-.09,-.39,-.63,-.42],["c",-.3,0,-.45,0,-.6,.03],["c",-.81,.21,-1.35,.93,-1.74,2.46],["c",-.06,.27,-.48,2.25,-.48,2.31],["c",0,.03,.39,.03,.9,.03],["c",.72,0,.9,0,.99,.06],["c",.42,.15,.45,.72,.03,.9],["c",-.12,.06,-.24,.06,-1.17,.06],["l",-1.05,0],["l",-.78,2.55],["c",-.45,1.41,-.87,2.79,-.96,3.06],["c",-.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-.18,-1.89,-.78,-2.04,-1.59],["c",-.12,-.66,.15,-1.71,.54,-2.19],["c",.69,-.75,1.86,-.54,2.22,.39],["c",.06,.15,.09,.27,.09,.48],["c",0,.24,-.03,.27,-.12,.42],["c",-.03,.09,-.15,.18,-.27,.27],["c",-.09,.06,-.27,.21,-.36,.27],["c",-.24,.18,-.36,.36,-.39,.6],["c",-.03,.33,.09,.39,.63,.42],["c",.42,0,.63,-.03,.9,-.15],["c",.6,-.3,.96,-.96,1.38,-2.64],["c",.09,-.42,.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",0,-.03,-.36,-.03,-.81,-.03],["c",-.72,0,-.81,0,-.93,-.06],["c",-.42,-.18,-.39,-.75,.03,-.9],["c",.09,-.06,.27,-.06,1.05,-.06],["l",.96,0],["l",0,-.09],["c",.06,-.18,.3,-.72,.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",.09,0,.3,-.03,.45,-.03],["c",.24,.03,.3,.03,.45,.12],["c",.36,.15,.63,.54,.75,1.02],["l",.03,.21],["l",.33,-.3],["c",.69,-.69,1.38,-1.02,2.07,-1.02],["c",.27,0,.33,0,.48,.06],["c",.21,.09,.48,.36,.63,.6],["c",.03,.09,.12,.27,.18,.42],["c",.03,.15,.09,.27,.12,.27],["c",0,0,.09,-.09,.18,-.21],["c",.33,-.39,.87,-.81,1.29,-.99],["c",.78,-.33,1.47,-.21,2.01,.33],["c",.3,.33,.48,.69,.6,1.14],["c",.09,.42,.06,.54,-.54,3.06],["c",-.33,1.29,-.57,2.4,-.57,2.43],["c",0,.12,.09,.21,.21,.21],["c",.24,0,.75,-.3,1.2,-.72],["c",.45,-.39,.6,-.45,.78,-.27],["c",.18,.18,.09,.36,-.45,.87],["c",-1.05,.96,-1.83,1.47,-2.58,1.71],["c",-.93,.33,-1.53,.21,-1.8,-.33],["c",-.06,-.15,-.06,-.21,-.06,-.45],["c",0,-.24,.03,-.48,.6,-2.82],["c",.42,-1.71,.6,-2.64,.63,-2.79],["c",.03,-.57,-.3,-.75,-.84,-.48],["c",-.24,.12,-.54,.39,-.66,.63],["c",-.03,.09,-.42,1.38,-.9,3],["c",-.9,3.15,-.84,3,-1.14,3.15],["l",-.15,.09],["l",-.78,0],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.36,-1.38,.84,-2.97],["c",.57,-2.04,.81,-2.97,.84,-3.12],["c",.03,-.54,-.3,-.72,-.84,-.45],["c",-.24,.12,-.57,.42,-.66,.63],["c",-.06,.09,-.51,1.44,-1.05,2.97],["c",-.51,1.56,-.99,2.85,-.99,2.91],["c",-.06,.12,-.21,.24,-.36,.3],["c",-.12,.06,-.21,.06,-.9,.06],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.45,-1.38,.99,-2.97],["c",1.05,-3.18,1.05,-3.18,.93,-3.45],["c",-.12,-.27,-.39,-.3,-.72,-.15],["c",-.54,.27,-1.14,1.17,-1.56,2.4],["c",-.06,.15,-.15,.3,-.18,.36],["c",-.21,.21,-.57,.27,-.72,.09],["c",-.09,-.09,-.06,-.21,.06,-.63],["c",.48,-1.26,1.26,-2.46,2.01,-3.21],["c",.57,-.54,1.2,-.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",.27,-.09,.81,-.06,1.11,.03],["c",.54,.18,.93,.51,1.17,.99],["c",.09,.15,.15,.33,.18,.36],["l",0,.12],["l",.3,-.27],["c",.66,-.6,1.35,-1.02,2.13,-1.2],["c",.21,-.06,.33,-.06,.78,-.06],["c",.45,0,.51,0,.84,.09],["c",1.29,.33,2.07,1.32,2.25,2.79],["c",.09,.81,-.09,2.01,-.45,2.79],["c",-.54,1.26,-1.86,2.55,-3.18,3.03],["c",-.45,.18,-.81,.24,-1.29,.24],["c",-.69,-.03,-1.35,-.18,-1.86,-.45],["c",-.3,-.15,-.51,-.18,-.69,-.09],["c",-.09,.03,-.18,.09,-.18,.12],["c",-.09,.12,-1.05,2.94,-1.05,3.06],["c",0,.24,.18,.48,.51,.63],["c",.18,.06,.54,.15,.75,.15],["c",.21,0,.36,.06,.42,.18],["c",.12,.18,.06,.42,-.12,.54],["c",-.09,.03,-.15,.03,-.78,0],["c",-1.98,-.15,-3.81,-.15,-5.79,0],["c",-.63,.03,-.69,.03,-.78,0],["c",-.24,-.15,-.24,-.57,.03,-.66],["c",.06,-.03,.48,-.09,.99,-.12],["c",.87,-.06,1.11,-.09,1.35,-.21],["c",.18,-.06,.33,-.18,.39,-.3],["c",.06,-.12,3.24,-9.42,3.27,-9.6],["c",.06,-.33,.03,-.57,-.15,-.69],["c",-.09,-.06,-.12,-.06,-.3,-.06],["c",-.69,.06,-1.53,1.02,-2.28,2.61],["c",-.09,.21,-.21,.45,-.27,.51],["c",-.09,.12,-.33,.24,-.48,.24],["c",-.18,0,-.36,-.15,-.36,-.3],["c",0,-.24,.78,-1.83,1.26,-2.55],["c",.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-.27,-.12,-.75,-.03,-1.14,.21],["c",-.75,.48,-1.47,1.68,-1.89,3.15],["c",-.45,1.47,-.42,2.34,0,2.7],["c",.45,.39,1.26,.21,1.83,-.36],["c",.51,-.51,.99,-1.68,1.38,-3.27],["c",.3,-1.17,.33,-1.74,.15,-2.13],["c",-.09,-.15,-.15,-.21,-.33,-.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",.27,-.03,.93,0,1.2,.06],["c",.84,.21,1.23,.81,1.02,1.53],["c",-.24,.75,-.9,1.17,-1.56,.96],["c",-.33,-.09,-.51,-.3,-.66,-.75],["c",-.03,-.12,-.09,-.24,-.12,-.3],["c",-.09,-.15,-.3,-.24,-.48,-.24],["c",-.57,0,-1.38,.54,-1.65,1.08],["c",-.06,.15,-.33,1.17,-.9,3.27],["c",-.57,2.31,-.81,3.12,-.87,3.21],["c",-.03,.06,-.12,.15,-.18,.21],["l",-.12,.06],["l",-.81,.03],["c",-.69,0,-.81,0,-.9,-.03],["c",-.09,-.06,-.18,-.21,-.18,-.3],["c",0,-.06,.39,-1.62,.9,-3.51],["c",.84,-3.24,.87,-3.45,.87,-3.72],["c",0,-.21,0,-.27,-.03,-.36],["c",-.12,-.15,-.21,-.24,-.42,-.24],["c",-.24,0,-.45,.15,-.78,.42],["c",-.33,.36,-.45,.54,-.72,1.14],["c",-.03,.12,-.21,.24,-.36,.27],["c",-.12,0,-.15,0,-.24,-.06],["c",-.18,-.12,-.18,-.21,-.06,-.54],["c",.21,-.57,.42,-.93,.78,-1.32],["c",.54,-.51,1.2,-.81,1.95,-.87],["c",.81,-.03,1.53,.3,1.92,.87],["l",.12,.18],["l",.09,-.09],["c",.57,-.45,1.41,-.84,2.19,-.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",.09,0,.36,-.03,.57,-.03],["c",.75,.03,1.29,.24,1.71,.63],["c",.51,.54,.66,1.26,.36,1.83],["c",-.24,.42,-.63,.57,-1.11,.42],["c",-.33,-.09,-.6,-.36,-.6,-.57],["c",0,-.03,.06,-.21,.15,-.39],["c",.12,-.21,.15,-.33,.18,-.48],["c",0,-.24,-.06,-.48,-.15,-.6],["c",-.15,-.21,-.42,-.24,-.75,-.15],["c",-.27,.06,-.48,.18,-.69,.36],["c",-.39,.39,-.51,.96,-.33,1.38],["c",.09,.21,.42,.51,.78,.72],["c",1.11,.69,1.59,1.11,1.89,1.68],["c",.21,.39,.24,.78,.15,1.29],["c",-.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,.24,-1.95,.12,-2.7,-.42],["c",-.72,-.51,-.99,-1.47,-.6,-2.19],["c",.24,-.48,.72,-.63,1.17,-.42],["c",.33,.18,.54,.45,.57,.81],["c",0,.21,-.03,.3,-.33,.51],["c",-.33,.24,-.39,.42,-.27,.69],["c",.06,.15,.21,.27,.45,.33],["c",.3,.09,.87,.09,1.2,0],["c",.75,-.21,1.23,-.72,1.29,-1.35],["c",.03,-.42,-.15,-.81,-.54,-1.2],["c",-.24,-.24,-.48,-.42,-1.41,-1.02],["c",-.69,-.42,-1.05,-.93,-1.05,-1.47],["c",0,-.39,.12,-.87,.3,-1.23],["c",.27,-.57,.78,-1.05,1.38,-1.35],["c",.24,-.12,.63,-.27,.9,-.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",.36,-.09,.81,-.03,1.71,.27],["c",.78,.21,.96,.27,1.74,.3],["c",.87,.06,1.02,.03,1.38,-.21],["c",.21,-.15,.33,-.15,.48,-.06],["c",.15,.09,.21,.3,.15,.45],["c",-.03,.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",.54,.03],["c",.54,.03,.72,.03,2.01,.15],["c",.36,.03,.9,.06,1.2,.09],["c",.66,0,.81,-.03,1.02,-.24],["c",.3,-.3,.39,-.72,.27,-1.23],["c",-.06,-.27,-.06,-.27,-.03,-.39],["c",.15,-.3,.54,-.27,.69,.03],["c",.15,.33,.27,1.02,.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-.57,.03,-1.02,-.09,-2.01,-.51],["c",-1.02,-.42,-1.23,-.48,-2.13,-.54],["c",-.81,-.06,-.96,-.03,-1.26,.18],["c",-.12,.06,-.24,.12,-.27,.12],["c",-.27,0,-.45,-.3,-.36,-.51],["c",.03,-.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-.03,0,-.21,.03,-.42,.06],["c",-.21,.03,-.78,.09,-1.23,.12],["c",-1.11,.12,-1.23,.15,-1.95,.27],["c",-.72,.15,-1.17,.18,-1.29,.09],["c",-.27,-.18,-.21,-.75,.12,-1.26],["c",.39,-.6,.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-9.3],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,.06],["c",.06,.03,.15,.09,.18,.12],["c",.12,.09,.21,.33,.21,.48],["c",0,.15,-.09,.39,-.21,.48],["c",-.03,.03,-.12,.09,-.18,.12],["c",-.12,.06,-.18,.06,-1.41,.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-.06,1.41],["c",-.09,.18,-.15,.24,-.3,.33],["c",-.21,.09,-.39,.09,-.57,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,.06,-1.41],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.32,-3.36],["c",.57,-.15,1.17,.03,1.59,.45],["c",.45,.45,.6,.96,.51,1.89],["c",-.09,1.23,-.42,2.46,-.99,3.93],["c",-.3,.72,-.72,1.62,-.78,1.68],["c",-.18,.21,-.51,.18,-.66,-.06],["c",-.03,-.06,-.06,-.15,-.06,-.18],["c",0,-.06,.12,-.33,.24,-.63],["c",.84,-1.8,1.02,-2.61,.69,-3.24],["c",-.12,-.24,-.27,-.36,-.75,-.6],["c",-.36,-.15,-.42,-.21,-.6,-.39],["c",-.69,-.69,-.69,-1.71,0,-2.4],["c",.21,-.21,.51,-.39,.81,-.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",.18,-5.34],["c",.09,-.06,.15,-.06,2.31,-.06],["c",2.46,0,2.37,0,2.46,.21],["c",.12,.21,.03,.42,-.15,.54],["c",-.09,.06,-.15,.06,-2.28,.06],["c",-2.16,0,-2.22,0,-2.31,-.06],["c",-.27,-.15,-.27,-.54,-.03,-.69],["z"]],w:5.001,h:.81},".":{d:[["M",1.32,-3.36],["c",1.05,-.27,2.1,.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-.9,-.21,-1.5,-1.14,-1.26,-2.04],["c",.12,-.63,.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402},"scripts.wedge":{d:[["M",-3.66,-7.44],["c",.06,-.09,0,-.09,.81,.03],["c",1.86,.3,3.84,.3,5.73,0],["c",.78,-.12,.72,-.12,.78,-.03],["c",.15,.15,.12,.24,-.24,.6],["c",-.93,.93,-1.98,2.76,-2.67,4.62],["c",-.3,.78,-.51,1.71,-.51,2.13],["c",0,.15,0,.18,-.06,.27],["c",-.12,.09,-.24,.09,-.36,0],["c",-.06,-.09,-.06,-.12,-.06,-.27],["c",0,-.42,-.21,-1.35,-.51,-2.13],["c",-.69,-1.86,-1.74,-3.69,-2.67,-4.62],["c",-.36,-.36,-.39,-.45,-.24,-.6],["z"]],w:7.49,h:7.752},"scripts.thumb":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.27,1.41,-1.08,2.43,-2.16,2.73],["l",-.18,.06],["l",0,.12],["c",.03,.06,.06,.45,.09,.87],["c",.03,.57,.03,.78,0,.84],["c",-.09,.27,-.39,.48,-.66,.48],["c",-.27,0,-.57,-.21,-.66,-.48],["c",-.03,-.06,-.03,-.27,0,-.84],["c",.03,-.42,.06,-.81,.09,-.87],["l",0,-.12],["l",-.18,-.06],["c",-1.08,-.3,-1.89,-1.32,-2.16,-2.73],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.05,.9],["c",-.15,-.09,-.21,-.09,-.45,-.12],["c",-.15,0,-.3,.03,-.39,.03],["c",-.57,.18,-.9,.72,-1.08,1.74],["c",-.06,.48,-.06,1.8,0,2.28],["c",.15,.9,.42,1.44,.9,1.65],["c",.18,.09,.21,.09,.51,.09],["c",.3,0,.33,0,.51,-.09],["c",.48,-.21,.75,-.75,.9,-1.65],["c",.03,-.27,.03,-.54,.03,-1.14],["c",0,-.6,0,-.87,-.03,-1.14],["c",-.15,-.9,-.45,-1.44,-.9,-1.65],["z"]],w:5.955,h:9.75},"scripts.open":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.33,1.74,-1.47,2.85,-2.91,2.85],["c",-1.44,0,-2.58,-1.11,-2.91,-2.85],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.11,.9],["c",-.21,-.09,-.27,-.09,-.51,-.12],["c",-.3,0,-.42,.03,-.66,.15],["c",-.24,.12,-.51,.39,-.66,.63],["c",-.54,.93,-.63,2.64,-.21,3.81],["c",.21,.54,.51,.9,.93,1.11],["c",.21,.09,.24,.09,.54,.09],["c",.3,0,.33,0,.54,-.09],["c",.42,-.21,.72,-.57,.93,-1.11],["c",.36,-.99,.36,-2.37,0,-3.36],["c",-.21,-.54,-.51,-.9,-.9,-1.11],["z"]],w:5.955,h:7.5},"scripts.longphrase":{d:[["M",1.47,-15.09],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.54,.06,11.25],["l",0,11.25],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-3.39,-.03,-11.25],["l",0,-11.25],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.39,.06,7.5],["l",0,7.5],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-2.28,-.03,-7.5],["l",0,-7.5],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:15.54},"scripts.shortphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.21,.06,3.75],["l",0,3.75],["l",-.42,.09],["c",-.57,.18,-1.65,.45,-1.71,.45],["c",-.03,0,-.03,-.72,-.03,-3.75],["l",0,-3.75],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:8.04},"scripts.snap":{d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84},"noteheads.slash.whole":{d:[["M",5,-5],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"],["m",0,-2],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",-4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"]],w:10.81,h:15.63},"noteheads.slash.quarter":{d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},"noteheads.harmonic.quarter":{d:[["M",3.63,-4.02],["c",.09,-.06,.18,-.09,.24,-.03],["c",.03,.03,.87,.93,1.83,2.01],["c",1.5,1.65,1.8,1.98,1.8,2.04],["c",0,.06,-.3,.39,-1.8,2.04],["c",-.96,1.08,-1.8,1.98,-1.83,2.01],["c",-.06,.06,-.15,.03,-.24,-.03],["c",-.12,-.09,-3.54,-3.84,-3.6,-3.93],["c",-.03,-.03,-.03,-.09,-.03,-.15],["c",.03,-.06,3.45,-3.84,3.63,-3.96],["z"]],w:7.5,h:8.165}};this.printSymbol=function(t,i,r,s,a){if(!e[r])return null;var n=this.pathClone(e[r].d);n[0][1]+=t,n[0][2]+=i;for(var c="",o=0;o<n.length;o++)c+=n[o].join(" ");return s.path({path:c,stroke:"none",fill:"#000000",class:a})},this.getPathForSymbol=function(t,i,r,s,a){if(s=s||1,a=a||1,!e[r])return null;var n=this.pathClone(e[r].d);return 1===s&&1===a||this.pathScale(n,s,a),n[0][1]+=t,n[0][2]+=i,n},this.getSymbolWidth=function(t){return e[t]?e[t].w:0},this.getSymbolHeight=function(t){return e[t]?e[t].h:0},this.symbolHeightInPitches=function(e){return this.getSymbolHeight(e)/r.STEP},this.getSymbolAlign=function(e){return"scripts"===e.substring(0,7)&&"scripts.roll"!==e?"center":"left"},this.pathClone=function(e){for(var t=[],i=0,r=e.length;i<r;i++){t[i]=[];for(var s=0,a=e[i].length;s<a;s++)t[i][s]=e[i][s]}return t},this.pathScale=function(e,t,i){for(var r=0,s=e.length;r<s;r++){var a,n,c=e[r];for(a=1,n=c.length;a<n;a++)c[a]*=a%2?t:i}},this.getYCorr=function(e){switch(e){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":return-2;case"timesig.common":case"timesig.cut":return 0;case"flags.d32nd":return-1;case"flags.d64th":return-2;case"flags.u32nd":return 1;case"flags.u64th":return 3;case"rests.whole":return 1;case"rests.half":case"rests.8th":case"rests.quarter":case"rests.16th":case"rests.32nd":case"rests.64th":return-1;case"f":case"m":case"p":case"s":case"z":return-4;case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return-2;case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return-1;case"scripts.dfermata":return 1;default:return 0}}}},function(e,t,i){var r=i(1),s=function(e,t,i,r,s,a){a||(a={}),this.tuneNumber=s,this.abcelem=e,this.duration=t,this.durationClass=a.durationClassOveride?a.durationClassOveride:this.duration,this.minspacing=i||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=r,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};s.prototype.setUpperAndLowerElements=function(e){for(var t=0;t<this.children.length;t++){var i=this.children[t];for(var r in this.specialY)this.specialY.hasOwnProperty(r)&&i[r]&&(i.pitch=e[r],void 0===i.top&&(i.setUpperAndLowerElements(e),this.pushTop(i.top),this.pushBottom(i.bottom)))}},s.prototype.getMinWidth=function(){return this.w},s.prototype.getExtraWidth=function(){return-this.extraw},s.prototype.addExtra=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.extra[this.extra.length]=e,this.addChild(e)},s.prototype.addHead=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.heads[this.heads.length]=e,this.addRight(e)},s.prototype.addRight=function(e){e.dx+e.w>this.w&&(this.w=e.dx+e.w),this.right[this.right.length]=e,this.addChild(e)},s.prototype.addCentered=function(e){var t=e.w/2;-t<this.extraw&&(this.extraw=-t),this.extra[this.extra.length]=e,e.dx+t>this.w&&(this.w=e.dx+t),this.right[this.right.length]=e,this.addChild(e)},s.prototype.setLimit=function(e,t){t[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],t[e]):this.specialY[e]=t[e])},s.prototype.addChild=function(e){e.parent=this,this.children[this.children.length]=e,this.pushTop(e.top),this.pushBottom(e.bottom),this.setLimit("tempoHeightAbove",e),this.setLimit("partHeightAbove",e),this.setLimit("volumeHeightAbove",e),this.setLimit("dynamicHeightAbove",e),this.setLimit("endingHeightAbove",e),this.setLimit("chordHeightAbove",e),this.setLimit("lyricHeightAbove",e),this.setLimit("lyricHeightBelow",e),this.setLimit("chordHeightBelow",e),this.setLimit("volumeHeightBelow",e),this.setLimit("dynamicHeightBelow",e)},s.prototype.pushTop=function(e){void 0!==e&&(void 0===this.top?this.top=e:this.top=Math.max(e,this.top))},s.prototype.pushBottom=function(e){void 0!==e&&(void 0===this.bottom?this.bottom=e:this.bottom=Math.min(e,this.bottom))},s.prototype.setX=function(e){this.x=e;for(var t=0;t<this.children.length;t++)this.children[t].setX(e)},s.prototype.setHint=function(){this.hint=!0},s.prototype.draw=function(e,t){if(!this.invisible){this.elemset=[],e.beginGroup();for(var i=0;i<this.children.length;i++){0;var s=this.children[i].draw(e,t);s&&this.elemset.push(s)}var a=this.type;if(("note"===this.type||"rest"===this.type)&&(a=(a+=" d"+this.durationClass).replace(/\./g,"-"),this.abcelem.pitches))for(var n=0;n<this.abcelem.pitches.length;n++)a+=" p"+this.abcelem.pitches[n].pitch;var c=e.endGroup(a);c&&this.elemset.push(c),this.klass&&this.setClass("mark","","#00ff00"),this.hint&&this.setClass("abcjs-hint","",null);var o=e.printShadedBox(this.x,e.calcY(this.top),this.w,e.calcY(this.bottom)-e.calcY(this.top),"#000000",0),h=this,l=e.controller;o.addEventListener("mouseup",(function(){var e=[];if(h.elemset)for(var t=0;t<h.elemset.length;t++){var i=h.elemset[t];i&&e.push(i.getAttribute("class"))}l.notifySelect(h,h.tuneNumber,e)})),this.abcelem.abselem=this;r.STEP}},s.prototype.isIE=!1,s.prototype.setClass=function(e,t,i){for(var r=0;r<this.elemset.length;r++){var s=this.elemset[r];s.setAttribute("fill",i);var a=s.getAttribute("class");a||(a=""),a=(a=a.replace(t,"")).replace(e,""),e.length>0&&(a.length>0&&" "!==a.charAt(a.length-1)&&(a+=" "),a+=e),s.setAttribute("class",a)}},s.prototype.highlight=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#ff0000"),this.setClass(e,"",t)},s.prototype.unhighlight=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#000000"),this.setClass("",e,t)},e.exports=s},function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){for(var e,t,r,s,a,n=0,c=arguments[n++],o=[];c;){if(t=/^[^\x25]+/.exec(c))o.push(t[0]);else if(t=/^\x25{2}/.exec(c))o.push("%");else{if(!(t=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(c)))throw"Huh ?!";if(null==(e=arguments[t[1]||n++])||null==e)throw"Too few arguments.";if(/[^s]/.test(t[7])&&"number"!=typeof e)throw"Expecting number but found "+i(e);switch(t[7]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e);break;case"e":e=t[6]?e.toExponential(t[6]):e.toExponential();break;case"f":e=t[6]?parseFloat(e).toFixed(t[6]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&t[6]?e.substring(0,t[6]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(t[7])&&t[2]&&e>0?"+"+e:e,s=t[3]?"0"==t[3]?"0":t[3].charAt(1):" ",a=t[5]-String(e).length,r=t[5]?str_repeat(s,a):"",o.push(t[4]?e+r:r+e)}c=c.substring(t[0].length)}return o.join("")}},function(e,t,i){var r=i(0),s={};!function(){"use strict";var e,t,i,a;s.initialize=function(r,s,n,c){e=r,t=s,a=c,(i=n).annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},i.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},i.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},i.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},i.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},a.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},a.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},a.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},a.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},a.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},a.formatting.annotationfont=i.annotationfont,a.formatting.gchordfont=i.gchordfont,a.formatting.historyfont=i.historyfont,a.formatting.infofont=i.infofont,a.formatting.measurefont=i.measurefont,a.formatting.partsfont=i.partsfont,a.formatting.repeatfont=i.repeatfont,a.formatting.textfont=i.textfont,a.formatting.tripletfont=i.tripletfont,a.formatting.vocalfont=i.vocalfont,a.formatting.wordsfont=i.wordsfont};var n={gchordfont:!0,measurefont:!0,partsfont:!0},c=function(e,i,r,s,a){function c(){var c=parseInt(e[0].token);return e.shift(),i?0===e.length?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:c}:1===e.length&&"box"===e[0].token&&n[a]?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:c,box:!0}:(t("Extra parameters in font definition.",r,s),{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:c}):(t("Can't set just the size of the font since there is no default value.",r,s),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:c})}if("*"===e[0].token){if(e.shift(),"number"===e[0].type)return c();t("Expected font size number after *.",r,s)}if("number"===e[0].type)return c();for(var o,h=[],l="normal",d="normal",f="none",u=!1,p="face",m=!1;e.length;){var g=e.shift(),v=g.token.toLowerCase();switch(p){case"face":m||"utf"!==v&&"number"!==g.type&&"bold"!==v&&"italic"!==v&&"underline"!==v&&"box"!==v?h.length>0&&"-"===g.token?(m=!0,h[h.length-1]=h[h.length-1]+g.token):m?(m=!1,h[h.length-1]=h[h.length-1]+g.token):h.push(g.token):"number"===g.type?(o?t("Font size specified twice in font definition.",r,s):o=g.token,p="modifier"):"bold"===v?l="bold":"italic"===v?d="italic":"underline"===v?f="underline":"box"===v?(n[a]?u=!0:t('This font style doesn\'t support "box"',r,s),p="finished"):"utf"===v?(g=e.shift(),p="size"):t("Unknown parameter "+g.token+" in font definition.",r,s);break;case"size":"number"===g.type?o?t("Font size specified twice in font definition.",r,s):o=g.token:t("Expected font size in font definition.",r,s),p="modifier";break;case"modifier":"bold"===v?l="bold":"italic"===v?d="italic":"underline"===v?f="underline":"box"===v?(n[a]?u=!0:t('This font style doesn\'t support "box"',r,s),p="finished"):t("Unknown parameter "+g.token+" in font definition.",r,s);break;case"finished":t('Extra characters found after "box" in font definition.',r,s)}}void 0===o?i?o=i.size:(t("Must specify the size of the font since there is no default value.",r,s),o=12):o=parseFloat(o);var b=function(e){switch(e){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}}(h=h.join(" ")),y={};return b?(y.face=b.face,y.weight=b.weight,y.style=b.style,y.decoration=b.decoration,y.size=o,u&&(y.box=!0),y):(y.face=h,y.weight=l,y.style=d,y.decoration=f,y.size=o,u&&(y.box=!0),y)},o=function(e,t,r){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(i[e]=c(t,i[e],r,0,e),i.is_in_header&&(a.formatting[e]=i[e]),null)},h=function(e,t){var i="";r.each(t,(function(e){i+=e.token}));var s=parseFloat(i);if(isNaN(s)||0===s)return'Directive "'+e+'" requires a number as a parameter.';a.formatting.scale=s},l=function(e,t,r,s,a){if(1!==r.length||"number"!==r[0].type)return'Directive "'+t+'" requires a number as a parameter.';var n=r[0].intt;return void 0!==s&&n<s?'Directive "'+t+'" requires a number greater than or equal to '+s+" as a parameter.":void 0!==a&&n>a?'Directive "'+t+'" requires a number less than or equal to '+a+" as a parameter.":(i[e]=n,null)},d=function(e,t,r){if(1===r.length&&("true"===r[0].token||"false"===r[0].token))return i[e]="true"===r[0].token,null;var s=l(e,t,r,0,1);return null!==s?s:(i[e]=1===i[e],null)},f=function(e,t,r,s){if(1!==r.length)return'Directive "'+t+'" requires one of [ '+s.join(", ")+" ] as a parameter.";for(var a=r[0].token,n=!1,c=0;!n&&c<s.length;c++)s[c]===a&&(n=!0);return n?(i[e]=a,null):'Directive "'+t+'" requires one of [ '+s.join(", ")+" ] as a parameter."},u=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],p=["gchord","ptstress","beatstring"],m=["bassvol","chordvol","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","volinc"],g=["program"],v=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],b=["beat"],y=["drone"],w=["portamento"],x=["expand","grace","trim"],k=["drum","chordname"];s.parseFontChangeLine=function(e){var t=e.split("$");if(t.length>1&&i.setfont){for(var r=[{text:t[0]}],s=1;s<t.length;s++)"0"===t[s].charAt(0)?r.push({text:t[s].substring(1)}):"1"===t[s].charAt(0)&&i.setfont[1]?r.push({font:i.setfont[1],text:t[s].substring(1)}):"2"===t[s].charAt(0)&&i.setfont[2]?r.push({font:i.setfont[2],text:t[s].substring(1)}):"3"===t[s].charAt(0)&&i.setfont[3]?r.push({font:i.setfont[3],text:t[s].substring(1)}):"4"===t[s].charAt(0)&&i.setfont[4]?r.push({font:i.setfont[4],text:t[s].substring(1)}):r[r.length-1].text+="$"+t[s];if(r.length>1)return r}return e};var A=["auto","above","below","hidden"];s.addDirective=function(n){var N=e.tokenize(n,0,n.length);if(0===N.length||"alpha"!==N[0].type)return null;var S=n.substring(n.indexOf(N[0].token)+N[0].token.length);S=e.stripComment(S);var T=N.shift().token.toLowerCase(),_="";switch(T){case"bagpipes":a.formatting.bagpipes=!0;break;case"flatbeams":a.formatting.flatbeams=!0;break;case"landscape":i.landscape=!0;break;case"papersize":i.papersize=S;break;case"slurgraces":a.formatting.slurgraces=!0;break;case"stretchlast":a.formatting.stretchlast=!0;break;case"titlecaps":i.titlecaps=!0;break;case"titleleft":a.formatting.titleleft=!0;break;case"measurebox":a.formatting.measurebox=!0;break;case"vocal":return f("vocalPosition",T,N,A);case"dynamic":return f("dynamicPosition",T,N,A);case"gchord":return f("chordPosition",T,N,A);case"ornament":return f("ornamentPosition",T,N,A);case"volume":return f("volumePosition",T,N,A);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return function(t,i){var r=e.getMeasurement(i);return 0===r.used||0!==i.length?'Directive "'+t+'" requires a measurement as a parameter.':(a.formatting[t]=r.value,null)}(T,N);case"voicescale":if(1!==N.length||"number"!==N[0].type)return"voicescale requires one float as a parameter";var C=N.shift();return i.currentVoice&&(i.currentVoice.scale=C.floatt,a.changeVoiceScale(i.currentVoice.scale)),null;case"vskip":var E=function(t,i){var r=e.getMeasurement(i);return 0===r.used||0!==i.length?{error:'Directive "'+t+'" requires a measurement as a parameter.'}:r.value}(T,N);return E.error?E.error:(a.addSpacing(E),null);case"scale":h(T,N);break;case"sep":if(0===N.length)a.addSeparator();else{var M=e.getMeasurement(N);if(0===M.used)return'Directive "'+T+'" requires 3 numbers: space above, space below, length of line';var B=M.value;if(0===(M=e.getMeasurement(N)).used)return'Directive "'+T+'" requires 3 numbers: space above, space below, length of line';var P=M.value;if(0===(M=e.getMeasurement(N)).used||0!==N.length)return'Directive "'+T+'" requires 3 numbers: space above, space below, length of line';var L=M.value;a.addSeparator(B,P,L)}break;case"barsperstaff":if(null!==(_=l("barsperstaff",T,N)))return _;break;case"staffnonote":if(1!==N.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===N[0].token)i.staffnonote=!0;else{if("1"!==N[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+N[0].token+")";i.staffnonote=!1}break;case"printtempo":if(null!==(_=d("printTempo",T,N)))return _;break;case"partsbox":if(null!==(_=d("partsBox",T,N)))return _;i.partsfont.box=i.partsBox;break;case"freegchord":if(null!==(_=d("freegchord",T,N)))return _;break;case"measurenb":case"barnumbers":if(null!==(_=l("barNumbers",T,N)))return _;break;case"setbarnb":if(1!==N.length||"number"!==N[0].type)return"Directive setbarnb requires a number as a parameter.";i.currBarNumber=a.setBarNumberImmediate(N[0].intt);break;case"begintext":i.inTextBlock=!0;break;case"continueall":i.continueall=!0;break;case"beginps":i.inPsBlock=!0,t("Postscript ignored",n,0);break;case"deco":S.length>0&&i.ignoredDecorations.push(S.substring(0,S.indexOf(" "))),t("Decoration redefinition ignored",n,0);break;case"text":var H=e.translateString(S);a.addText(s.parseFontChangeLine(H));break;case"center":var z=e.translateString(S);a.addCentered(s.parseFontChangeLine(z));break;case"font":break;case"setfont":var I=e.tokenize(S,0,S.length);if(I.length>=4&&"-"===I[0].token&&"number"===I[1].type){var D=parseInt(I[1].token);D>=1&&D<=4&&(i.setfont||(i.setfont=[]),I.shift(),I.shift(),i.setfont[D]=c(I,i.setfont[D],n,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return o(T,N,n);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(e,t,i){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(a.formatting[e]=c(t,a.formatting[e],i,0,e),null)}(T,N,n);case"barlabelfont":case"barnumberfont":case"barnumfont":return o("measurefont",N,n);case"staves":case"score":i.score_is_present=!0;for(var O,Y=function(e,t,s,a,n){(t||0===i.staves.length)&&i.staves.push({index:i.staves.length,numVoices:0});var c=r.last(i.staves);void 0!==s&&(c.bracket=s),void 0!==a&&(c.brace=a),n&&(c.connectBarLines="end"),void 0===i.voices[e]&&(i.voices[e]={staffNum:c.index,index:c.numVoices},c.numVoices++)},V=!1,F=!1,W=!1,G=!1,R=!1,q=!1,X=!1,U=function(){if(X=!0,O){var e="start";O.staffNum>0&&("start"!==i.staves[O.staffNum-1].connectBarLines&&"continue"!==i.staves[O.staffNum-1].connectBarLines||(e="continue")),i.staves[O.staffNum].connectBarLines=e}};N.length;){var j=N.shift();switch(j.token){case"(":V?t("Can't nest parenthesis in %%score",n,j.start):(V=!0,G=!0);break;case")":!V||G?t("Unexpected close parenthesis in %%score",n,j.start):V=!1;break;case"[":F?t("Can't nest brackets in %%score",n,j.start):(F=!0,R=!0);break;case"]":!F||R?t("Unexpected close bracket in %%score",n,j.start):(F=!1,i.staves[O.staffNum].bracket="end");break;case"{":W?t("Can't nest braces in %%score",n,j.start):(W=!0,q=!0);break;case"}":!W||q?t("Unexpected close brace in %%score",n,j.start):(W=!1,i.staves[O.staffNum].brace="end");break;case"|":U();break;default:for(var K="";("alpha"===j.type||"number"===j.type)&&(K+=j.token,j.continueId);)j=N.shift();Y(K,!V||G,R?"start":F?"continue":void 0,q?"start":W?"continue":void 0,X),G=!1,R=!1,q=!1,X=!1,O=i.voices[K],"staves"===T&&U()}}break;case"newpage":var Q=e.getInt(S);a.addNewPage(0===Q.digits?-1:Q.value);break;case"abc":var Z=S.split(" ");switch(Z[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var $=Z.shift();a.addMetaText(T+$,Z.join(" "));break;default:return"Unknown directive: "+T+Z[0]}break;case"header":case"footer":var J=e.getMeat(S,0,S.length);'"'===(J=S.substring(J.start,J.end)).charAt(0)&&'"'===J.charAt(J.length-1)&&(J=J.substring(1,J.length-1));var ee=J.split("\t"),te={};te=1===ee.length?{left:"",center:ee[0],right:""}:2===ee.length?{left:ee[0],center:ee[1],right:""}:{left:ee[0],center:ee[1],right:ee[2]},ee.length>3&&t("Too many tabs in "+T+": "+ee.length+" found.",S,0),a.addMetaTextObj(T,te);break;case"midi":var ie=e.tokenize(S,0,S.length,!0);ie.length>0&&"="===ie[0].token&&ie.shift(),0===ie.length?t("Expected midi command",S,0):function(e,i,r){var s=e.shift().token,a=[];if(u.indexOf(s)>=0)0!==e.length&&t("Unexpected parameter in MIDI "+s,r,0);else if(p.indexOf(s)>=0)1!==e.length?t("Expected one parameter in MIDI "+s,r,0):a.push(e[0].token);else if(m.indexOf(s)>=0)1!==e.length?t("Expected one parameter in MIDI "+s,r,0):"number"!==e[0].type?t("Expected one integer parameter in MIDI "+s,r,0):a.push(e[0].intt);else if(g.indexOf(s)>=0)1!==e.length&&2!==e.length?t("Expected one or two parameters in MIDI "+s,r,0):"number"!==e[0].type?t("Expected integer parameter in MIDI "+s,r,0):2===e.length&&"number"!==e[1].type?t("Expected integer parameter in MIDI "+s,r,0):(a.push(e[0].intt),2===e.length&&a.push(e[1].intt));else if(v.indexOf(s)>=0)2!==e.length?t("Expected two parameters in MIDI "+s,r,0):"number"!==e[0].type||"number"!==e[1].type?t("Expected two integer parameters in MIDI "+s,r,0):(a.push(e[0].intt),a.push(e[1].intt));else if(w.indexOf(s)>=0)2!==e.length?t("Expected two parameters in MIDI "+s,r,0):"alpha"!==e[0].type||"number"!==e[1].type?t("Expected one string and one integer parameters in MIDI "+s,r,0):(a.push(e[0].token),a.push(e[1].intt));else if("drummap"===s)2===e.length&&"alpha"===e[0].type&&"number"===e[1].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[e[0].token]=e[1].intt,a=i.formatting.midi.drummap):3===e.length&&"punct"===e[0].type&&"alpha"===e[1].type&&"number"===e[2].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[e[0].token+e[1].token]=e[2].intt,a=i.formatting.midi.drummap):t("Expected one note name and one integer parameter in MIDI "+s,r,0);else if(x.indexOf(s)>=0)3!==e.length?t("Expected fraction parameter in MIDI "+s,r,0):"number"!==e[0].type||"/"!==e[1].token||"number"!==e[2].type?t("Expected fraction parameter in MIDI "+s,r,0):(a.push(e[0].intt),a.push(e[2].intt));else if(b.indexOf(s)>=0)4!==e.length?t("Expected four parameters in MIDI "+s,r,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type?t("Expected four integer parameters in MIDI "+s,r,0):(a.push(e[0].intt),a.push(e[1].intt),a.push(e[2].intt),a.push(e[3].intt));else if(y.indexOf(s)>=0)5!==e.length?t("Expected five parameters in MIDI "+s,r,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type||"number"!==e[4].type?t("Expected five integer parameters in MIDI "+s,r,0):(a.push(e[0].intt),a.push(e[1].intt),a.push(e[2].intt),a.push(e[3].intt),a.push(e[4].intt));else if(g.indexOf(s)>=0)1!==e.length||4!==e.length?t("Expected one or two parameters in MIDI "+s,r,0):"number"!==e[0].type?t("Expected integer parameter in MIDI "+s,r,0):4===e.length?("octave"!==e[1].token&&t("Expected octave parameter in MIDI "+s,r,0),"="!==e[2].token&&t("Expected octave parameter in MIDI "+s,r,0),"number"!==e[3].type&&t("Expected integer parameter for octave in MIDI "+s,r,0)):(a.push(e[0].intt),4===e.length&&a.push(e[3].intt));else if(k.indexOf(s)>=0)if(e.length<2)t("Expected string parameter and at least one integer parameter in MIDI "+s,r,0);else if("alpha"!==e[0].type)t("Expected string parameter and at least one integer parameter in MIDI "+s,r,0);else{var n=e.shift();for(a.push(n.token);e.length>0;)"number"!==(n=e.shift()).type&&t("Expected integer parameter in MIDI "+s,r,0),a.push(n.intt)}i.hasBeginMusic()?i.appendElement("midi",-1,-1,{cmd:s,params:a}):(void 0===i.formatting.midi&&(i.formatting.midi={}),i.formatting.midi[s]=a)}(ie,a,S);break;case"map":case"percmap":case"playtempo":case"auquality":case"continuous":case"nobarcheck":a.formatting[T]=S;break;default:return"Unknown directive: "+T}return null},s.globalFormatting=function(r){for(var s in r)if(r.hasOwnProperty(s)){var a,n=""+r[s],c=e.tokenize(n,0,n.length);switch(s){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":o(s,c,n);break;case"scale":h(s,c);break;case"partsbox":null!==(a=d("partsBox",s,c))&&t(a),i.partsfont.box=i.partsBox;break;case"freegchord":null!==(a=d("freegchord",s,c))&&t(a);default:t("Formatting directive unrecognized: ",s,0)}}}}(),e.exports=s},function(e,t,i){var r=i(0),s=i(6),a=i(9),n={};!function(){var e,t,i,c;n.initialize=function(r,s,a,n){e=r,t=s,i=a,c=n},n.standardKey=function(e,t,r,s){var n={acc:"sharp",note:"f"},c={acc:"sharp",note:"c"},o={acc:"sharp",note:"g"},h={acc:"sharp",note:"d"},l={acc:"sharp",note:"A"},d={acc:"sharp",note:"e"},f={acc:"sharp",note:"B"},u={acc:"flat",note:"B"},p={acc:"flat",note:"e"},m={acc:"flat",note:"A"},g={acc:"flat",note:"d"},v={acc:"flat",note:"G"},b={acc:"flat",note:"c"},y={acc:"flat",note:"F"},w={"C#":[n,c,o,h,l,d,f],"A#m":[n,c,o,h,l,d,f],"G#Mix":[n,c,o,h,l,d,f],"D#Dor":[n,c,o,h,l,d,f],"E#Phr":[n,c,o,h,l,d,f],"F#Lyd":[n,c,o,h,l,d,f],"B#Loc":[n,c,o,h,l,d,f],"F#":[n,c,o,h,l,d],"D#m":[n,c,o,h,l,d],"C#Mix":[n,c,o,h,l,d],"G#Dor":[n,c,o,h,l,d],"A#Phr":[n,c,o,h,l,d],BLyd:[n,c,o,h,l,d],"E#Loc":[n,c,o,h,l,d],B:[n,c,o,h,l],"G#m":[n,c,o,h,l],"F#Mix":[n,c,o,h,l],"C#Dor":[n,c,o,h,l],"D#Phr":[n,c,o,h,l],ELyd:[n,c,o,h,l],"A#Loc":[n,c,o,h,l],E:[n,c,o,h],"C#m":[n,c,o,h],BMix:[n,c,o,h],"F#Dor":[n,c,o,h],"G#Phr":[n,c,o,h],ALyd:[n,c,o,h],"D#Loc":[n,c,o,h],A:[n,c,o],"F#m":[n,c,o],EMix:[n,c,o],BDor:[n,c,o],"C#Phr":[n,c,o],DLyd:[n,c,o],"G#Loc":[n,c,o],D:[n,c],Bm:[n,c],AMix:[n,c],EDor:[n,c],"F#Phr":[n,c],GLyd:[n,c],"C#Loc":[n,c],G:[n],Em:[n],DMix:[n],ADor:[n],BPhr:[n],CLyd:[n],"F#Loc":[n],C:[],Am:[],GMix:[],DDor:[],EPhr:[],FLyd:[],BLoc:[],F:[u],Dm:[u],CMix:[u],GDor:[u],APhr:[u],BbLyd:[u],ELoc:[u],Bb:[u,p],Gm:[u,p],FMix:[u,p],CDor:[u,p],DPhr:[u,p],EbLyd:[u,p],ALoc:[u,p],Eb:[u,p,m],Cm:[u,p,m],BbMix:[u,p,m],FDor:[u,p,m],GPhr:[u,p,m],AbLyd:[u,p,m],DLoc:[u,p,m],Ab:[u,p,m,g],Fm:[u,p,m,g],EbMix:[u,p,m,g],BbDor:[u,p,m,g],CPhr:[u,p,m,g],DbLyd:[u,p,m,g],GLoc:[u,p,m,g],Db:[u,p,m,g,v],Bbm:[u,p,m,g,v],AbMix:[u,p,m,g,v],EbDor:[u,p,m,g,v],FPhr:[u,p,m,g,v],GbLyd:[u,p,m,g,v],CLoc:[u,p,m,g,v],Gb:[u,p,m,g,v,b],Ebm:[u,p,m,g,v,b],DbMix:[u,p,m,g,v,b],AbDor:[u,p,m,g,v,b],BbPhr:[u,p,m,g,v,b],CbLyd:[u,p,m,g,v,b],FLoc:[u,p,m,g,v,b],Cb:[u,p,m,g,v,b,y],Abm:[u,p,m,g,v,b,y],GbMix:[u,p,m,g,v,b,y],DbDor:[u,p,m,g,v,b,y],EbPhr:[u,p,m,g,v,b,y],FbLyd:[u,p,m,g,v,b,y],BbLoc:[u,p,m,g,v,b,y],"A#":[u,p],"B#":[],"D#":[u,p,m],"E#":[u],"G#":[u,p,m,g],Gbm:[n,c,o,h,l,d,f]};return a.keySignature(i,w,e,t,r,s)};var o={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},h=function(e,t){var i=o[e];return(i?i.mid:0)+t};n.fixClef=function(e){var t=o[e.type];t&&(e.clefPos=t.pitch,e.type=t.clef)},n.deepCopyKey=function(e){var t={accidentals:[],root:e.root,acc:e.acc,mode:e.mode};return r.each(e.accidentals,(function(e){t.accidentals.push(r.clone(e))})),t};var l={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};n.addPosToKey=function(e,t){var i=e.verticalPos;r.each(t.accidentals,(function(e){var t=l[e.note];t-=i,e.verticalPos=t})),t.impliedNaturals&&r.each(t.impliedNaturals,(function(e){var t=l[e.note];t-=i,e.verticalPos=t})),i<-10?(r.each(t.accidentals,(function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),"G"!==e.note&&"F"!==e.note||"flat"!==e.acc||(e.verticalPos-=7)})),t.impliedNaturals&&r.each(t.impliedNaturals,(function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),"G"!==e.note&&"F"!==e.note||"flat"!==e.acc||(e.verticalPos-=7)}))):i<-4?(r.each(t.accidentals,(function(e){e.verticalPos-=7,-8!==i||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)})),t.impliedNaturals&&r.each(t.impliedNaturals,(function(e){e.verticalPos-=7,-8!==i||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)}))):i>=7&&(r.each(t.accidentals,(function(e){e.verticalPos+=7})),t.impliedNaturals&&r.each(t.impliedNaturals,(function(e){e.verticalPos+=7})))},n.fixKey=function(e,t){var i=r.clone(t);return n.addPosToKey(e,i),i};var d=function(e){var t=0,i=e.charAt(t++);"^"!==i&&"_"!==i||(i=e.charAt(t++));var r=l[i];for(void 0===r&&(r=6);t<e.length;t++)if(","===e.charAt(t))r-=7;else{if("'"!==e.charAt(t))break;r+=7}return{mid:r-6,str:e.substring(t)}};n.parseKey=function(r){0===r.length&&(r="none");var a=e.tokenize(r,0,r.length),c={};switch(a[0].token){case"HP":s.addDirective("bagpipes"),i.key={root:"HP",accidentals:[],acc:"",mode:""},c.foundKey=!0,a.shift();break;case"Hp":s.addDirective("bagpipes"),i.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},c.foundKey=!0,a.shift();break;case"none":i.key={root:"none",accidentals:[],acc:"",mode:""},c.foundKey=!0,a.shift();break;default:var o=e.getKeyPitch(a[0].token);if(o.len>0){c.foundKey=!0;var l="",d="";a[0].token.length>1?a[0].token=a[0].token.substring(1):a.shift();var f=o.token;if(a.length>0){var u=e.getSharpFlat(a[0].token);if(u.len>0&&(a[0].token.length>1?a[0].token=a[0].token.substring(1):a.shift(),f+=u.token,l=u.token),a.length>0){var p=e.getMode(a[0].token);p.len>0&&(a.shift(),f+=p.token,d=p.token)}if(void 0===n.standardKey(f,o.token,l,0))return t("Unsupported key signature: "+f,r,0),c}var m=n.deepCopyKey(i.key),g=i.globalTranspose?-i.globalTranspose:0;if(i.key=n.deepCopyKey(n.standardKey(f,o.token,l,g)),i.key.mode=d,m){for(var v,b=0;b<i.key.accidentals.length;b++)for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&i.key.accidentals[b].note.toLowerCase()===m.accidentals[v].note.toLowerCase()&&(m.accidentals[v].note=null);for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&(i.key.impliedNaturals||(i.key.impliedNaturals=[]),i.key.impliedNaturals.push({acc:"natural",note:m.accidentals[v].note}))}}}if(0===a.length)return c;if("exp"===a[0].token&&a.shift(),0===a.length)return c;if("oct"===a[0].token&&a.shift(),0===a.length)return c;var y,w=e.getKeyAccidentals2(a);if(w.warn&&t(w.warn,r,0),w.accs){c.foundKey||(c.foundKey=!0,i.key={root:"none",acc:"",mode:"",accidentals:[]}),function(e){for(var t=0;t<e.length;t++)"b"===e[t].note?e[t].note="B":"a"===e[t].note?e[t].note="A":"F"===e[t].note?e[t].note="f":"E"===e[t].note?e[t].note="e":"D"===e[t].note?e[t].note="d":"C"===e[t].note?e[t].note="c":"G"===e[t].note&&"sharp"===e[t].acc?e[t].note="g":"g"===e[t].note&&"flat"===e[t].acc&&(e[t].note="G")}(w.accs);for(var x=0;x<w.accs.length;x++){for(var k=!1,A=0;A<i.key.accidentals.length&&!k;A++)i.key.accidentals[A].note===w.accs[x].note&&(k=!0,i.key.accidentals[A].acc!==w.accs[x].acc&&(i.key.accidentals[A].acc=w.accs[x].acc,i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[x])));if(!k&&(i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[x]),i.key.accidentals.push(w.accs[x]),i.key.impliedNaturals))for(var N=0;N<i.key.impliedNaturals.length;N++)i.key.impliedNaturals[N].note===w.accs[x].note&&i.key.impliedNaturals.splice(N,1)}}for(;a.length>0;)switch(a[0].token){case"m":case"middle":if(a.shift(),0===a.length)return t("Expected = after middle",r,0),c;if("="!==(y=a.shift()).token){t("Expected = after middle",r,y.start);break}if(0===a.length)return t("Expected parameter after middle=",r,0),c;var S=e.getPitchFromTokens(a);S.warn&&t(S.warn,r,0),S.position&&(i.clef.verticalPos=S.position-6);break;case"transpose":if(a.shift(),0===a.length)return t("Expected = after transpose",r,0),c;if("="!==(y=a.shift()).token){t("Expected = after transpose",r,y.start);break}if(0===a.length)return t("Expected parameter after transpose=",r,0),c;if("number"!==a[0].type){t("Expected number after transpose",r,a[0].start);break}i.clef.transpose=a[0].intt,a.shift();break;case"stafflines":if(a.shift(),0===a.length)return t("Expected = after stafflines",r,0),c;if("="!==(y=a.shift()).token){t("Expected = after stafflines",r,y.start);break}if(0===a.length)return t("Expected parameter after stafflines=",r,0),c;if("number"!==a[0].type){t("Expected number after stafflines",r,a[0].start);break}i.clef.stafflines=a[0].intt,a.shift();break;case"staffscale":if(a.shift(),0===a.length)return t("Expected = after staffscale",r,0),c;if("="!==(y=a.shift()).token){t("Expected = after staffscale",r,y.start);break}if(0===a.length)return t("Expected parameter after staffscale=",r,0),c;if("number"!==a[0].type){t("Expected number after staffscale",r,a[0].start);break}i.clef.staffscale=a[0].floatt,a.shift();break;case"style":if(a.shift(),0===a.length)return t("Expected = after style",r,0),c;if("="!==(y=a.shift()).token){t("Expected = after style",r,y.start);break}if(0===a.length)return t("Expected parameter after style=",r,0),c;switch(a[0].token){case"normal":case"harmonic":case"rhythm":case"x":i.style=a[0].token,a.shift();break;default:t("error parsing style element: "+a[0].token,r,a[0].start)}break;case"clef":if(a.shift(),0===a.length)return t("Expected = after clef",r,0),c;if("="!==(y=a.shift()).token){t("Expected = after clef",r,y.start);break}if(0===a.length)return t("Expected parameter after clef=",r,0),c;case"treble":case"bass":case"alto":case"tenor":case"perc":var T=a.shift();switch(T.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":T.token="alto";break;case"F":T.token="bass";break;case"G":T.token="treble";break;case"c":T.token="alto";break;case"f":T.token="bass";break;case"g":T.token="treble";break;default:t("Expected clef name. Found "+T.token,r,T.start)}a.length>0&&"number"===a[0].type&&(T.token+=a[0].token,a.shift()),a.length>1&&("-"===a[0].token||"+"===a[0].token||"^"===a[0].token||"_"===a[0].token)&&"8"===a[1].token&&(T.token+=a[0].token+a[1].token,a.shift(),a.shift()),i.clef={type:T.token,verticalPos:h(T.token,0)},i.currentVoice&&void 0!==i.currentVoice.transpose&&(i.clef.transpose=i.currentVoice.transpose),c.foundClef=!0;break;default:t("Unknown parameter: "+a[0].token,r,a[0].start),a.shift()}return c};n.parseVoice=function(r,s,a){var n=e.getMeat(r,s,a),o=n.start,l=n.end,f=e.getToken(r,o,l);if(0!==f.length){var u=!1;void 0===i.voices[f]&&(i.voices[f]={},u=!0,i.score_is_present&&t("Can't have an unknown V: id when the %score directive is present",r,o)),o+=f.length,o+=e.eatWhiteSpace(r,o);for(var p={startStaff:u},m=function(i){var s=e.getVoiceToken(r,o,l);void 0!==s.warn?t("Expected value for "+i+" in voice: "+s.warn,r,o):0===s.token.length&&'"'!==r.charAt(o)?t("Expected value for "+i+" in voice",r,o):p[i]=s.token,o+=s.len},g=function(s,a,n){var c=e.getVoiceToken(r,o,l);void 0!==c.warn?t("Expected value for "+a+" in voice: "+c.warn,r,o):0===c.token.length&&'"'!==r.charAt(o)?t("Expected value for "+a+" in voice",r,o):("number"===n&&(c.token=parseFloat(c.token)),i.voices[s][a]=c.token),o+=c.len},v=function(i,s){var a=e.getVoiceToken(r,o,l);if(void 0!==a.warn)t("Expected value for "+i+" in voice: "+a.warn,r,o);else{if(0!==a.token.length||'"'===r.charAt(o))return"number"===s&&(a.token=parseFloat(a.token)),a.token;t("Expected value for "+i+" in voice",r,o)}o+=a.len},b=function(s,a){var n=e.getVoiceToken(r,o,l);if(void 0!==n.warn)t("Expected one of (_B, _E, _b, _e) for "+a+" in voice: "+n.warn,r,o);else if(0===n.token.length&&'"'!==r.charAt(o))t("Expected one of (_B, _E, _b, _e) for "+a+" in voice",r,o);else{var c={_B:2,_E:9,_b:-10,_e:-3}[n.token];c?i.voices[s][a]=c:t("Expected one of (_B, _E, _b, _e) for "+a+" in voice",r,o)}o+=n.len};o<l;){var y=e.getVoiceToken(r,o,l);if(o+=y.len,y.warn)t("Error parsing voice: "+y.warn,r,o);else{var w=null;switch(y.token){case"clef":case"cl":m("clef");var x=0;void 0!==p.clef&&(p.clef=p.clef.replace(/[',]/g,""),-1!==p.clef.indexOf("+16")&&(x+=14,p.clef=p.clef.replace("+16","")),p.verticalPos=h(p.clef,x));break;case"treble":case"bass":case"tenor":case"alto":case"perc":case"none":case"treble'":case"bass'":case"tenor'":case"alto'":case"none'":case"treble''":case"bass''":case"tenor''":case"alto''":case"none''":case"treble,":case"bass,":case"tenor,":case"alto,":case"none,":case"treble,,":case"bass,,":case"tenor,,":case"alto,,":case"none,,":p.clef=y.token.replace(/[',]/g,""),p.verticalPos=h(p.clef,0),i.voices[f].clef=y.token;break;case"staves":case"stave":case"stv":m("staves");break;case"brace":case"brc":m("brace");break;case"bracket":case"brk":m("bracket");break;case"name":case"nm":m("name");break;case"subname":case"sname":case"snm":m("subname");break;case"merge":p.startStaff=!1;break;case"stem":case"stems":void 0!==(w=e.getVoiceToken(r,o,l)).warn?t("Expected value for stems in voice: "+w.warn,r,o):"up"===w.token||"down"===w.token?i.voices[f].stem=w.token:t("Expected up or down for voice stem",r,o),o+=w.len;break;case"up":case"down":i.voices[f].stem=y.token;break;case"middle":case"m":m("verticalPos"),p.verticalPos=d(p.verticalPos).mid;break;case"gchords":case"gch":i.voices[f].suppressChords=!0,"0"===(w=e.getVoiceToken(r,o,l)).token&&(o+=w.len);break;case"space":case"spc":m("spacing");break;case"scale":g(f,"scale","number");break;case"score":b(f,"scoreTranspose");break;case"transpose":g(f,"transpose","number");break;case"stafflines":g(f,"stafflines","number");break;case"staffscale":g(f,"staffscale","number");break;case"octave":g(f,"octave","number");break;case"volume":g(f,"volume","number");break;case"cue":var k=v("cue","string");i.voices[f].scale="on"===k?.6:1;break;case"style":void 0!==(w=e.getVoiceToken(r,o,l)).warn?t("Expected value for style in voice: "+w.warn,r,o):"normal"===w.token||"harmonic"===w.token||"rhythm"===w.token||"x"===w.token?i.voices[f].style=w.token:t("Expected one of [normal, harmonic, rhythm, x] for voice style",r,o),o+=w.len}}o+=e.eatWhiteSpace(r,o)}if((p.startStaff||0===i.staves.length)&&(i.staves.push({index:i.staves.length,meter:i.origMeter}),i.score_is_present||(i.staves[i.staves.length-1].numVoices=0)),void 0===i.voices[f].staffNum){i.voices[f].staffNum=i.staves.length-1;var A=0;for(var N in i.voices)i.voices.hasOwnProperty(N)&&i.voices[N].staffNum===i.voices[f].staffNum&&A++;i.voices[f].index=A-1}var S=i.staves[i.voices[f].staffNum];i.score_is_present||S.numVoices++,p.clef&&(S.clef={type:p.clef,verticalPos:p.verticalPos}),p.spacing&&(S.spacing_below_offset=p.spacing),p.verticalPos&&(S.verticalPos=p.verticalPos),p.name&&(S.name?S.name.push(p.name):S.name=[p.name]),p.subname&&(S.subname?S.subname.push(p.subname):S.subname=[p.subname]),function(e){i.currentVoice=i.voices[e],c.setCurrentVoice(i.currentVoice.staffNum,i.currentVoice.index)}(f)}else t("Expected a voice id",r,o)}}(),e.exports=n},function(e,t,i){var r=i(0),s=i(6),a=i(15),n=i(7),c=i(16),o=i(9),h=i(17),l=i(18);e.exports=function(){"use strict";var e=new l,t=new c;function i(e,t,i){e.positioning||(e.positioning={}),e.positioning[t]=i}function d(e,t,i){e.fonts||(e.fonts={}),e.fonts[t]=i}this.getTune=function(){return{formatting:e.formatting,lines:e.lines,media:e.media,metaText:e.metaText,version:e.version,addElementToEvents:e.addElementToEvents,addUsefulCallbackInfo:e.addUsefulCallbackInfo,getBarLength:e.getBarLength,getBeatLength:e.getBeatLength,getBeatsPerMeasure:e.getBeatsPerMeasure,getBpm:e.getBpm,getMeter:e.getMeter,getMeterFraction:e.getMeterFraction,getPickupLength:e.getPickupLength,getKeySignature:e.getKeySignature,makeVoicesArray:e.makeVoicesArray,millisecondsPerMeasure:e.millisecondsPerMeasure,setupEvents:e.setupEvents,setTiming:e.setTiming}};var f={reset:function(){for(var e in this)this.hasOwnProperty(e)&&"function"!=typeof this[e]&&delete this[e];this.iChar=0,this.key={accidentals:[],root:"none",acc:"",mode:""},this.meter=null,this.origMeter=null,this.hasMainTitle=!1,this.default_length=.125,this.clef={type:"treble",verticalPos:0},this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.is_in_history=!1,this.partForNextLine={},this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.inTextBlock=!1,this.inPsBlock=!1,this.ignoredDecorations=[],this.textBlock="",this.score_is_present=!1,this.inEnding=!1,this.inTie=[!1],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[],this.freegchord=!1},differentFont:function(e,t){return this[e].decoration!==t[e].decoration||(this[e].face!==t[e].face||(this[e].size!==t[e].size||(this[e].style!==t[e].style||this[e].weight!==t[e].weight)))},addFormattingOptions:function(e,t,r){"note"===r?("auto"!==this.vocalPosition&&i(e,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&i(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(e,"volumePosition",this.volumePosition),this.differentFont("annotationfont",t)&&d(e,"annotationfont",this.annotationfont),this.differentFont("gchordfont",t)&&d(e,"gchordfont",this.gchordfont),this.differentFont("vocalfont",t)&&d(e,"vocalfont",this.vocalfont),this.differentFont("tripletfont",t)&&d(e,"tripletfont",this.tripletfont)):"bar"===r&&("auto"!==this.dynamicPosition&&i(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(e,"volumePosition",this.volumePosition),this.differentFont("measurefont",t)&&d(e,"measurefont",this.measurefont),this.differentFont("repeatfont",t)&&d(e,"repeatfont",this.repeatfont))}},u=function(e){var t=r.gsub(e,""," ");return t=r.gsub(t,"&","&amp;"),t=r.gsub(t,"<","&lt;"),r.gsub(t,">","&gt;")},p=function(t,i,r){i||(i=" ");var s=i.charAt(r);" "===s&&(s="SPACE");var a,n=u(i.substring(0,r))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+s+"</span>"+u(i.substring(r+1));!function(e){f.warnings||(f.warnings=[]),f.warnings.push(e)}("Music Line:"+e.getNumLines()+":"+(r+1)+": "+t+":  "+n),a={message:t,line:i,startChar:f.iChar+r,column:r},f.warningObjects||(f.warningObjects=[]),f.warningObjects.push(a)},m=new a(t,p,f,e);this.getWarnings=function(){return f.warnings},this.getWarningObjects=function(){return f.warningObjects};var g=function(e,i){if('"'===e.charAt(i)){var r=t.getBrackettedSubstring(e,i,5);if(r[2]||p("Missing the closing quote while parsing the chord symbol",e,i),r[0]>0&&r[1].length>0&&"^"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="above";else if(r[0]>0&&r[1].length>0&&"_"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="below";else if(r[0]>0&&r[1].length>0&&"<"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="left";else if(r[0]>0&&r[1].length>0&&">"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="right";else if(r[0]>0&&r[1].length>0&&"@"===r[1].charAt(0)){r[1]=r[1].substring(1);var s=t.getFloat(r[1]);0===s.digits&&p("Missing first position in absolutely positioned annotation.",e,i),r[1]=r[1].substring(s.digits),","!==r[1][0]&&p("Missing comma absolutely positioned annotation.",e,i),r[1]=r[1].substring(1);var a=t.getFloat(r[1]);0===a.digits&&p("Missing second position in absolutely positioned annotation.",e,i),r[1]=r[1].substring(a.digits);var n=t.skipWhiteSpace(r[1]);r[1]=r[1].substring(n),r[2]=null,r[3]={x:s.value,y:a.value}}else!0!==f.freegchord&&(r[1]=r[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),r[1]=r[1].replace(/([ABCDEFG0-9])#/g,"$1♯")),r[2]="default",r[1]=o.chordName(f,r[1]);return r}return[0,""]},v=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","slide","^","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x"],b=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],y=["crescendo(","crescendo)","diminuendo(","diminuendo)"],w=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],x=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],k=function(e,i){var s=f.macros[e.charAt(i)];if(void 0!==s)return"!"!==s.charAt(0)&&"+"!==s.charAt(0)||(s=s.substring(1)),"!"!==s.charAt(s.length-1)&&"+"!==s.charAt(s.length-1)||(s=s.substring(0,s.length-1)),r.detect(v,(function(e){return s===e}))?[1,s]:r.detect(b,(function(e){return s===e}))?("hidden"===f.volumePosition&&(s=""),[1,s]):r.detect(y,(function(e){return"hidden"===f.dynamicPosition&&(s=""),s===e}))?[1,s]:(r.detect(f.ignoredDecorations,(function(e){return s===e}))||p("Unknown macro: "+s,e,i),[1,""]);switch(e.charAt(i)){case".":return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var a=t.getBrackettedSubstring(e,i,5);return a[1].length>0&&("^"===a[1].charAt(0)||"_"===a[1].charAt(0))&&(a[1]=a[1].substring(1)),r.detect(v,(function(e){return a[1]===e}))?a:r.detect(b,(function(e){return a[1]===e}))?("hidden"===f.volumePosition&&(a[1]=""),a):r.detect(y,(function(e){return a[1]===e}))?("hidden"===f.dynamicPosition&&(a[1]=""),a):r.detect(w,(function(e){return a[1]===e[0]&&(a[1]=e[1],!0)}))?a:r.detect(x,(function(e){return a[1]===e[0]&&(a[1]=e[1],!0)}))?("hidden"===f.dynamicPosition&&(a[1]=""),a):"!"!==e.charAt(i)||1!==a[0]&&"!"===e.charAt(i+a[0]-1)?(p("Unknown decoration: "+a[1],e,i),a[1]="",a):[1,null];case"H":return[1,"fermata"];case"J":return[1,"slide"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"]}return[0,0]},A=function(e,i){for(var r=i;t.isWhiteSpace(e.charAt(i));)i++;return[i-r]},N=function(e,i){var r=t.getBarLine(e,i);if(0===r.len)return[0,""];if(r.warn)return p(r.warn,e,i),[r.len,""];for(var s=0;s<e.length&&" "===e.charAt(i+r.len+s);s++);var a=r.len;if("["===e.charAt(i+r.len+s)&&(r.len+=s+1),'"'===e.charAt(i+r.len)&&"["===e.charAt(i+r.len-1)){var n=t.getBrackettedSubstring(e,i+r.len,5);return[r.len+n[0],r.token,n[1]]}var c=t.getTokenOf(e.substring(i+r.len),"1234567890-,");return 0===c.len||"-"===c.token[0]?[a,r.token]:[r.len+c.len,r.token,c.token]},S={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2},T=function(e,i){for(var r={},s=i;"("===e.charAt(i)||t.isWhiteSpace(e.charAt(i));)"("===e.charAt(i)&&(i+1<e.length&&e.charAt(i+1)>="2"&&e.charAt(i+1)<="9"?(void 0!==r.triplet?p("Can't nest triplets",e,i):(r.triplet=e.charAt(i+1)-"0",r.tripletQ=S[r.triplet],r.num_notes=r.triplet,i+2<e.length&&":"===e.charAt(i+2)&&(i+3<e.length&&":"===e.charAt(i+3)?i+4<e.length&&e.charAt(i+4)>="1"&&e.charAt(i+4)<="9"?(r.num_notes=e.charAt(i+4)-"0",i+=3):p("expected number after the two colons after the triplet to mark the duration",e,i):i+3<e.length&&e.charAt(i+3)>="1"&&e.charAt(i+3)<="9"?(r.tripletQ=e.charAt(i+3)-"0",i+4<e.length&&":"===e.charAt(i+4)?i+5<e.length&&e.charAt(i+5)>="1"&&e.charAt(i+5)<="9"&&(r.num_notes=e.charAt(i+5)-"0",i+=4):i+=2):p("expected number after the triplet to mark the duration",e,i))),i++):void 0===r.startSlur?r.startSlur=1:r.startSlur++),i++;return r.consumed=i-s,r},_=function(e,t){switch(e.charAt(t)){case">":return t<e.length-1&&">"===e.charAt(t+1)?[2,1.75,.25]:[1,1.5,.5];case"<":return t<e.length-1&&"<"===e.charAt(t+1)?[2,.25,1.75]:[1,.5,1.5]}return null},C=function(e){return void 0!==e.duration&&e.duration<.25&&(e.end_beam=!0),e},E={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11},M={x:"invisible",y:"spacer",z:"rest",Z:"multimeasure"},B=function(i,r,s,a){for(var n=function(e){return"octave"===e||"duration"===e||"Zduration"===e||"broken_rhythm"===e||"end_slur"===e},c="startSlur",h=!1;;){switch(i.charAt(r)){case"(":if("startSlur"!==c)return n(c)?(s.endChar=r,s):null;void 0===s.startSlur?s.startSlur=1:s.startSlur++;break;case")":if(!n(c))return null;void 0===s.endSlur?s.endSlur=1:s.endSlur++;break;case"^":if("startSlur"===c)s.accidental="sharp",c="sharp2";else{if("sharp2"!==c)return n(c)?(s.endChar=r,s):null;s.accidental="dblsharp",c="pitch"}break;case"_":if("startSlur"===c)s.accidental="flat",c="flat2";else{if("flat2"!==c)return n(c)?(s.endChar=r,s):null;s.accidental="dblflat",c="pitch"}break;case"=":if("startSlur"!==c)return n(c)?(s.endChar=r,s):null;s.accidental="natural",c="pitch";break;case"A":case"B":case"C":case"D":case"E":case"F":case"G":case"a":case"b":case"c":case"d":case"e":case"f":case"g":if("startSlur"!==c&&"sharp2"!==c&&"flat2"!==c&&"pitch"!==c)return n(c)?(s.endChar=r,s):null;if(s.pitch=E[i.charAt(r)],o.note(f,s),c="octave",a&&0!==f.next_note_duration?(s.duration=f.default_length*f.next_note_duration,f.next_note_duration=0,h=!0):s.duration=f.default_length,f.clef&&"perc"===f.clef.type||f.currentVoice&&"perc"===f.currentVoice.clef){var l=i.charAt(r);if(s.accidental){l={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^"}[s.accidental]+l}e.formatting&&e.formatting.midi&&e.formatting.midi.drummap&&(s.midipitch=e.formatting.midi.drummap[l])}break;case",":if("octave"!==c)return n(c)?(s.endChar=r,s):null;s.pitch-=7;break;case"'":if("octave"!==c)return n(c)?(s.endChar=r,s):null;s.pitch+=7;break;case"x":case"y":case"z":case"Z":if("startSlur"!==c)return n(c)?(s.endChar=r,s):null;s.rest={type:M[i.charAt(r)]},delete s.accidental,delete s.startSlur,delete s.startTie,delete s.endSlur,delete s.endTie,delete s.end_beam,delete s.grace_notes,"multimeasure"===s.rest.type?(s.duration=1,c="Zduration"):(a&&0!==f.next_note_duration?(s.duration=f.default_length*f.next_note_duration,f.next_note_duration=0,h=!0):s.duration=f.default_length,c="duration");break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if("octave"===c||"duration"===c){var d=t.getFraction(i,r);for(s.duration=s.duration*d.value,s.endChar=d.index;d.index<i.length&&(t.isWhiteSpace(i.charAt(d.index))||"-"===i.charAt(d.index));)"-"===i.charAt(d.index)?s.startTie={}:s=C(s),d.index++;r=d.index-1,c="broken_rhythm"}else if("sharp2"===c)s.accidental="quartersharp",c="pitch";else{if("flat2"!==c){if("Zduration"===c){var u=t.getNumber(i,r);return s.duration=u.num,s.endChar=u.index,s}return null}s.accidental="quarterflat",c="pitch"}break;case"-":if("startSlur"===c)e.addTieToLastNote(),s.endTie=!0;else{if("octave"!==c&&"duration"!==c&&"end_slur"!==c)return"broken_rhythm"===c?(s.endChar=r,s):null;if(s.startTie={},h||!a)return t.isWhiteSpace(i.charAt(r+1))&&C(s),s.endChar=r+1,s;c="broken_rhythm"}break;case" ":case"\t":if(!n(c))return null;s.end_beam=!0;do{"-"===i.charAt(r)&&(s.startTie={}),r++}while(r<i.length&&(t.isWhiteSpace(i.charAt(r))||"-"===i.charAt(r)));if(s.endChar=r,h||!a||"<"!==i.charAt(r)&&">"!==i.charAt(r))return s;r--,c="broken_rhythm";break;case">":case"<":if(!n(c))return null;if(!a)return s.endChar=r,s;var p=_(i,r);r+=p[0]-1,f.next_note_duration=p[2],s.duration=p[1]*s.duration,c="end_slur";break;default:return n(c)?(s.endChar=r,s):null}if(++r===i.length)return n(c)?(s.endChar=r,s):null}return null};function P(){var t={startChar:-1,endChar:-1};f.partForNextLine.title&&(t.part=f.partForNextLine),t.clef=f.currentVoice&&void 0!==f.staves[f.currentVoice.staffNum].clef?r.clone(f.staves[f.currentVoice.staffNum].clef):r.clone(f.clef);var i=f.currentVoice?f.currentVoice.scoreTranspose:0;if(t.key=n.standardKey(f.key.root+f.key.acc+f.key.mode,f.key.root,f.key.acc,i),t.key.mode=f.key.mode,f.key.impliedNaturals&&(t.key.impliedNaturals=f.key.impliedNaturals),f.key.explicitAccidentals)for(var s=0;s<f.key.explicitAccidentals.length;s++){for(var a=!1,c=0;c<t.key.accidentals.length;c++)t.key.accidentals[c].note===f.key.explicitAccidentals[s].note&&(t.key.accidentals[c].acc=f.key.explicitAccidentals[s].acc,a=!0);a||t.key.accidentals.push(f.key.explicitAccidentals[s])}if(f.targetKey=t.key,t.key.explicitAccidentals&&delete t.key.explicitAccidentals,n.addPosToKey(t.clef,t.key),null!==f.meter?(f.currentVoice?(r.each(f.staves,(function(e){e.meter=f.meter})),t.meter=f.staves[f.currentVoice.staffNum].meter,f.staves[f.currentVoice.staffNum].meter=null):t.meter=f.meter,f.meter=null):f.currentVoice&&f.staves[f.currentVoice.staffNum].meter&&(t.meter=f.staves[f.currentVoice.staffNum].meter,f.staves[f.currentVoice.staffNum].meter=null),f.currentVoice&&f.currentVoice.name&&(t.name=f.currentVoice.name),f.vocalfont&&(t.vocalfont=f.vocalfont),f.tripletfont&&(t.tripletfont=f.tripletfont),f.style&&(t.style=f.style),f.currentVoice){var o=f.staves[f.currentVoice.staffNum];o.brace&&(t.brace=o.brace),o.bracket&&(t.bracket=o.bracket),o.connectBarLines&&(t.connectBarLines=o.connectBarLines),o.name&&(t.name=o.name[f.currentVoice.index]),o.subname&&(t.subname=o.subname[f.currentVoice.index]),f.currentVoice.stem&&(t.stem=f.currentVoice.stem),f.currentVoice.stafflines&&(t.stafflines=f.currentVoice.stafflines),f.currentVoice.staffscale&&(t.staffscale=f.currentVoice.staffscale),f.currentVoice.scale&&(t.scale=f.currentVoice.scale),f.currentVoice.style&&(t.style=f.currentVoice.style),f.currentVoice.transpose&&(t.clef.transpose=f.currentVoice.transpose)}var h=void 0===f.currentVoice||0===f.currentVoice.staffNum&&0===f.currentVoice.index;0===f.barNumbers&&h&&1!==f.currBarNumber&&(t.barNumber=f.currBarNumber),e.startNewLine(t),f.key.impliedNaturals&&delete f.key.impliedNaturals,f.partForNextLine={}}var L=function(e,i){if("{"===e.charAt(i)){var r=t.getBrackettedSubstring(e,i,1,"}");r[2]||p("Missing the closing '}' while parsing grace note",e,i),")"===e[i+r[0]]&&(r[0]++,r[1]+=")");for(var s=[],a=0,n=!1;a<r[1].length;){var c=!1;"/"===r[1].charAt(a)&&(c=!0,a++);var o=B(r[1],a,{},!1);null!==o?(o.duration=o.duration/(8*f.default_length),c&&(o.acciaccatura=!0),s.push(o),n&&(o.endTie=!0,n=!1),o.startTie&&(n=!0),a=o.endChar,delete o.endChar):(" "===r[1].charAt(a)?s.length>0&&(s[s.length-1].end_beam=!0):p("Unknown character '"+r[1].charAt(a)+"' while parsing grace note",e,i),a++)}if(s.length)return[r[0],s]}return[0]};function H(e,t){if("&"===e.charAt(t)){for(var i=t;e.charAt(t)&&":"!==e.charAt(t)&&"|"!==e.charAt(t);)t++;return[t-i,e.substring(i+1,t)]}return[0]}function z(e){var t=e.origMeter;return t&&"specified"===t.type&&t.value&&0!==t.value.length?parseInt(t.value[0].num,10)/parseInt(t.value[0].den,10):1}var I=function i(s){var a=m.parseHeader(s);a.regular&&function(i){m.resolveTempo(),f.is_in_header=!1;for(var s=0,a=f.iChar;t.isWhiteSpace(i.charAt(s))&&s<i.length;)s++;if(s!==i.length&&"%"!==i.charAt(s)){var n=f.start_new_line;void 0===f.continueall?f.start_new_line=!0:f.start_new_line=!1;var c=0,o=m.letter_to_body_header(i,s);o[0]>0&&(s+=o[0],"V"===o[1]&&(n=!0));for(var h={},l=0;s<i.length;){var d=s;if("%"===i.charAt(s))break;var u=m.letter_to_inline_header(i,s);if(u[0]>0)s+=u[0],"V"===u[1]&&(n=!0);else{var v;for(n&&(P(),n=!1);;)if((v=t.eatWhiteSpace(i,s))>0&&(s+=v),s>0&&""===i.charAt(s-1)&&(v=m.letter_to_body_header(i,s))[0]>0&&("V"===v[1]&&P(),s=v[0],f.start_new_line=!1),(v=A(i,s))[0]>0&&(s+=v[0]),(v=g(i,s))[0]>0){h.chord||(h.chord=[]);var b=t.translateString(v[1]);b=b.replace(/;/g,"\n");for(var y=!1,w=0;w<h.chord.length;w++)h.chord[w].position===v[2]&&(y=!0,h.chord[w].name+="\n"+b);!1===y&&(null===v[2]&&v[3]?h.chord.push({name:b,rel_position:v[3]}):h.chord.push({name:b,position:v[2]})),s+=v[0];var x=t.skipWhiteSpace(i.substring(s));x>0&&(h.force_end_beam_last=!0),s+=x}else if((v=-1==="ABCDEFGabcdefgxyzZ[]|^_{".indexOf(i.charAt(s))?k(i,s):[0])[0]>0)null===v[1]?s+1<i.length&&P():v[1].length>0&&(0===v[1].indexOf("style=")?h.style=v[1].substr(6):(void 0===h.decoration&&(h.decoration=[]),h.decoration.push(v[1]))),s+=v[0];else{if(!((v=L(i,s))[0]>0))break;h.gracenotes=v[1],s+=v[0]}if((v=N(i,s))[0]>0){l=0,void 0!==h.gracenotes&&(h.rest={type:"spacer"},h.duration=.125,f.addFormattingOptions(h,e.formatting,"note"),e.appendElement("note",a+s,a+s+v[0],h),f.measureNotEmpty=!0,h={});var S={type:v[1]};if(0===S.type.length)p("Unknown bar type",i,s);else{if(f.inEnding&&"bar_thin"!==S.type&&(S.endEnding=!0,f.inEnding=!1),v[2]&&(S.startEnding=v[2],f.inEnding&&(S.endEnding=!0),f.inEnding=!0),void 0!==h.decoration&&(S.decoration=h.decoration),void 0!==h.chord&&(S.chord=h.chord),S.startEnding&&void 0===f.barFirstEndingNum?f.barFirstEndingNum=f.currBarNumber:S.startEnding&&S.endEnding&&f.barFirstEndingNum?f.currBarNumber=f.barFirstEndingNum:S.endEnding&&(f.barFirstEndingNum=void 0),"bar_invisible"!==S.type&&f.measureNotEmpty)(void 0===f.currentVoice||0===f.currentVoice.staffNum&&0===f.currentVoice.index)&&(f.currBarNumber++,f.barNumbers&&f.currBarNumber%f.barNumbers==0&&(S.barNumber=f.currBarNumber));f.addFormattingOptions(h,e.formatting,"bar"),e.appendElement("bar",a+s,a+s+v[0],S),f.measureNotEmpty=!1,h={}}s+=v[0];f.currentVoice&&(f.currentVoice.staffNum,f.currentVoice.index)}else if("&"===i[s])(v=H(i,s))[0]>0&&(e.appendElement("overlay",a,a+1,{}),s+=1,l++);else{if((v=T(i,s)).consumed>0&&(void 0!==v.startSlur&&(h.startSlur=v.startSlur),void 0!==v.triplet&&(c>0?p("Can't nest triplets",i,s):(h.startTriplet=v.triplet,h.tripletMultiplier=v.tripletQ/v.triplet,c=void 0===v.num_notes?v.triplet:v.num_notes)),s+=v.consumed),"["===i.charAt(s)){var E=s;s++;for(var M=null,I=!1,D=!1;!D;){var O=k(i,s);O[0]>0&&(s+=O[0]);var Y=B(i,s,{},!1);if(null!==Y)O[0]>0&&0!==O[1].indexOf("style=")&&(void 0===h.decoration&&(h.decoration=[]),h.decoration.push(O[1])),Y.end_beam&&(h.end_beam=!0,delete Y.end_beam),void 0===h.pitches?(h.duration=Y.duration,h.pitches=[Y]):h.pitches.push(Y),delete Y.duration,O[0]>0&&0===O[1].indexOf("style=")&&(h.pitches[h.pitches.length-1].style=O[1].substr(6)),f.inTieChord[h.pitches.length]&&(Y.endTie=!0,f.inTieChord[h.pitches.length]=void 0),Y.startTie&&(f.inTieChord[h.pitches.length]=!0),s=Y.endChar,delete Y.endChar;else if(" "===i.charAt(s))p("Spaces are not allowed in chords",i,s),s++;else{if(s<i.length&&"]"===i.charAt(s)){s++,0!==f.next_note_duration&&(h.duration=h.duration*f.next_note_duration,f.next_note_duration=0),f.inTie[l]&&(r.each(h.pitches,(function(e){e.endTie=!0})),f.inTie[l]=!1),c>0&&0===--c&&(h.endTriplet=!0);for(var V=!1;s<i.length&&!V;){switch(i.charAt(s)){case" ":case"\t":C(h);break;case")":void 0===h.endSlur?h.endSlur=1:h.endSlur++;break;case"-":r.each(h.pitches,(function(e){e.startTie={}})),f.inTie[l]=!0;break;case">":case"<":var F=_(i,s);s+=F[0]-1,f.next_note_duration=F[2],M?M*=F[1]:M=F[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var W=t.getFraction(i,s);M=W.value,s=W.index," "===i.charAt(s)&&(I=!0),"-"===i.charAt(s)||")"===i.charAt(s)||" "===i.charAt(s)||"<"===i.charAt(s)||">"===i.charAt(s)?s--:V=!0;break;default:V=!0}V||s++}}else p("Expected ']' to end the chords",i,s);void 0!==h.pitches&&(null!==M&&(h.duration=h.duration*M,I&&C(h)),f.addFormattingOptions(h,e.formatting,"note"),e.appendElement("note",a+E,a+s,h),f.measureNotEmpty=!0,h={}),D=!0}}}else{var G={},R=B(i,s,G,!0);void 0!==G.endTie&&(f.inTie[l]=!0),null!==R&&(void 0!==R.pitch?(h.pitches=[{}],void 0!==R.accidental&&(h.pitches[0].accidental=R.accidental),h.pitches[0].pitch=R.pitch,R.midipitch&&(h.pitches[0].midipitch=R.midipitch),void 0!==R.endSlur&&(h.pitches[0].endSlur=R.endSlur),void 0!==R.endTie&&(h.pitches[0].endTie=R.endTie),void 0!==R.startSlur&&(h.pitches[0].startSlur=R.startSlur),void 0!==h.startSlur&&(h.pitches[0].startSlur=h.startSlur),void 0!==R.startTie&&(h.pitches[0].startTie=R.startTie),void 0!==h.startTie&&(h.pitches[0].startTie=h.startTie)):(h.rest=R.rest,void 0!==R.endSlur&&(h.endSlur=R.endSlur),void 0!==R.endTie&&(h.rest.endTie=R.endTie),void 0!==R.startSlur&&(h.startSlur=R.startSlur),void 0!==R.startTie&&(h.rest.startTie=R.startTie),void 0!==h.startTie&&(h.rest.startTie=h.startTie)),void 0!==R.chord&&(h.chord=R.chord),void 0!==R.duration&&(h.duration=R.duration),void 0!==R.decoration&&(h.decoration=R.decoration),void 0!==R.graceNotes&&(h.graceNotes=R.graceNotes),delete h.startSlur,f.inTie[l]&&(void 0!==h.pitches?(h.pitches[0].endTie=!0,f.inTie[l]=!1):"spacer"!==h.rest.type&&(h.rest.endTie=!0,f.inTie[l]=!1)),(R.startTie||h.startTie)&&(f.inTie[l]=!0),s=R.endChar,c>0&&0===--c&&(h.endTriplet=!0),R.end_beam&&C(h),h.rest&&"rest"===h.rest.type&&1===h.duration&&z(f)<=1&&(h.rest.type="whole",h.duration=z(f)),f.addFormattingOptions(h,e.formatting,"note"),e.appendElement("note",a+d,a+s,h),f.measureNotEmpty=!0,h={})}s===d&&(" "!==i.charAt(s)&&"`"!==i.charAt(s)&&p("Unknown character ignored",i,s),s++)}}}}}(a.str),a.newline&&P(),a.words&&function(e,i){if(e){"-"!==(i=r.strip(i)).charAt(i.length-1)&&(i+=" ");for(var s=[],a=0,n=!1,c=function(e){var c=r.strip(i.substring(a,e));if(a=e+1,c.length>0){n&&(c=r.gsub(c,"~"," "));var o=i.charAt(e);return"_"!==o&&"-"!==o&&(o=" "),s.push({syllable:t.translateString(c),divider:o}),n=!1,!0}return!1},o=0;o<i.length;o++)switch(i.charAt(o)){case" ":case"":c(o);break;case"-":!c(o)&&s.length>0&&(r.last(s).divider="-",s.push({skip:!0,to:"next"}));break;case"_":c(o),s.push({skip:!0,to:"slur"});break;case"*":c(o),s.push({skip:!0,to:"next"});break;case"|":c(o),s.push({skip:!0,to:"bar"});break;case"~":n=!0}r.each(e,(function(e){if(0!==s.length)if(s[0].skip){switch(s[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&s.shift();break;case"bar":"bar"===e.el_type&&s.shift()}"bar"!==e.el_type&&(void 0===e.lyric?e.lyric=[{syllable:"",divider:" "}]:e.lyric.push({syllable:"",divider:" "}))}else if("note"===e.el_type&&void 0===e.rest){var t=s.shift();t.syllable&&(t.syllable=t.syllable.replace(/ +/g," ")),void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}))}else p("Can't add words before the first line of music",e,0)}(e.getCurrentVoice(),s.substring(2)),a.symbols&&function(e,i){if(e){"-"!==(i=r.strip(i)).charAt(i.length-1)&&(i+=" ");for(var s=[],a=0,n=!1,c=function(e){var c=r.strip(i.substring(a,e));if(a=e+1,c.length>0){n&&(c=r.gsub(c,"~"," "));var o=i.charAt(e);return"_"!==o&&"-"!==o&&(o=" "),s.push({syllable:t.translateString(c),divider:o}),n=!1,!0}return!1},o=0;o<i.length;o++)switch(i.charAt(o)){case" ":case"":c(o);break;case"-":!c(o)&&s.length>0&&(r.last(s).divider="-",s.push({skip:!0,to:"next"}));break;case"_":c(o),s.push({skip:!0,to:"slur"});break;case"*":c(o),s.push({skip:!0,to:"next"});break;case"|":c(o),s.push({skip:!0,to:"bar"});break;case"~":n=!0}r.each(e,(function(e){if(0!==s.length)if(s[0].skip)switch(s[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&s.shift();break;case"bar":"bar"===e.el_type&&s.shift()}else if("note"===e.el_type&&void 0===e.rest){var t=s.shift();void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}))}else p("Can't add symbols before the first line of music",e,0)}(e.getCurrentVoice(),s.substring(2)),a.recurse&&i(a.str)};function D(e,t){e.push({el_type:"hint"});for(var i=0;i<t.length;i++){var s=t[i],a=r.clone(s);if(e.push(a),"bar"===s.el_type)return}}function O(e,t){for(var i=0;i<e.length;i++){var r=e[i],s=t[i];if(s)for(var a=0;a<s.voices.length;a++){var n=s.voices[a],c=r.voices[a];c&&D(c,n)}}}this.parse=function(i,a,n){if(a||(a={}),n||(n=0),e.reset(),a.print&&(e.media="print"),f.reset(),f.iChar=n,a.visualTranspose?(f.globalTranspose=parseInt(a.visualTranspose),0===f.globalTranspose&&(f.globalTranspose=void 0)):f.globalTranspose=void 0,a.lineBreaks){f.lineBreaks={};for(var c=0;c<a.lineBreaks.length;c++)f.lineBreaks[""+(a.lineBreaks[c]+1)]=!0}m.reset(t,p,f,e),i=r.gsub(i,"\r\n","\n"),i=r.gsub(i,"\r","\n");var o=(i=(i=(i+="\n").replace(/\n\\.*\n/g,"\n")).replace(/\\([ \t]*)(%.*)*\n/g,(function(e,t,i){return t+" "+(i?"                                                                                                                                                                                                     ".substring(0,i.length):"")}))).split("\n");0===r.last(o).length&&o.pop();try{a.format&&s.globalFormatting(a.format),r.each(o,(function(i){if(a.header_only&&!1===f.is_in_header)throw"normal_abort";if(a.stop_on_warning&&f.warnings)throw"normal_abort";f.is_in_history?":"===i.charAt(1)?(f.is_in_history=!1,I(i)):e.addMetaText("history",t.translateString(t.stripComment(i))):f.inTextBlock?r.startsWith(i,"%%endtext")?(e.addText(f.textBlock),f.inTextBlock=!1):r.startsWith(i,"%%")?f.textBlock+=" "+i.substring(2):f.textBlock+=" "+i:f.inPsBlock?r.startsWith(i,"%%endps")?f.inPsBlock=!1:f.textBlock+=" "+i:I(i),f.iChar+=i.length+1}));var l=792,d=612;switch(f.papersize){case"legal":l=1008,d=612;break;case"A4":l=842.4,d=597.6}if(f.landscape){var u=l;l=d,d=u}f.openSlurs=e.cleanUp(d,l,f.barsperstaff,f.staffnonote,f.openSlurs)}catch(e){if("normal_abort"!==e)throw e}a.hint_measures&&function(){for(var t=0;t<e.lines.length;t++){var i=e.lines[t].staff;if(i){for(var r=t+1;r<e.lines.length&&void 0===e.lines[r].staff;)r++;if(r<e.lines.length)O(i,e.lines[r].staff)}}}(),h.wrapLines(e,f.lineBreaks)}}},function(e,t){var i={},r={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},s=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],a=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];i.keySignature=function(e,t,i,n,c,o){o||(o=0),e.localTransposeVerticalMovement=0,e.localTransposePreferFlats=!1;var h=t[i];if(!h)return e.key;if(e.localTranspose=(e.globalTranspose?e.globalTranspose:0)+o,!e.localTranspose)return{accidentals:h,root:n,acc:c};if(e.globalTransposeOrigKeySig=h,e.localTranspose%12==0)return e.localTransposeVerticalMovement=e.localTranspose/12*7,{accidentals:h,root:n,acc:c};var l=i[0];"b"===i[1]||"#"===i[1]?(l+=i[1],i=i.substr(2)):i=i.substr(1);for(var d=r[l]+e.localTranspose;d<0;)d+=12;d>11&&(d%=12);var f="m"===i[0]?a[d]:s[d],u=f+i,p=t[u];p.length>0&&"flat"===p[0].acc&&(e.localTransposePreferFlats=!0);var m=u.charCodeAt(0)-l.charCodeAt(0);return e.localTranspose>0?m<0?m+=7:0===m&&("#"!==l[1]&&"b"!==u[1]||(m+=7)):e.localTranspose<0&&(m>0?m-=7:0===m&&("b"!==l[1]&&"#"!==u[1]||(m-=7))),e.localTranspose>0?e.localTransposeVerticalMovement=m+7*Math.floor(e.localTranspose/12):e.localTransposeVerticalMovement=m+7*Math.ceil(e.localTranspose/12),{accidentals:p,root:f[0],acc:f.length>1?f[1]:""}};var n=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],c=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"],o=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],h=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];i.chordName=function(e,t){if(e.localTranspose&&e.localTranspose%12!=0){for(var i=e.localTranspose;i<0;)i+=12;i>11&&(i%=12);for(var r=(t=(t=(t=(t=(t=(t=(t=(t=e.freegchord?(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/Cb/g,"`~11`")).replace(/Db/g,"`~1`")).replace(/Eb/g,"`~3`")).replace(/Fb/g,"`~4`")).replace(/Gb/g,"`~6`")).replace(/Ab/g,"`~8`")).replace(/Bb/g,"`~10`")).replace(/C#/g,"`~1`")).replace(/D#/g,"`~3`")).replace(/E#/g,"`~5`")).replace(/F#/g,"`~6`")).replace(/G#/g,"`~8`")).replace(/A#/g,"`~10`")).replace(/B#/g,"`~0`"):(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/C♭/g,"`~11`")).replace(/D♭/g,"`~1`")).replace(/E♭/g,"`~3`")).replace(/F♭/g,"`~4`")).replace(/G♭/g,"`~6`")).replace(/A♭/g,"`~8`")).replace(/B♭/g,"`~10`")).replace(/C♯/g,"`~1`")).replace(/D♯/g,"`~3`")).replace(/E♯/g,"`~5`")).replace(/F♯/g,"`~6`")).replace(/G♯/g,"`~8`")).replace(/A♯/g,"`~10`")).replace(/B♯/g,"`~0`")).replace(/C/g,"`~0`")).replace(/D/g,"`~2`")).replace(/E/g,"`~4`")).replace(/F/g,"`~5`")).replace(/G/g,"`~7`")).replace(/A/g,"`~9`")).replace(/B/g,"`~11`")).split("`"),s=0;s<r.length;s++)if("~"===r[s][0]){var a=parseInt(r[s].substr(1),10);(a+=i)>11&&(a-=12),e.freegchord?r[s]=e.localTransposePreferFlats?h[a]:o[a]:r[s]=e.localTransposePreferFlats?c[a]:n[a]}t=r.join("")}return t};var l=["c","d","e","f","g","a","b"];var d={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},f={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"};i.note=function(e,t){if(e.localTranspose){var i=t.pitch;if(t.pitch=t.pitch+e.localTransposeVerticalMovement,t.accidental){var r=function(e,t,i,r,s){for(var a=l[(e+49)%7],n=0,c=0;c<r.length;c++)r[c].note.toLowerCase()===a&&(n=d[r[c].acc]);for(var o=d[i]-n,h=l[(t+49)%7],f=0,u=0;u<s.accidentals.length;u++)s.accidentals[u].note.toLowerCase()===h&&(f=d[s.accidentals[u].acc]);var p=o+f;return p<-2&&(t--,p+="c"===h||"f"===h?1:2),p>2&&(t++,p-="b"===h||"e"===h?1:2),[t,p]}(i,t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey);t.pitch=r[0],t.accidental=f[r[1]]}}},e.exports=i},function(e,t){var i=function(e){this.anchor1=e.anchor1,this.anchor2=e.anchor2,e.isGrace&&(this.isGrace=!0),e.fixedY&&(this.fixedY=!0),e.stemDir&&(this.stemDir=e.stemDir),void 0!==e.voiceNumber&&(this.voiceNumber=e.voiceNumber),this.internalNotes=[]};i.prototype.addInternalNote=function(e){this.internalNotes.push(e)},i.prototype.setEndAnchor=function(e){this.anchor2=e},i.prototype.setStartX=function(e){this.startLimitX=e},i.prototype.setEndX=function(e){this.endLimitX=e},i.prototype.setHint=function(){this.hint=!0},i.prototype.setUpperAndLowerElements=function(e){},i.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e;e=this.anchor1?this.anchor1.pitch:this.anchor2?this.anchor2.pitch:14,this.anchor1&&"down"===this.anchor1.stemDir&&this.anchor2&&"down"===this.anchor2.stemDir?this.above=!0:this.anchor1&&"up"===this.anchor1.stemDir&&this.anchor2&&"up"===this.anchor2.stemDir?this.above=!1:this.anchor1&&this.anchor2?this.above=e>=6:this.anchor1?this.above="down"===this.anchor1.stemDir:this.anchor2?this.above="down"===this.anchor2.stemDir:this.above=e>=6}},i.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e=!1;this.anchor1&&"down"===this.anchor1.stemDir&&(e=!0),this.anchor2&&"down"===this.anchor2.stemDir&&(e=!0);for(var t=0;t<this.internalNotes.length;t++){"down"===this.internalNotes[t].stemDir&&(e=!0)}this.above=e}},i.prototype.calcX=function(e,t){this.anchor1?(this.startX=this.anchor1.x,this.anchor1.scalex<1&&(this.startX-=3)):this.startLimitX?this.startX=this.startLimitX.x+this.startLimitX.w:this.startX=e,this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=t},i.prototype.calcTieY=function(){this.anchor1?this.startY=this.anchor1.pitch:this.anchor2?this.startY=this.anchor2.pitch:this.startY=this.above?14:0,this.anchor2?this.endY=this.anchor2.pitch:this.anchor1?this.endY=this.anchor1.pitch:this.endY=this.above?14:0},i.prototype.calcSlurY=function(){if(this.anchor1&&this.anchor2){this.above&&"up"===this.anchor1.stemDir&&!this.fixedY?(this.startY=(this.anchor1.highestVert+this.anchor1.pitch)/2,this.startX+=this.anchor1.w/2):this.startY=this.anchor1.pitch;var e=this.anchor2.parent.beam&&this.anchor2.parent.beam.stemsUp&&this.anchor2.parent.beam.elems[0]!==this.anchor2.parent,t=(this.anchor2.highestVert+this.anchor2.pitch)/2;this.above&&"up"===this.anchor2.stemDir&&!this.fixedY&&!e&&t<this.startY?(this.endY=t,this.endX+=this.anchor2.w/2):this.endY=this.above&&e?this.anchor2.highestVert:this.anchor2.pitch}else this.anchor1?this.startY=this.endY=this.anchor1.pitch:this.anchor2?this.startY=this.endY=this.anchor2.pitch:(this.startY=this.above?14:0,this.endY=this.above?14:0)},i.prototype.avoidCollisionAbove=function(){if(this.above){for(var e=-50,t=0;t<this.internalNotes.length;t++)this.internalNotes[t].highestVert>e&&(e=this.internalNotes[t].highestVert);e>this.startY&&e>this.endY&&(this.startY=this.endY=e-1)}},i.prototype.layout=function(e,t){this.anchor1&&this.anchor2?this.anchor1.pitch===this.anchor2.pitch&&0===this.internalNotes.length?this.isTie=!0:this.isTie=!1:this.isTie=!0,this.isTie?(this.calcTieDirection(),this.calcX(e,t),this.calcTieY()):(this.calcSlurDirection(),this.calcX(e,t),this.calcSlurY()),this.avoidCollisionAbove()},i.prototype.draw=function(e,t,i){var r;this.layout(t,i),this.hint&&(r="abcjs-hint");var s=this.fixedY?1.5:0;e.drawArc(this.startX,this.endX,this.startY+s,this.endY+s,this.above,r,this.isTie)},e.exports=i},function(e,t,i){i(12);var r={plugin:i(13)};window.ABCJS=r},function(e,t){},function(e,t,i){"use strict";var r=i(14).TuneBook,s=i(8),a=i(19),n=new function(){var e=!1;try{e=abcjs_is_user_script}catch(e){}this.show_midi=!e,this.hide_abc=!1,this.render_before=!1,this.midi_options={},this.render_options={},this.render_classname="abcrendered",this.text_classname="abctext",this.auto_render_threshold=20,this.show_text="show score for: ",this.debug=!1};n.start=function(){var e=window.document.body;this.errors="";var t=this.getABCContainingElements(e);if(0!==t.length){if(this.debug)for(var i=0;i<t.length;i++){var r="Possible ABC found ("+(i+1)+" of "+t.length+"):\n\n"+t[i].innerText;alert(r)}var s=t.map(this.convertToDivs,this).reduce((function(e,t){return e.concat(t)}));this.auto_render=s.length<=this.auto_render_threshold,s.forEach((function(e){this.render(e,e.abctext_)}),this)}},n.getABCContainingElements=function(e){for(var t,i=[],r=!1,s=0,a=e.childNodes.length;s<a;++s)3!==(t=e.childNodes[s]).nodeType||r?1===t.nodeType&&"TEXTAREA"!==t.tagName&&(i=i.concat(this.getABCContainingElements(t))):t.nodeValue.match(/^\s*X:/m)&&"TEXTAREA"!==t.parentNode.tagName&&(i.push(e),r=!0);return i},n.convertToDivs=function(e){for(var t,i="",r=null,s=!1,a=[],n=Array.prototype.slice.call(e.childNodes),c=0,o=n.length;c<o;++c)if(3!==(t=n[c]).nodeType||t.nodeValue.match(/^\s*$/))s&&"BR"===t.tagName?(i+="\n",r.appendChild(t)):s&&1===t.nodeType?(i+="\n",r.appendChild(t)):s&&(s=!1,0,i=i.replace(/\n+/,"\n"),r.abctext_=i,a.push(r));else{0;var h=t.nodeValue;h.match(/^\s*X:/m)&&(s=!0,i="",(r=document.createElement("DIV")).className=this.text_classname,t.parentElement.insertBefore(r,t),this.hide_abc&&(r.style.display="none")),s&&(i+=h.replace(/^\n+/,""),r.appendChild(t))}return s&&(i=i.replace(/\n+$/,"\n").replace(/^\n+/,"\n"),r.abctext_=i,a.push(r)),a},n.render=function(e,t){var i=document.createElement("DIV");i.className=this.render_classname,this.render_before?e.parentElement.insertBefore(i,e):e.nextSibling?e.parentElement.insertBefore(i,e.nextSibling):e.parentElement.appendChild(i);var n=this;try{this.debug&&alert("About to render:\n\n"+t);var c=new r(t),o=new s;o.parse(c.tunes[0].abc);var h=o.getTune(),l=function(){try{var t=new a(i,n.render_options);t.engraveABC(h)}catch(r){i.remove(),(i=document.createElement("DIV")).className=n.render_classname,(t=new a(i)).engraveABC(h),n.render_before?e.parentElement.insertBefore(i,e):e.nextSibling?e.parentElement.insertBefore(i,e.nextSibling):e.parentElement.appendChild(i)}},d=document.createElement("A");d.className="abcshow",d.href="#",d.innerHTML=this.show_text+(h.metaText.title||"untitled"),this.auto_render?l():(d.onclick=function(){return l(),d.remove(),!1},i.parentElement.insertBefore(d,i))}catch(e){this.errors+=e}};var c=!0;"undefined"!=typeof abcjs_plugin_autostart&&(c=abcjs_plugin_autostart),c&&"undefined"!=typeof window&&void 0!==window.document&&("loading"!==window.document.readyState?n.start():document.addEventListener("DOMContentLoaded",(function(){n.start()}))),e.exports=n},function(e,t,i){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=i(0),a=i(8),n={};!function(){"use strict";n.numberOfTunes=function(e){var t=e.split("\nX:").length;return 0===t&&(t=1),t};var e=n.TuneBook=function(e){for(var t=this,i="",r=(e=s.strip(e)).split("\nX:"),a=1;a<r.length;a++)r[a]="X:"+r[a];var n=0;if(t.tunes=[],s.each(r,(function(e){t.tunes.push({abc:e,startPos:n}),n+=e.length+1})),t.tunes.length>1&&!s.startsWith(t.tunes[0].abc,"X:")){var c=t.tunes.shift().abc.split("\n");s.each(c,(function(e){s.startsWith(e,"%%")&&(i+=e+"\n")}))}t.header=i,s.each(t.tunes,(function(e){var t=e.abc.indexOf("\n\n");t>0&&(e.abc=e.abc.substring(0,t)),e.pure=e.abc,e.abc=i+e.abc;var r=e.pure.split("T:");r.length>1?(r=r[1].split("\n"),e.title=r[0].replace(/^\s+|\s+$/g,"")):e.title="";var s=e.pure.substring(2,e.pure.indexOf("\n"));e.id=s.replace(/^\s+|\s+$/g,"")}))};e.prototype.getTuneById=function(e){for(var t=0;t<this.tunes.length;t++)if(this.tunes[t].id===e)return this.tunes[t];return null},e.prototype.getTuneByTitle=function(e){for(var t=0;t<this.tunes.length;t++)if(this.tunes[t].title===e)return this.tunes[t];return null},n.parseOnly=function(e,t){for(var i=n.numberOfTunes(e),r=[],s=0;s<i;s++)r.push(1);return n.renderEngine((function(){}),r,e,t)},n.renderEngine=function(t,i,s,n){var c=[];if(void 0!==i&&void 0!==s){var o;(!(o=i)||o.propertyIsEnumerable("length")||"object"!==r(o)||"number"!=typeof o.length)&&(i=[i]),void 0===n&&(n={});for(var h=n.startingTune?parseInt(n.startingTune,10):0,l=new e(s),d=new a,f=0;f<i.length;f++){var u=i[f];if("string"==typeof u&&(u=document.getElementById(u)),u)if(h>=0&&h<l.tunes.length){d.parse(l.tunes[h].abc,n,l.tunes[h].startPos-l.header.length);var p=d.getTune(),m=t(u,p,f,l.tunes[h].abc);c.push(m||p)}else u.hasOwnProperty("innerHTML")&&(u.innerHTML="");h++}return c}},n.extractMeasures=function(t){for(var i=[],r=new e(t),s=0;s<r.tunes.length;s++){for(var a=r.tunes[s],c=a.abc.split("K:"),o=c[1].split("\n"),h=c[0]+"K:"+o[0]+"\n",l=null,d=null,f=null,u=[],p=!1,m=n.parseOnly(a.abc)[0],g=m.getPickupLength()>0,v=0;v<m.lines.length;v++){var b=m.lines[v];if(b.staff)for(var y=0;y<1;y++)for(var w=b.staff[y],x=0;x<1;x++)for(var k=w.voices[x],A=0;A<k.length;A++){var N=k[A];if(null===f&&N.startChar>=0&&(f=N.startChar,d=void 0===N.chord?l:null),N.chord&&(l=N),"bar"===N.el_type){if(p){var S={abc:a.abc.substring(f,N.endChar)};(l=d&&d.chord&&d.chord.length>0?d.chord[0].name:null)&&(S.lastChord=l),N.startEnding&&(S.startEnding=N.startEnding),N.endEnding&&(S.endEnding=N.endEnding),u.push(S),f=null,p=!1}}else"note"===N.el_type&&(p=!0)}}i.push({header:h,measures:u,hasPickup:g})}return i}}(),e.exports=n},function(e,t,i){var r=i(0),s=i(6),a=i(7);e.exports=function(e,t,i,n){this.reset=function(e,t,i,r){a.initialize(e,t,i,r),s.initialize(e,t,i,r)},this.reset(e,t,i,n),this.setTitle=function(t){if(i.hasMainTitle)n.addSubtitle(e.translateString(e.stripComment(t)));else{var r=e.translateString(e.theReverser(e.stripComment(t)));i.titlecaps&&(r=r.toUpperCase()),n.addMetaText("title",r),i.hasMainTitle=!0}},this.setMeter=function(r){if("C"===(r=e.stripComment(r)))return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"common_time"};if("C|"===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"cut_time"};if("o"===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===r.length||"none"===r.toLowerCase())return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),null;var s=e.tokenize(r,0,r.length);try{var a=function(){var e=function(){var e={value:0,num:""},t=s.shift();for("("===t.token&&(t=s.shift());;){if("number"!==t.type)throw"Expected top number of meter";if(e.value+=parseInt(t.token),e.num+=t.token,0===s.length||"/"===s[0].token)return e;if(")"===(t=s.shift()).token){if(0===s.length||"/"===s[0].token)return e;throw"Unexpected paren in meter"}if("."!==t.token&&"+"!==t.token)throw"Expected top number of meter";if(e.num+=t.token,0===s.length)throw"Expected top number of meter";t=s.shift()}return e}();if(0===s.length)return e;var t=s.shift();if("/"!==t.token)throw"Expected slash in meter";if("number"!==(t=s.shift()).type)throw"Expected bottom number of meter";return e.den=t.token,e.value=e.value/parseInt(e.den),e};if(0===s.length)throw"Expected meter definition in M: line";for(var n={type:"specified",value:[]},c=0;;){var o=a();c+=o.value;var h={num:o.num};if(void 0!==o.den&&(h.den=o.den),n.value.push(h),0===s.length)break}return!0===i.havent_set_length&&(i.default_length=c<.75?.0625:.125,i.havent_set_length=!1),n}catch(e){t(e,r,0)}return null},this.calcTempo=function(e){var t=.25;i.meter&&"specified"===i.meter.type?t=1/parseInt(i.meter.value[0].den):i.origMeter&&"specified"===i.origMeter.type&&(t=1/parseInt(i.origMeter.value[0].den));for(var r=0;r<e.duration;r++)e.duration[r]=t*e.duration[r];return e},this.resolveTempo=function(){i.tempo&&(this.calcTempo(i.tempo),n.metaText.tempo=i.tempo,delete i.tempo)},this.addUserDefinition=function(e,s,a){var n=e.indexOf("=",s);if(-1!==n){var c=r.strip(e.substring(s,n)),o=r.strip(e.substring(n+1));if(1===c.length){-1!=="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(c)?0!==o.length?(void 0===i.macros&&(i.macros={}),i.macros[c]=o):t("Missing macro definition",e,s):t("Macro definitions must be H-Y, h-w, or tilde",e,s)}else t("Macro definitions can only be one character",e,s)}else t("Need an = in a macro definition",e,s)},this.setDefaultLength=function(e,t,s){var a=r.gsub(e.substring(t,s)," ","").split("/");if(2===a.length){var n=parseInt(a[0]),c=parseInt(a[1]);c>0&&(i.default_length=n/c,i.havent_set_length=!1)}else 1===a.length&&"1"===a[0]&&(i.default_length=1,i.havent_set_length=!1)};var c={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(r,s,a){try{var n=e.tokenize(r,s,a);if(0===n.length)throw"Missing parameter in Q: field";var o={},h=!0,l=n.shift();if("quote"===l.type&&(o.preString=l.token,l=n.shift(),0===n.length))return c[o.preString.toLowerCase()]&&(o.bpm=c[o.preString.toLowerCase()],o.suppressBpm=!0),{type:"immediate",tempo:o};if("alpha"===l.type&&"C"===l.token){if(0===n.length)throw"Missing tempo after C in Q: field";if("punct"===(l=n.shift()).type&&"="===l.token){if(0===n.length)throw"Missing tempo after = in Q: field";if("number"!==(l=n.shift()).type)throw"Expected number after = in Q: field";o.duration=[1],o.bpm=parseInt(l.token)}else{if("number"!==l.type)throw"Expected number or equal after C in Q: field";if(o.duration=[parseInt(l.token)],0===n.length)throw"Missing = after duration in Q: field";if("punct"!==(l=n.shift()).type||"="!==l.token)throw"Expected = after duration in Q: field";if(0===n.length)throw"Missing tempo after = in Q: field";if("number"!==(l=n.shift()).type)throw"Expected number after = in Q: field";o.bpm=parseInt(l.token)}}else{if("number"!==l.type)throw"Unknown value in Q: field";var d=parseInt(l.token);if(0===n.length||"quote"===n[0].type)o.duration=[1],o.bpm=d;else{if(h=!1,"punct"!==(l=n.shift()).type&&"/"!==l.token)throw"Expected fraction in Q: field";if("number"!==(l=n.shift()).type)throw"Expected fraction in Q: field";var f=parseInt(l.token);for(o.duration=[d/f];n.length>0&&"="!==n[0].token&&"quote"!==n[0].type;){if("number"!==(l=n.shift()).type)throw"Expected fraction in Q: field";if(d=parseInt(l.token),"punct"!==(l=n.shift()).type&&"/"!==l.token)throw"Expected fraction in Q: field";if("number"!==(l=n.shift()).type)throw"Expected fraction in Q: field";f=parseInt(l.token),o.duration.push(d/f)}if("punct"!==(l=n.shift()).type&&"="!==l.token)throw"Expected = in Q: field";if("number"!==(l=n.shift()).type)throw"Expected tempo in Q: field";o.bpm=parseInt(l.token)}}if(0!==n.length&&("quote"===(l=n.shift()).type&&(o.postString=l.token,l=n.shift()),0!==n.length))throw"Unexpected string at end of Q: field";return!1===i.printTempo&&(o.suppress=!0),{type:h?"delaySet":"immediate",tempo:o}}catch(e){return t(e,r,s),{type:"none"}}},this.letter_to_inline_header=function(r,c){var o=e.eatWhiteSpace(r,c);if(c+=o,r.length>=c+5&&"["===r.charAt(c)&&":"===r.charAt(c+2)){var h=r.indexOf("]",c),l=i.iChar+c,d=i.iChar+h+1;switch(r.substring(c,c+3)){case"[I:":var f=s.addDirective(r.substring(c+3,h));return f&&t(f,r,c),[h-c+1+o];case"[M:":var u=this.setMeter(r.substring(c+3,h));return n.hasBeginMusic()&&u?n.appendStartingElement("meter",l,d,u):i.meter=u,[h-c+1+o];case"[K:":var p=a.parseKey(r.substring(c+3,h));return p.foundClef&&n.hasBeginMusic()&&n.appendStartingElement("clef",l,d,i.clef),p.foundKey&&n.hasBeginMusic()&&n.appendStartingElement("key",l,d,a.fixKey(i.clef,i.key)),[h-c+1+o];case"[P:":return n.lines.length<=n.lineNum?i.partForNextLine={title:r.substring(c+3,h),startChar:l,endChar:d}:n.appendElement("part",l,d,{title:r.substring(c+3,h)}),[h-c+1+o];case"[L:":return this.setDefaultLength(r,c+3,h),[h-c+1+o];case"[Q:":if(h>0){var m=this.setTempo(r,c+3,h);return"delaySet"===m.type?n.appendElement("tempo",l,d,this.calcTempo(m.tempo)):"immediate"===m.type&&n.appendElement("tempo",l,d,m.tempo),[h-c+1+o,r.charAt(c+1),r.substring(c+3,h)]}break;case"[V:":if(h>0)return a.parseVoice(r,c+3,h),[h-c+1+o,r.charAt(c+1),r.substring(c+3,h)]}}return[0]},this.letter_to_body_header=function(e,c){if(e.length>=c+3)switch(e.substring(c,c+2)){case"I:":var o=s.addDirective(e.substring(c+2));return o&&t(o,e,c),[e.length];case"M:":var h=this.setMeter(e.substring(c+2));return n.hasBeginMusic()&&h&&n.appendStartingElement("meter",i.iChar+c,i.iChar+e.length,h),[e.length];case"K:":var l=a.parseKey(e.substring(c+2));return l.foundClef&&n.hasBeginMusic()&&n.appendStartingElement("clef",i.iChar+c,i.iChar+e.length,i.clef),l.foundKey&&n.hasBeginMusic()&&n.appendStartingElement("key",i.iChar+c,i.iChar+e.length,a.fixKey(i.clef,i.key)),[e.length];case"P:":return n.hasBeginMusic()&&n.appendElement("part",i.iChar+c,i.iChar+e.length,{title:e.substring(c+2)}),[e.length];case"L:":return this.setDefaultLength(e,c+2,e.length),[e.length];case"Q:":var d=e.indexOf("",c+2);-1===d&&(d=e.length);var f=this.setTempo(e,c+2,d);return"delaySet"===f.type?n.appendElement("tempo",i.iChar+c,i.iChar+e.length,this.calcTempo(f.tempo)):"immediate"===f.type&&n.appendElement("tempo",i.iChar+c,i.iChar+e.length,f.tempo),[d,e.charAt(c),r.strip(e.substring(c+2))];case"V:":return a.parseVoice(e,c+2,e.length),[e.length,e.charAt(c),r.strip(e.substring(c+2))]}return[0]};var o={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(c){if(r.startsWith(c,"%%")){var h=s.addDirective(c.substring(2));return h&&t(h,c,2),{}}var l=c.indexOf("%");if(l>=0&&(c=c.substring(0,l)),0===(c=c.replace(/\s+$/,"")).length)return{};if(c.length>=2&&":"===c.charAt(1)){var d="";c.indexOf("")>=0&&"w"!==c.charAt(0)&&(d=c.substring(c.indexOf("")+1),c=c.substring(0,c.indexOf("")));var f=o[c.charAt(0)];if(void 0!==f)return"unalignedWords"===f?n.addMetaTextArray(f,s.parseFontChangeLine(e.translateString(e.stripComment(c.substring(2))))):n.addMetaText(f,e.translateString(e.stripComment(c.substring(2)))),{};var u=i.iChar,p=u+c.length;switch(c.charAt(0)){case"H":n.addMetaText("history",e.translateString(e.stripComment(c.substring(2)))),i.is_in_history=!0;break;case"K":this.resolveTempo();var m=a.parseKey(c.substring(2));!i.is_in_header&&n.hasBeginMusic()&&(m.foundClef&&n.appendStartingElement("clef",u,p,i.clef),m.foundKey&&n.appendStartingElement("key",u,p,a.fixKey(i.clef,i.key))),i.is_in_header=!1;break;case"L":this.setDefaultLength(c,2,c.length);break;case"M":i.origMeter=i.meter=this.setMeter(c.substring(2));break;case"P":i.is_in_header?n.addMetaText("partOrder",e.translateString(e.stripComment(c.substring(2)))):i.partForNextLine={title:e.translateString(e.stripComment(c.substring(2))),startChar:u,endChar:p};break;case"Q":var g=this.setTempo(c,2,c.length);"delaySet"===g.type?i.tempo=g.tempo:"immediate"===g.type&&(n.metaText.tempo=g.tempo);break;case"T":this.setTitle(c.substring(2));break;case"U":this.addUserDefinition(c,2,c.length);break;case"V":if(a.parseVoice(c,2,c.length),!i.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":t("Ignored header",c,0);break;default:return d.length&&(d=""+d),{regular:!0,str:c+d}}return d.length>0?{recurse:!0,str:d}:{}}return{regular:!0,str:c}}}},function(e,t,i){var r=i(0);e.exports=function(){this.skipWhiteSpace=function(e){for(var t=0;t<e.length;t++)if(!this.isWhiteSpace(e.charAt(t)))return t;return e.length};var e=function(e,t){return t>=e.length};this.eatWhiteSpace=function(e,t){for(var i=t;i<e.length;i++)if(!this.isWhiteSpace(e.charAt(i)))return i-t;return i-t},this.getKeyPitch=function(t){var i=this.skipWhiteSpace(t);if(e(t,i))return{len:0};switch(t.charAt(i)){case"A":return{len:i+1,token:"A"};case"B":return{len:i+1,token:"B"};case"C":return{len:i+1,token:"C"};case"D":return{len:i+1,token:"D"};case"E":return{len:i+1,token:"E"};case"F":return{len:i+1,token:"F"};case"G":return{len:i+1,token:"G"}}return{len:0}},this.getSharpFlat=function(e){if("bass"===e)return{len:0};switch(e.charAt(0)){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}},this.getMode=function(t){var i=function(e,t){for(;t<e.length&&(e.charAt(t)>="a"&&e.charAt(t)<="z"||e.charAt(t)>="A"&&e.charAt(t)<="Z");)t++;return t},r=this.skipWhiteSpace(t);if(e(t,r))return{len:0};var s=t.substring(r,r+3).toLowerCase();switch((s.length>1&&" "===s.charAt(1)||"^"===s.charAt(1)||"_"===s.charAt(1)||"="===s.charAt(1))&&(s=s.charAt(0)),s){case"mix":return{len:i(t,r),token:"Mix"};case"dor":return{len:i(t,r),token:"Dor"};case"phr":return{len:i(t,r),token:"Phr"};case"lyd":return{len:i(t,r),token:"Lyd"};case"loc":return{len:i(t,r),token:"Loc"};case"aeo":return{len:i(t,r),token:"m"};case"maj":case"ion":return{len:i(t,r),token:""};case"min":case"m":return{len:i(t,r),token:"m"}}return{len:0}},this.getClef=function(t,i){var s=t,a=this.skipWhiteSpace(t);if(e(t,a))return{len:0};var n=!1,c=t.substring(a);if(r.startsWith(c,"clef=")&&(n=!0,c=c.substring(5),a+=5),0===c.length&&n)return{len:a+5,warn:"No clef specified: "+s};var o=this.skipWhiteSpace(c);if(e(c,o))return{len:0};o>0&&(a+=o,c=c.substring(o));var h=null;if(r.startsWith(c,"treble"))h="treble";else if(r.startsWith(c,"bass3"))h="bass3";else if(r.startsWith(c,"bass"))h="bass";else if(r.startsWith(c,"tenor"))h="tenor";else if(r.startsWith(c,"alto2"))h="alto2";else if(r.startsWith(c,"alto1"))h="alto1";else if(r.startsWith(c,"alto"))h="alto";else if(!i&&n&&r.startsWith(c,"none"))h="none";else if(r.startsWith(c,"perc"))h="perc";else if(!i&&n&&r.startsWith(c,"C"))h="tenor";else if(!i&&n&&r.startsWith(c,"F"))h="bass";else{if(i||!n||!r.startsWith(c,"G"))return{len:a+5,warn:"Unknown clef specified: "+s};h="treble"}return c=c.substring(h.length),(o=this.isMatch(c,"+8"))>0?h+="+8":(o=this.isMatch(c,"-8"))>0&&(h+="-8"),{len:a+h.length,token:h,explicit:n}},this.getBarLine=function(e,t){switch(e.charAt(t)){case"]":switch(++t,e.charAt(t)){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++t,e.charAt(t)>="1"&&e.charAt(t)<="9"||'"'===e.charAt(t)?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(++t,e.charAt(t)){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++t,e.charAt(t)){case"]":switch(++t,e.charAt(t)){case"|":return++t,":"===e.charAt(t)?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}break;case"|":return++t,":"===e.charAt(t)?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}break;default:return{len:1,warn:"Unknown bar symbol"}}break;case"[":if(++t,"|"!==e.charAt(t))return e.charAt(t)>="1"&&e.charAt(t)<="9"||'"'===e.charAt(t)?{len:1,token:"bar_invisible"}:{len:0};switch(++t,e.charAt(t)){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}break;case"|":switch(++t,e.charAt(t)){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++t,":"===e.charAt(t)?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var i=0;":"===e.charAt(t+i);)i++;return{len:1+i,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(e,t){for(var i=0;i<e.length;i++)if(t.indexOf(e.charAt(i))<0)return{len:i,token:e.substring(0,i)};return{len:i,token:e}},this.getToken=function(e,t,i){for(var r=t;r<i&&!this.isWhiteSpace(e.charAt(r));)r++;return e.substring(t,r)},this.isMatch=function(t,i){var s=this.skipWhiteSpace(t);return e(t,s)?0:r.startsWith(t.substring(s),i)?s+i.length:0},this.getPitchFromTokens=function(e){var t={};if(t.position={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11}[e[0].token],void 0===t.position)return{warn:"Pitch expected. Found: "+e[0].token};for(e.shift();e.length;)switch(e[0].token){case",":t.position-=7,e.shift();break;case"'":t.position+=7,e.shift();break;default:return t}return t},this.getKeyAccidentals2=function(e){for(var t;e.length>0;){var i;if("^"===e[0].token){if(i="sharp",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+i};switch(e[0].token){case"^":i="dblsharp",e.shift();break;case"/":i="quartersharp",e.shift()}}else if("="===e[0].token)i="natural",e.shift();else{if("_"!==e[0].token)return{accs:t};if(i="flat",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+i};switch(e[0].token){case"_":i="dblflat",e.shift();break;case"/":i="quarterflat",e.shift()}}if(0===e.length)return{accs:t,warn:"Expected note name after "+i};switch(e[0].token.charAt(0)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":void 0===t&&(t=[]),t.push({acc:i,note:e[0].token.charAt(0)}),1===e[0].token.length?e.shift():e[0].token=e[0].token.substring(1);break;default:return{accs:t,warn:"Expected note name after "+i+" Found: "+e[0].token}}}return{accs:t}},this.getKeyAccidental=function(t){var i={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},r=this.skipWhiteSpace(t);if(e(t,r))return{len:0};var s=null;switch(t.charAt(r)){case"^":case"_":case"=":s=t.charAt(r);break;default:return{len:0}}if(e(t,++r))return{len:1,warn:"Expected note name after accidental"};switch(t.charAt(r)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:r+1,token:{acc:i[s],note:t.charAt(r)}};case"^":case"_":case"/":if(s+=t.charAt(r),e(t,++r))return{len:2,warn:"Expected note name after accidental"};switch(t.charAt(r)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:r+1,token:{acc:i[s],note:t.charAt(r)}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(e){return" "===e||"\t"===e||""===e},this.getMeat=function(e,t,i){var r=e.indexOf("%",t);for(r>=0&&r<i&&(i=r);t<i&&(" "===e.charAt(t)||"\t"===e.charAt(t)||""===e.charAt(t));)t++;for(;t<i&&(" "===e.charAt(i-1)||"\t"===e.charAt(i-1)||""===e.charAt(i-1));)i--;return{start:t,end:i}};var t=function(e){return e>="A"&&e<="Z"||e>="a"&&e<="z"},i=function(e){return e>="0"&&e<="9"};this.tokenize=function(e,r,s,a){var n=this.getMeat(e,r,s);r=n.start,s=n.end;for(var c,o=[];r<s;){if('"'===e.charAt(r)){for(c=r+1;c<s&&'"'!==e.charAt(c);)c++;o.push({type:"quote",token:e.substring(r+1,c),start:r+1,end:c}),c++}else if(t(e.charAt(r))){if(c=r+1,a)for(;c<s&&!this.isWhiteSpace(e.charAt(c));)c++;else for(;c<s&&t(e.charAt(c));)c++;o.push({type:"alpha",token:e.substring(r,c),continueId:i(e.charAt(c)),start:r,end:c}),r=c+1}else if("."===e.charAt(r)&&i(e.charAt(c+1))){c=r+1;for(var h;c<s&&i(e.charAt(c));)c++;h=parseFloat(e.substring(r,c)),o.push({type:"number",token:e.substring(r,c),intt:null,floatt:h,continueId:t(e.charAt(c)),start:r,end:c}),r=c+1}else if(i(e.charAt(r))||"-"===e.charAt(r)&&i(e.charAt(c+1))){c=r+1;for(var l,d=null;c<s&&i(e.charAt(c));)c++;if("."===e.charAt(c)&&i(e.charAt(c+1)))for(c++;c<s&&i(e.charAt(c));)c++;else d=parseInt(e.substring(r,c));l=parseFloat(e.substring(r,c)),o.push({type:"number",token:e.substring(r,c),intt:d,floatt:l,continueId:t(e.charAt(c)),start:r,end:c}),r=c+1}else" "===e.charAt(r)||"\t"===e.charAt(r)?c=r+1:(o.push({type:"punct",token:e.charAt(r),start:r,end:r+1}),c=r+1);r=c}return o},this.getVoiceToken=function(e,t,i){for(var r=t;r<i&&this.isWhiteSpace(e.charAt(r))||"="===e.charAt(r);)r++;if('"'===e.charAt(r)){var s=e.indexOf('"',r+1);return-1===s||s>=i?{len:1,err:"Missing close quote"}:{len:s-t+1,token:this.translateString(e.substring(r+1,s))}}for(var a=r;a<i&&!this.isWhiteSpace(e.charAt(a))&&"="!==e.charAt(a);)a++;return{len:a-t+1,token:e.substring(r,a)}};var s={"`a":"à","'a":"á","^a":"â","~a":"ã",'"a':"ä",oa:"å",aa:"å","=a":"ā",ua:"ă",";a":"ą","`e":"è","'e":"é","^e":"ê",'"e':"ë","=e":"ē",ue:"ĕ",";e":"ę",".e":"ė","`i":"ì","'i":"í","^i":"î",'"i':"ï","=i":"ī",ui:"ĭ",";i":"į","`o":"ò","'o":"ó","^o":"ô","~o":"õ",'"o':"ö","=o":"ō",uo:"ŏ","/o":"ø","`u":"ù","'u":"ú","^u":"û","~u":"ũ",'"u':"ü",ou:"ů","=u":"ū",uu:"ŭ",";u":"ų","`A":"À","'A":"Á","^A":"Â","~A":"Ã",'"A':"Ä",oA:"Å",AA:"Å","=A":"Ā",uA:"Ă",";A":"Ą","`E":"È","'E":"É","^E":"Ê",'"E':"Ë","=E":"Ē",uE:"Ĕ",";E":"Ę",".E":"Ė","`I":"Ì","'I":"Í","^I":"Î","~I":"Ĩ",'"I':"Ï","=I":"Ī",uI:"Ĭ",";I":"Į",".I":"İ","`O":"Ò","'O":"Ó","^O":"Ô","~O":"Õ",'"O':"Ö","=O":"Ō",uO:"Ŏ","/O":"Ø","`U":"Ù","'U":"Ú","^U":"Û","~U":"Ũ",'"U':"Ü",oU:"Ů","=U":"Ū",uU:"Ŭ",";U":"Ų",ae:"æ",AE:"Æ",oe:"œ",OE:"Œ",ss:"ß","'c":"ć","^c":"ĉ",uc:"č",cc:"ç",".c":"ċ",cC:"Ç","'C":"Ć","^C":"Ĉ",uC:"Č",".C":"Ċ","~N":"Ñ","~n":"ñ","=s":"š",vs:"š",DH:"Ð",dh:"ð",HO:"Ő",Ho:"ő",HU:"Ű",Hu:"ű","'Y":"Ý","'y":"ý","^Y":"Ŷ","^y":"ŷ",'"Y':"Ÿ",'"y':"ÿ",vS:"Š",vZ:"Ž",vz:"ž"},a={"#":"♯",b:"♭","=":"♮"},n={201:"♯",202:"♭",203:"♮",241:"¡",242:"¢",252:"a",262:"2",272:"o",302:"Â",312:"Ê",322:"Ò",332:"Ú",342:"â",352:"ê",362:"ò",372:"ú",243:"£",253:"«",263:"3",273:"»",303:"Ã",313:"Ë",323:"Ó",333:"Û",343:"ã",353:"ë",363:"ó",373:"û",244:"¤",254:"¬",264:"  ́",274:"1⁄4",304:"Ä",314:"Ì",324:"Ô",334:"Ü",344:"ä",354:"ì",364:"ô",374:"ü",245:"¥",255:"-",265:"μ",275:"1⁄2",305:"Å",315:"Í",325:"Õ",335:"Ý",345:"å",355:"í",365:"õ",375:"ý",246:"¦",256:"®",266:"¶",276:"3⁄4",306:"Æ",316:"Î",326:"Ö",336:"Þ",346:"æ",356:"î",366:"ö",376:"þ",247:"§",257:" ̄",267:"·",277:"¿",307:"Ç",317:"Ï",327:"×",337:"ß",347:"ç",357:"ï",367:"÷",377:"ÿ",250:" ̈",260:"°",270:" ̧",300:"À",310:"È",320:"Ð",330:"Ø",340:"à",350:"è",360:"ð",370:"ø",251:"©",261:"±",271:"1",301:"Á",311:"É",321:"Ñ",331:"Ù",341:"á",351:"é",361:"ñ",371:"ù"};this.translateString=function(e){var t=e.split("\\");if(1===t.length)return e;var i=null;return r.each(t,(function(e){if(null===i)i=e;else{var t=s[e.substring(0,2)];void 0!==t?i+=t+e.substring(2):void 0!==(t=n[e.substring(0,3)])?i+=t+e.substring(3):(t=a[e.substring(0,1)],i+=void 0!==t?t+e.substring(1):"\\"+e)}})),i},this.getNumber=function(e,t){for(var i=0;t<e.length;)switch(e.charAt(t)){case"0":i*=10,t++;break;case"1":i=10*i+1,t++;break;case"2":i=10*i+2,t++;break;case"3":i=10*i+3,t++;break;case"4":i=10*i+4,t++;break;case"5":i=10*i+5,t++;break;case"6":i=10*i+6,t++;break;case"7":i=10*i+7,t++;break;case"8":i=10*i+8,t++;break;case"9":i=10*i+9,t++;break;default:return{num:i,index:t}}return{num:i,index:t}},this.getFraction=function(e,t){var i=1,r=1;if("/"!==e.charAt(t)){var s=this.getNumber(e,t);i=s.num,t=s.index}if("/"===e.charAt(t)){if(t++,"/"===e.charAt(t)){for(var a=.5;"/"===e.charAt(t++);)a/=2;return{value:i*a,index:t-1}}var n=t,c=this.getNumber(e,t);0===c.num&&n===t&&(c.num=2),0!==c.num&&(r=c.num),t=c.index}return{value:i/r,index:t}},this.theReverser=function(e){return r.endsWith(e,", The")?"The "+e.substring(0,e.length-5):r.endsWith(e,", A")?"A "+e.substring(0,e.length-3):e},this.stripComment=function(e){var t=e.indexOf("%");return t>=0?r.strip(e.substring(0,t)):r.strip(e)},this.getInt=function(e){var t=parseInt(e);if(isNaN(t))return{digits:0};var i=""+t;return{value:t,digits:e.indexOf(i)+i.length}},this.getFloat=function(e){var t=parseFloat(e);if(isNaN(t))return{digits:0};var i=""+t;return{value:t,digits:e.indexOf(i)+i.length}},this.getMeasurement=function(e){if(0===e.length)return{used:0};var t=1,i="";if("-"===e[0].token)e.shift(),i="-",t++;else if("number"!==e[0].type)return{used:0};if(i+=e.shift().token,0===e.length)return{used:1,value:parseInt(i)};var r=e.shift();if("."===r.token){if(t++,0===e.length)return{used:t,value:parseInt(i)};if("number"===e[0].type&&(i=i+"."+(r=e.shift()).token,t++,0===e.length))return{used:t,value:parseFloat(i)};r=e.shift()}switch(r.token){case"pt":return{used:t+1,value:parseFloat(i)};case"cm":return{used:t+1,value:parseFloat(i)/2.54*72};case"in":return{used:t+1,value:72*parseFloat(i)};default:return e.unshift(r),{used:t,value:parseFloat(i)}}return{used:0}};var c=function(e){for(;-1!==e.indexOf("\\n");)e=e.replace("\\n","\n");return e};this.getBrackettedSubstring=function(e,t,i,r){for(var s=r||e.charAt(t),a=t+1;a<e.length&&e.charAt(a)!==s;)++a;return e.charAt(a)===s?[a-t+1,c(e.substring(t+1,a)),!0]:((a=t+i)>e.length-1&&(a=e.length-1),[a-t+1,c(e.substring(t+1,a)),!1])}}},function(e,t){function i(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t}function r(e,t,r,s,a,n,c,o,h,l,d){for(var f=l;f<e.length;f++){var u=e[f];r+=u,s+=u;var p=Math.abs(r-t[o]);if(Math.abs(p-n)<t[0]/10)if(p<n){var m=i(a),g=i(h);g.push(f-1),m.push(s-u),d.push({accumulator:r,lineAccumulator:u,lineWidths:m,lastVariance:Math.abs(r-t[o+1]),highestVariance:Math.max(c,n),currLine:o+1,lineBreaks:g,startIndex:f+1})}else p>n&&f<e.length-1&&(m=i(a),g=i(h),d.push({accumulator:r,lineAccumulator:s,lineWidths:m,lastVariance:p,highestVariance:Math.max(c,p),currLine:o,lineBreaks:g,startIndex:f+1}));p>n?(h.push(f-1),o++,c=Math.max(c,n),n=Math.abs(r-t[o]),a.push(s-u),s=u):n=p}a.push(s)}function s(e,t,i,r,s){var a=new s,n={lineBreaks:e,staffwidth:t};for(var c in r)r.hasOwnProperty(c)&&"wrap"!==c&&"staffwidth"!==c&&(n[c]=r[c]);return a.parse(i,n),{tune:a.getTune(),revisedParams:n}}e.exports={wrapLines:function(e,t){if(t&&0!==e.lines.length){for(var i=[],r=[],s=[],a=[],n=[],c="",o={},h=0;h<e.lines.length;h++){var l=e.lines[h];if(l.staff)for(var d=l.staff,f=0;f<d.length;f++){void 0===r[f]&&(r[f]=[],s[f]=[],a[f]=[],n[f]=[]);for(var u=d[f],p=u.voices,m=0;m<p.length;m++){void 0===r[f][m]&&(r[f][m]=!0,s[f][m]=0,a[f][m]=0,n[f][m]=0);for(var g=p[m],v=0;v<g.length;v++){if(r[f][m]){if(i[s[f][m]]||(i[s[f][m]]={staff:[]}),!i[s[f][m]].staff[f])for(var b in i[s[f][m]].staff[f]={voices:[]},u)u.hasOwnProperty(b)&&("meter"===b?1!==i.length&&c===JSON.stringify(u[b])||(c=JSON.stringify(u[b]),i[s[f][m]].staff[f][b]=u[b]):"voices"!==b&&(i[s[f][m]].staff[f][b]=u[b]));n[f][m]&&(i[s[f][m]].staff[f].barNumber=n[f][m]),r[f][m]=!1}var y=g[v];if(!i[s[f][m]].staff[f].voices[m])for(var w in i[s[f][m]].staff[f].voices[m]=[],o)o.hasOwnProperty(w)&&i[s[f][m]].staff[f].voices[m].push(o[w]);i[s[f][m]].staff[f].voices[m].push(y),"stem"===y.el_type&&(o[y.el_type]=y),"bar"===y.el_type&&(a[f][m]++,t[a[f][m]]&&(r[f][m]=!0,s[f][m]++,n[f][m]=y.barNumber,delete y.barNumber))}}}else i.push(l),s++}e.lines=i}},calcLineWraps:function(e,t,i,a,n,c){if(a.staffwidth<t.left)return{explanation:"Staffwidth is narrower than the margin",tune:e,revisedParams:a};var o=a.scale?Math.max(a.scale,.1):1,h=a.wrap.minSpacing?Math.max(parseFloat(a.wrap.minSpacing),1):1,l=a.wrap.minSpacingLimit?Math.max(parseFloat(a.wrap.minSpacingLimit),1):h-.1,d=a.wrap.maxSpacing?Math.max(parseFloat(a.wrap.maxSpacing),1):void 0;a.wrap.lastLineLimit&&!d&&(d=Math.max(parseFloat(a.wrap.lastLineLimit),1)),a.wrap.targetHeight&&Math.max(parseInt(a.wrap.targetHeight,10),100);var f=a.wrap.preferredMeasuresPerLine?Math.max(parseInt(a.wrap.preferredMeasuresPerLine,10),1):void 0,u=(a.staffwidth-t.left)/h/o,p=(a.staffwidth-t.left)/d/o,m=(a.staffwidth-t.left)/l/o,g={widths:t,lineBreakPoint:u,minLineSize:p,attempts:[],staffWidth:a.staffwidth,minWidth:Math.round(m)},v=null;if(f){var b=function(e,t,i){for(var r=[],s=[],a=0,n=!1,c=0;c<e.length;c++)(a+=e[c])>t&&(n=!0),c%i==i-1&&(c!==e.length-1&&r.push(c),s.push(Math.round(a)),a=0);return{failed:n,totals:s,lineBreaks:r}}(t.measureWidths,u,f);g.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:f,lineBreaks:b.lineBreaks,failed:b.failed,totals:b.totals}),b.failed||(v=b.lineBreaks)}if(!v){var y=function(e,t){for(var i=[],r=[],s=0,a=0;a<e.length;a++){var n=e[a],c=s+n;if(c<t)s=c;else t-s<c-t&&s>0?(i.push(a-1),r.push(Math.round(s-n)),s=n):a<e.length-1&&(i.push(a),r.push(Math.round(s)),s=0)}return r.push(Math.round(s)),{lineBreaks:i,totals:r}}(t.measureWidths,u);g.attempts.push({type:"Free Form",lineBreaks:y.lineBreaks,totals:y.totals}),v=y.lineBreaks,y=function(e,t,i,s){for(var a=Math.ceil(e.total/t)+1,n=Math.floor(e.total/a),c=[],o=0;o<a;o++)c.push(n*(o+1));var h=[];h.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var l=0;l<h.length;)r(e.measureWidths,c,h[l].accumulator,h[l].lineAccumulator,h[l].lineWidths,h[l].lastVariance,h[l].highestVariance,h[l].currLine,h[l].lineBreaks,h[l].startIndex,h),l++;for(o=0;o<h.length;o++){var d=h[o];d.variances=[],d.aveVariance=0;for(var f=0;f<d.lineWidths.length;f++){var u=d.lineWidths[f];d.variances.push(u-c[0]),d.aveVariance+=Math.abs(u-c[0])}d.aveVariance=d.aveVariance/d.lineWidths.length,s.attempts.push({type:"optimizeLineWidths",lineBreaks:d.lineBreaks,variances:d.variances,aveVariance:d.aveVariance,widths:e.measureWidths})}var p=9999999,m=-1;for(o=0;o<h.length;o++)(d=h[o]).aveVariance<p&&(p=d.aveVariance,m=o);return{failed:!1,lineBreaks:h[m].lineBreaks,variance:h[m].highestVariance}}(t,u,0,g),g.attempts.push({type:"Optimize",failed:y.failed,reason:y.reason,lineBreaks:y.lineBreaks,totals:y.totals}),y.failed||(v=y.lineBreaks)}var w=a.staffwidth,x=s(v,w,i,a,n),k=c.getMeasureWidths(x.tune),A=!0;return g.attempts.push({type:"heightCheck",height:k.height}),0===v.length&&p>t.total&&(w=t.total*d*o+t.left,g.attempts.push({type:"too sparse",newWidth:Math.round(w)}),A=!1),A||(x=s(v,w,i,a,n)),x.explanation=g,x}}},function(e,t,i){var r=i(0),s=i(7),a=i(1);e.exports=function(){this.getBeatLength=function(){for(var e=0;e<this.lines.length;e++)if(this.lines[e].staff)for(var t=0;t<this.lines[e].staff.length;t++)if(this.lines[e].staff[t].meter){var i=this.lines[e].staff[t].meter;if("specified"===i.type){if(i.value.length>0){var r=parseInt(i.value[0].num,10),s=parseInt(i.value[0].den,10);return 3===r&&8===s?3/8:6===r&&8===s?3/8:6===r&&4===s?.75:9===r&&8===s?3/8:12===r&&8===s?3/8:1/s}return.25}return"cut_time"===i.type?.5:.25}return.25},this.getPickupLength=function(){for(var e=0,t=this.getBarLength(),i=0;i<this.lines.length;i++)if(this.lines[i].staff)for(var r=0;r<this.lines[i].staff.length;r++)for(var s=0;s<this.lines[i].staff[r].voices.length;s++)for(var a=this.lines[i].staff[r].voices[s],n=1,c=0;c<a.length;c++){var o=a[c].rest&&"spacer"===a[c].rest.type;if(a[c].startTriplet&&(n=a[c].tripletMultiplier),a[c].duration&&!o&&(e+=a[c].duration*n),a[c].endTriplet&&(n=1),e>=t&&(e-=t),"bar"===a[c].el_type)return e}return e},this.getBarLength=function(){var e=this.getMeterFraction();return e.num/e.den},this.millisecondsPerMeasure=function(e){var t;if(e)t=e;else{var i=this.metaText?this.metaText.tempo:null;t=this.getBpm(i)}return t<=0&&(t=1),6e4*(this.getBeatsPerMeasure()/t)},this.getBeatsPerMeasure=function(){var e,t=this.getMeterFraction();return(e=8===t.den?t.num/3:t.num)<=0&&(e=1),e},this.reset=function(){this.version="1.0.1",this.media="screen",this.metaText={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0},this.resolveOverlays=function(){for(var e=!1,t=0;t<this.lines.length;t++){var i=this.lines[t];if(i.staff)for(var s=0;s<i.staff.length;s++){for(var a=i.staff[s],n=[],c=0;c<a.voices.length;c++){var o=a.voices[c];n.push({hasOverlay:!1,voice:[],snip:[]});for(var h=0,l=!1,d=-1,f=0;f<o.length;f++){var u=o[f];"overlay"!==u.el_type||l?"bar"===u.el_type?(l?(l=!1,n[c].snip.push({start:d,len:f-d}),n[c].voice.push(u)):(h>0&&n[c].voice.push({el_type:"note",duration:h,rest:{type:"invisible"},startChar:u.startChar,endChar:u.endChar}),n[c].voice.push(u)),h=0):"note"===u.el_type?l?n[c].voice.push(u):h+=u.duration:"scale"!==u.el_type&&"stem"!==u.el_type&&"overlay"!==u.el_type&&"style"!==u.el_type&&"transpose"!==u.el_type||n[c].voice.push(u):(e=!0,l=!0,d=f,n[c].hasOverlay=!0)}n[c].hasOverlay&&0===n[c].snip.length&&n[c].snip.push({start:d,len:o.length-d})}for(c=0;c<n.length;c++){var p=n[c];if(p.hasOverlay){a.voices.push(p.voice);for(var m=p.snip.length-1;m>=0;m--){var g=p.snip[m];a.voices[c].splice(g.start,g.len)}for(m=0;m<a.voices[a.voices.length-1].length;m++){a.voices[a.voices.length-1][m]=r.clone(a.voices[a.voices.length-1][m]);var v=a.voices[a.voices.length-1][m];"bar"===v.el_type&&v.startEnding&&delete v.startEnding,"bar"===v.el_type&&v.endEnding&&delete v.endEnding}}}}}return e},this.cleanUp=function(e,t,i,a,n){this.closeLine(),this.metaText.tempo&&this.metaText.tempo.bpm&&!this.metaText.tempo.duration&&(this.metaText.tempo.duration=[this.getBeatLength()]);var c,o,h,l=!1;for(c=0;c<this.lines.length;c++)if(void 0!==this.lines[c].staff){var d=!1;for(o=0;o<this.lines[c].staff.length;o++)if(void 0===this.lines[c].staff[o])l=!0,this.lines[c].staff[o]=null;else for(h=0;h<this.lines[c].staff[o].voices.length;h++)void 0===this.lines[c].staff[o].voices[h]?this.lines[c].staff[o].voices[h]=[]:this.containsNotes(this.lines[c].staff[o].voices[h])&&(d=!0);d||(this.lines[c]=null,l=!0)}if(l&&(this.lines=r.compact(this.lines),r.each(this.lines,(function(e){e.staff&&(e.staff=r.compact(e.staff))}))),i)for(;m(this.lines,i););if(a){for(l=!1,c=0;c<this.lines.length;c++)if(void 0!==this.lines[c].staff)for(o=0;o<this.lines[c].staff.length;o++){var f=!1;for(h=0;h<this.lines[c].staff[o].voices.length;h++)this.containsNotesStrict(this.lines[c].staff[o].voices[h])&&(f=!0);f||(l=!0,this.lines[c].staff[o]=null)}l&&r.each(this.lines,(function(e){e.staff&&(e.staff=r.compact(e.staff))}))}for(function(e){for(var t=!0,i=0;i<e.length;i++){var r=e[i];if(r.staff){for(var s=0;s<r.staff.length;s++){var a=r.staff[s];if(a.title){for(var n=!1,c=0;c<a.title.length;c++)a.title[c]?(a.title[c]=t?a.title[c].name:a.title[c].subname,a.title[c]?n=!0:a.title[c]=""):a.title[c]="";n||delete a.title}}t=!1}}}(this.lines),c=0;c<this.lines.length;c++)if(this.lines[c].staff)for(o=0;o<this.lines[c].staff.length;o++)delete this.lines[c].staff[o].workingClef;for(;this.resolveOverlays(););function u(e){for(var t,i=function(e,i,s){if(void 0===n[s]){for(t=0;t<n.length;t++)if(void 0!==n[t]){s=t;break}if(void 0===n[s]){var a=100*s+1;r.each(e.endSlur,(function(e){a===e&&--a})),n[s]=[a]}}for(var c,o=0;o<i;o++)c=n[s].pop(),e.endSlur.push(c);return 0===n[s].length&&delete n[s],c},s=function(e,t,i,s){e.startSlur=[],void 0===n[i]&&(n[i]=[]);for(var a=100*i+1,c=0;c<t;c++)s&&(r.each(s,(function(e){a===e&&++a})),r.each(s,(function(e){a===e&&++a})),r.each(s,(function(e){a===e&&++a}))),r.each(n[i],(function(e){a===e&&++a})),r.each(n[i],(function(e){a===e&&++a})),n[i].push(a),e.startSlur.push({label:a}),a++},a=0;a<e.length;a++){var c=e[a];if("note"===c.el_type){if(c.gracenotes)for(var o=0;o<c.gracenotes.length;o++){if(c.gracenotes[o].endSlur){var h=c.gracenotes[o].endSlur;c.gracenotes[o].endSlur=[];for(var l=0;l<h;l++)i(c.gracenotes[o],1,20)}c.gracenotes[o].startSlur&&(t=c.gracenotes[o].startSlur,s(c.gracenotes[o],t,20))}if(c.endSlur&&(t=c.endSlur,c.endSlur=[],i(c,t,0)),c.startSlur&&s(c,t=c.startSlur,0),c.pitches){for(var d=[],f=0;f<c.pitches.length;f++)if(c.pitches[f].endSlur){var u=c.pitches[f].endSlur;c.pitches[f].endSlur=[];for(var p=0;p<u;p++){var m=i(c.pitches[f],1,f+1);d.push(m)}}for(f=0;f<c.pitches.length;f++)c.pitches[f].startSlur&&(t=c.pitches[f].startSlur,s(c.pitches[f],t,f+1,d));c.gracenotes&&c.pitches[0].endSlur&&100===c.pitches[0].endSlur[0]&&c.pitches[0].startSlur&&(c.gracenotes[0].endSlur?c.gracenotes[0].endSlur.push(c.pitches[0].startSlur[0].label):c.gracenotes[0].endSlur=[c.pitches[0].startSlur[0].label],1===c.pitches[0].endSlur.length?delete c.pitches[0].endSlur:100===c.pitches[0].endSlur[0]?c.pitches[0].endSlur.shift():100===c.pitches[0].endSlur[c.pitches[0].endSlur.length-1]&&c.pitches[0].endSlur.pop(),1===n[1].length?delete n[1]:n[1].pop())}}}}function p(e){s.fixClef(e)}function m(e,t){for(c=0;c<e.length;c++)if(void 0!==e[c].staff)for(o=0;o<e[c].staff.length;o++){var i=[];for(h=0;h<e[c].staff[o].voices.length;h++)for(var s=e[c].staff[o].voices[h],a=0,n=0;n<s.length;n++)if("bar"===s[n].el_type){if(++a>=t&&n<s.length-1){var l=g(e,c);if(!l){var d=JSON.parse(JSON.stringify(e[c]));e.push(r.clone(d)),l=e[e.length-1];for(var f=0;f<l.staff.length;f++)for(var u=0;u<l.staff[f].voices.length;u++)l.staff[f].voices[u]=[]}var p=n+1,m=e[c].staff[o].voices[h].slice(p);return e[c].staff[o].voices[h]=e[c].staff[o].voices[h].slice(0,p),l.staff[o].voices[h]=i.concat(m.concat(l.staff[o].voices[h])),!0}}else s[n].duration||i.push(s[n])}return!1}function g(e,t){for(t++;e.length>t;){if(e[t].staff)return e[t];t++}return null}for(this.lineNum=0;this.lineNum<this.lines.length;this.lineNum++){var v=this.lines[this.lineNum].staff;if(v)for(this.staffNum=0;this.staffNum<v.length;this.staffNum++)for(v[this.staffNum].clef&&p(v[this.staffNum].clef),this.voiceNum=0;this.voiceNum<v[this.staffNum].voices.length;this.voiceNum++){var b=v[this.staffNum].voices[this.voiceNum];u(b);for(var y=0;y<b.length;y++)"clef"===b[y].el_type&&p(b[y]);if(b.length>0&&b[b.length-1].barNumber){var w=g(this.lines,this.lineNum);w&&(w.staff[0].barNumber=b[b.length-1].barNumber),delete b[b.length-1].barNumber}}}return this.formatting.pagewidth||(this.formatting.pagewidth=e),this.formatting.pageheight||(this.formatting.pageheight=t),delete this.staffNum,delete this.voiceNum,delete this.lineNum,delete this.potentialStartBeam,delete this.potentialEndBeam,delete this.vskipPending,n},this.reset(),this.getLastNote=function(){if(this.lines[this.lineNum]&&this.lines[this.lineNum].staff&&this.lines[this.lineNum].staff[this.staffNum]&&this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])for(var e=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum].length-1;e>=0;e--){var t=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum][e];if("note"===t.el_type)return t}return null},this.addTieToLastNote=function(){var e=this.getLastNote();return!!(e&&e.pitches&&e.pitches.length>0)&&(e.pitches[0].startTie={},!0)},this.getDuration=function(e){return e.duration?e.duration:0},this.closeLine=function(){this.potentialStartBeam&&this.potentialEndBeam&&(this.potentialStartBeam.startBeam=!0,this.potentialEndBeam.endBeam=!0),delete this.potentialStartBeam,delete this.potentialEndBeam},this.appendElement=function(e,t,i,s){var a=this;s.el_type=e,null!==t&&(s.startChar=t),null!==i&&(s.endChar=i);var n=function(){void 0!==a.potentialStartBeam&&void 0!==a.potentialEndBeam&&(a.potentialStartBeam.startBeam=!0,a.potentialEndBeam.endBeam=!0),delete a.potentialStartBeam,delete a.potentialEndBeam};"note"===e?a.getDuration(s)>=.25?n():s.force_end_beam_last&&void 0!==a.potentialStartBeam?n():s.end_beam&&void 0!==a.potentialStartBeam?void 0===s.rest?(a.potentialStartBeam.startBeam=!0,s.endBeam=!0,delete a.potentialStartBeam,delete a.potentialEndBeam):n():void 0===s.rest&&(void 0===a.potentialStartBeam?s.end_beam||(a.potentialStartBeam=s,delete a.potentialEndBeam):a.potentialEndBeam=s):n();delete s.end_beam,delete s.force_end_beam_last,function(e){var t=a.lines[a.lineNum].staff[a.staffNum];if(t){if(void 0!==e.pitches){var i=t.workingClef.verticalPos;r.each(e.pitches,(function(e){e.verticalPos=e.pitch-i}))}if(void 0!==e.gracenotes){var s=t.workingClef.verticalPos;r.each(e.gracenotes,(function(e){e.verticalPos=e.pitch-s}))}t.voices[a.voiceNum].push(e)}}(s)},this.appendStartingElement=function(e,t,i,s){var a;this.closeLine(),"key"===e&&(a=s.impliedNaturals,delete s.impliedNaturals,delete s.explicitAccidentals);var n=r.clone(s);if(this.lines[this.lineNum].staff){this.lines[this.lineNum].staff.length<=this.staffNum&&(this.lines[this.lineNum].staff[this.staffNum]={},this.lines[this.lineNum].staff[this.staffNum].clef=r.clone(this.lines[this.lineNum].staff[0].clef),this.lines[this.lineNum].staff[this.staffNum].key=r.clone(this.lines[this.lineNum].staff[0].key),this.lines[this.lineNum].staff[0].meter&&(this.lines[this.lineNum].staff[this.staffNum].meter=r.clone(this.lines[this.lineNum].staff[0].meter)),this.lines[this.lineNum].staff[this.staffNum].workingClef=r.clone(this.lines[this.lineNum].staff[0].workingClef),this.lines[this.lineNum].staff[this.staffNum].voices=[[]]),"clef"===e&&(this.lines[this.lineNum].staff[this.staffNum].workingClef=n);for(var c=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum],o=0;o<c.length;o++){if("note"===c[o].el_type||"bar"===c[o].el_type)return n.el_type=e,n.startChar=t,n.endChar=i,a&&(n.accidentals=a.concat(n.accidentals)),void c.push(n);if(c[o].el_type===e)return n.el_type=e,n.startChar=t,n.endChar=i,a&&(n.accidentals=a.concat(n.accidentals)),void(c[o]=n)}this.lines[this.lineNum].staff[this.staffNum][e]=s}},this.getNumLines=function(){return this.lines.length},this.pushLine=function(e){this.vskipPending&&(e.vskip=this.vskipPending,delete this.vskipPending),this.lines.push(e)},this.addSubtitle=function(e){this.pushLine({subtitle:e})},this.addSpacing=function(e){this.vskipPending=e},this.addNewPage=function(e){this.pushLine({newpage:e})},this.addSeparator=function(e,t,i){this.pushLine({separator:{spaceAbove:e,spaceBelow:t,lineLength:i}})},this.addText=function(e){this.pushLine({text:e})},this.addCentered=function(e){this.pushLine({text:[{text:e,center:!0}]})},this.containsNotes=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type||"bar"===e[t].el_type)return!0;return!1},this.containsNotesStrict=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type&&void 0===e[t].rest)return!0;return!1},this.changeVoiceScale=function(e){this.appendElement("scale",null,null,{size:e})},this.startNewLine=function(e){var t=this;this.closeLine();var i=function(e){var i=t.lines[t.lineNum].staff[t.staffNum];if(i.voices[t.voiceNum]=[],i.title||(i.title=[]),i.title[t.voiceNum]={name:e.name,subname:e.subname},e.style&&t.appendElement("style",null,null,{head:e.style}),e.stem)t.appendElement("stem",null,null,{direction:e.stem});else if(t.voiceNum>0){if(void 0!==i.voices[0]){for(var r=!1,s=0;s<i.voices[0].length;s++)"stem"===i.voices[0].el_type&&(r=!0);if(!r){i.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}}t.appendElement("stem",null,null,{direction:"down"})}e.scale&&t.appendElement("scale",null,null,{size:e.scale})},r=function(e){e.key&&e.key.impliedNaturals&&(e.key.accidentals=e.key.accidentals.concat(e.key.impliedNaturals),delete e.key.impliedNaturals),t.lines[t.lineNum].staff[t.staffNum]={voices:[],clef:e.clef,key:e.key,workingClef:e.clef},void 0!==e.stafflines&&(t.lines[t.lineNum].staff[t.staffNum].clef.stafflines=e.stafflines,t.lines[t.lineNum].staff[t.staffNum].workingClef.stafflines=e.stafflines),e.staffscale&&(t.lines[t.lineNum].staff[t.staffNum].staffscale=e.staffscale),e.tripletfont&&(t.lines[t.lineNum].staff[t.staffNum].tripletfont=e.tripletfont),e.vocalfont&&(t.lines[t.lineNum].staff[t.staffNum].vocalfont=e.vocalfont),e.bracket&&(t.lines[t.lineNum].staff[t.staffNum].bracket=e.bracket),e.brace&&(t.lines[t.lineNum].staff[t.staffNum].brace=e.brace),e.connectBarLines&&(t.lines[t.lineNum].staff[t.staffNum].connectBarLines=e.connectBarLines),e.barNumber&&(t.lines[t.lineNum].staff[t.staffNum].barNumber=e.barNumber),i(e),e.part&&t.appendElement("part",e.part.startChar,e.part.endChar,{title:e.part.title}),void 0!==e.meter&&(t.lines[t.lineNum].staff[t.staffNum].meter=e.meter)};if(void 0===this.lines[this.lineNum])!function(e){t.lines[t.lineNum]={staff:[]},r(e)}(e);else if(void 0===this.lines[this.lineNum].staff)this.lineNum++,this.startNewLine(e);else if(void 0===this.lines[this.lineNum].staff[this.staffNum])r(e);else if(void 0===this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])i(e);else{if(!this.containsNotes(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]))return;this.lineNum++,this.startNewLine(e)}},this.setBarNumberImmediate=function(e){var t=this.getCurrentVoice();if(t&&t.length>0){var i=t[t.length-1];if("bar"!==i.el_type)return e-1;void 0!==i.barNumber&&(i.barNumber=e)}return e},this.hasBeginMusic=function(){for(var e=0;e<this.lines.length;e++)if(this.lines[e].staff)return!0;return!1},this.isFirstLine=function(e){for(var t=e-1;t>=0;t--)if(void 0!==this.lines[t].staff)return!1;return!0},this.getMeter=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff)for(var i=0;i<t.staff.length;i++){var r=t.staff[i].meter;if(r)return r}}return{type:"common_time"}},this.getMeterFraction=function(){var e=this.getMeter(),t=4,i=4;return e&&("specified"===e.type?(t=parseInt(e.value[0].num,10),i=parseInt(e.value[0].den,10)):"cut_time"===e.type?(t=2,i=2):"common_time"===e.type&&(t=4,i=4)),this.meter={num:t,den:i},this.meter},this.getKeySignature=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff)for(var i=0;i<t.staff.length;i++)if(t.staff[i].key)return t.staff[i].key}return{}},this.getCurrentVoice=function(){return void 0!==this.lines[this.lineNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]?this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]:null},this.setCurrentVoice=function(e,t){this.staffNum=e,this.voiceNum=t;for(var i=0;i<this.lines.length;i++)if(this.lines[i].staff&&(void 0===this.lines[i].staff[e]||void 0===this.lines[i].staff[e].voices[t]||!this.containsNotes(this.lines[i].staff[e].voices[t])))return void(this.lineNum=i);this.lineNum=i},this.addMetaText=function(e,t){void 0===this.metaText[e]?this.metaText[e]=t:this.metaText[e]+="\n"+t},this.addMetaTextArray=function(e,t){void 0===this.metaText[e]?this.metaText[e]=[t]:this.metaText[e].push(t)},this.addMetaTextObj=function(e,t){this.metaText[e]=t},this.addElementToEvents=function(e,t,i,s,a,n,c,o,h,l){if(t.hint)return{isTiedState:void 0,duration:0};var d=t.durationClass?t.durationClass:t.duration;if(t.abcelem.rest&&"spacer"===t.abcelem.rest.type&&(d=0),d>0){for(var f=[],u=0;u<t.elemset.length;u++)null!==t.elemset[u]&&f.push(t.elemset[u]);var p=t.startTie;if(void 0!==h)e["event"+h].elements.push(f),l&&(e["event"+i]||(e["event"+i]={type:"event",milliseconds:i,line:n,measureNumber:c,top:s,height:a,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),e["event"+i].measureStart=!0,l=!1),p||(h=void 0);else{if(e["event"+i]){if(e["event"+i].left?e["event"+i].left=Math.min(e["event"+i].left,t.x):e["event"+i].left=t.x,e["event"+i].elements.push(f),e["event"+i].startCharArray.push(t.abcelem.startChar),e["event"+i].endCharArray.push(t.abcelem.endChar),null===e["event"+i].startChar&&(e["event"+i].startChar=t.abcelem.startChar),null===e["event"+i].endChar&&(e["event"+i].endChar=t.abcelem.endChar),t.abcelem.midiPitches&&t.abcelem.midiPitches.length){e["event"+i].midiPitches||(e["event"+i].midiPitches=[]);for(u=0;u<t.abcelem.midiPitches.length;u++)e["event"+i].midiPitches.push(t.abcelem.midiPitches[u])}if(t.abcelem.midiGraceNotePitches&&t.abcelem.midiGraceNotePitches.length){e["event"+i].midiGraceNotePitches||(e["event"+i].midiGraceNotePitches=[]);for(var m=0;m<t.abcelem.midiGraceNotePitches.length;m++)e["event"+i].midiGraceNotePitches.push(t.abcelem.midiGraceNotePitches[m])}}else e["event"+i]={type:"event",milliseconds:i,line:n,measureNumber:c,top:s,height:a,left:t.x,width:t.w,elements:[f],startChar:t.abcelem.startChar,endChar:t.abcelem.endChar,startCharArray:[t.abcelem.startChar],endCharArray:[t.abcelem.endChar],midiPitches:t.abcelem.midiPitches?r.cloneArray(t.abcelem.midiPitches):[]},t.abcelem.midiGraceNotePitches&&(e["event"+i].midiGraceNotePitches=r.cloneArray(t.abcelem.midiGraceNotePitches));l&&(e["event"+i].measureStart=!0,l=!1),p&&(h=i)}}return{isTiedState:h,duration:d/o,nextIsBar:l||"bar"===t.type}},this.makeVoicesArray=function(){for(var e=[],t=0;t<this.engraver.staffgroups.length;t++)for(var i=this.engraver.staffgroups[t],r=i.staffs[0],s=r.absoluteY,n=s-r.top*a.STEP,c=i.staffs[i.staffs.length-1],o=(s=c.absoluteY)-c.bottom*a.STEP-n,h=i.voices,l=0;l<h.length;l++){var d=0,f=!1;e[l]||(e[l]=[]);for(var u=h[l].children,p=0;p<u.length;p++)e[l].push({top:n,height:o,line:t,measureNumber:d,elem:u[p]}),"bar"===u[p].type&&f&&d++,"note"!==u[p].type&&"rest"!==u[p].type||(f=!0)}return e},this.setupEvents=function(e,t,i){for(var r,s=[],a={},n=e,c=!0,o=this.makeVoicesArray(),h=0;h<o.length;h++)for(var l=n,d=Math.round(1e3*l),f=0,u=-1,p=o[h],m=0;m<p.length;m++){var g=p[m].elem;if("tempo"===g.abcelem.el_type){i=this.getBpm(g.abcelem);t=this.getBeatLength()*(i/60)}var v=this.addElementToEvents(a,g,d,p[m].top,p[m].height,p[m].line,p[m].measureNumber,t,r,c);if(r=v.isTiedState,c=v.nextIsBar,l+=v.duration,d=Math.round(1e3*l),"bar"===g.type){var b=g.abcelem.type,y="bar_right_repeat"===b||"bar_dbl_repeat"===b,w="1"===g.abcelem.startEnding,x="bar_left_repeat"===b||"bar_dbl_repeat"===b||"bar_right_repeat"===b;if(y){-1===u&&(u=m);for(var k=f;k<u;k++){var A=p[k].elem;r=(v=this.addElementToEvents(a,A,d,p[k].top,p[k].height,p[k].line,p[k].measureNumber,t,r,c)).isTiedState,c=v.nextIsBar,l+=v.duration,d=Math.round(1e3*l)}c=!0,u=-1}w&&(u=m),x&&(f=m)}}return function(e){for(var t,i,r,s,a=e.length-1;a>=0;a--){var n=e[a];"bar"===n.type?(n.top=r,n.nextTop=t,t=r,n.bottom=s,n.nextBottom=i,i=s):"event"===n.type&&(r=n.top,s=n.top+n.height)}}(s=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(e[i]);return t=t.sort((function(e,t){var i=e.milliseconds-t.milliseconds;return 0!==i?i:"bar"===e.type?-1:1}))}(a)),s.push({type:"end",milliseconds:d}),this.addUsefulCallbackInfo(s,i),s},this.addUsefulCallbackInfo=function(e,t){for(var i=this.millisecondsPerMeasure(t),r=0;r<e.length;r++){e[r].millisecondsPerMeasure=i}},this.getBpm=function(e){var t;if(e){t=e.bpm;var i=this.getBeatLength();t=t*(e.duration&&e.duration.length>0?e.duration[0]:i)/i}if(!t){t=180;var r=this.getMeterFraction();r&&8===r.den&&(t=120)}return t},this.setTiming=function(e,t){if(!e){var i=this.metaText?this.metaText.tempo:null;e=this.getBpm(i)}var r=this.getBeatLength(),s=e/60,a=this.getBarLength()/r*t/s;a&&(a-=this.getPickupLength()/r/s);var n=r*s;this.noteTimings=this.setupEvents(a,n,e)}}},function(e,t,i){var r=i(1),s=i(20),a=i(34),n=function(e,t){t=t||{},this.responsive=t.responsive,this.space=3*r.SPACE,this.scale=t.scale?parseFloat(t.scale):0,this.scale>.1||(this.scale=void 0),t.staffwidth?(this.staffwidthScreen=t.staffwidth,this.staffwidthPrint=t.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.editable=t.editable||!1,this.listeners=[],t.clickListener&&this.addSelectListener(t.clickListener),this.renderer=new a(e,t.regression,t.add_classes),this.renderer.setPaddingOverride(t),this.renderer.controller=this,this.reset()};function c(e,t,i,r,s,a,n){return e&&r/i<.66&&!t?null:Math.abs(i-r)<2?null:a>0?((s=(i-(r-a*s))/a)*n>50&&(s=50/n),s):null}n.prototype.reset=function(){this.selected=[],this.ingroup=!1,this.staffgroups=[],this.lastStaffGroupIndex=-1,this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset()},n.prototype.engraveABC=function(e,t){void 0===e[0]&&(e=[e]),this.reset();for(var i=0;i<e.length;i++)void 0===t&&(t=i),this.engraveTune(e[i],t);if(this.renderer.doRegression)return this.renderer.regressionLines.join("\n")},n.prototype.adjustNonScaledItems=function(e){this.width/=e,this.renderer.adjustNonScaledItems(e)},n.prototype.getMeasureWidths=function(e){this.reset(),this.renderer.lineNumber=null,this.renderer.newTune(e),this.engraver=new s(this.renderer,0,{bagpipes:e.formatting.bagpipes,flatbeams:e.formatting.flatbeams}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),e.formatting.staffwidth?this.width=1.33*e.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var t=e.formatting.scale?e.formatting.scale:this.scale;"resize"===this.responsive&&(t=void 0),void 0===t&&(t=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(t);var i={left:0,measureWidths:[],height:0,total:0};i.height=this.renderer.padding.top+this.renderer.spacing.music+this.renderer.padding.bottom+24;for(var a=!1,n=0;n<e.lines.length;n++){var c=e.lines[n];if(c.staff){if(c.staffGroup=this.engraver.createABCLine(c.staff,a?null:e.metaText.tempo),c.staffGroup.layout(0,this.renderer,!1),c.staffGroup.voices.length>0)for(var o=c.staffGroup.voices[0],h=!1,l=0,d=0;d<o.children.length;d++){var f=o.children[d];h||f.isClef||f.isKeySig||(h=!0,i.left=f.x,l=f.x),"bar"===f.type&&(i.measureWidths.push(f.x-l),i.total+=f.x-l,l=f.x)}a=!0,i.height+=c.staffGroup.calcHeight()*r.STEP}}return i},n.prototype.engraveTune=function(e,t){this.renderer.lineNumber=null,this.renderer.newTune(e),this.engraver=new s(this.renderer,t,{bagpipes:e.formatting.bagpipes,flatbeams:e.formatting.flatbeams}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),this.engraver.measureLength=e.getMeterFraction().num/e.getMeterFraction().den,e.formatting.staffwidth?this.width=1.33*e.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var i,r,a=e.formatting.scale?e.formatting.scale:this.scale;"resize"===this.responsive&&(a=void 0),void 0===a&&(a=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(a);var n=!1;for(i=0;i<e.lines.length;i++)(r=e.lines[i]).staff&&(r.staffGroup=this.engraver.createABCLine(r.staff,n?null:e.metaText.tempo),n=!0);var c=this.width;for(i=0;i<e.lines.length;i++)(r=e.lines[i]).staff&&(this.setXSpacing(r.staffGroup,e.formatting,i===e.lines.length-1,!1),r.staffGroup.w>c&&(c=r.staffGroup.w));for(i=0;i<e.lines.length;i++)if((r=e.lines[i]).staffGroup&&r.staffGroup.voices){for(var o=0;o<r.staffGroup.voices.length;o++)r.staffGroup.voices[o].layoutBeams();r.staffGroup.setUpperAndLowerElements(this.renderer)}for(i=0;i<e.lines.length;i++)(r=e.lines[i]).staffGroup&&(r.staffGroup.height=r.staffGroup.calcHeight());this.renderer.topMargin(e),this.renderer.engraveTopText(this.width,e),this.renderer.addMusicPadding(),this.staffgroups=[],this.lastStaffGroupIndex=-1;for(var h=0;h<e.lines.length;h++)this.renderer.lineNumber=h,(r=e.lines[h]).staff?this.engraveStaffLine(r.staffGroup):r.subtitle&&0!==h?this.renderer.outputSubtitle(this.width,r.subtitle):void 0!==r.text?this.renderer.outputFreeText(r.text,r.vskip):void 0!==r.separator&&this.renderer.outputSeparator(r.separator);this.renderer.moveY(24),this.renderer.engraveExtraText(this.width,e),this.renderer.setPaperSize(c,a,this.responsive)},n.prototype.setXSpacing=function(e,t,i,r){for(var s=this.space,a=0;a<8;a++){var n=e.layout(s,this.renderer,r);if(s=c(i,!!t.stretchlast&&t.stretchlast,this.width+this.renderer.padding.left,e.w,s,n.spacingUnits,n.minSpace),r&&console.log("setXSpace",a,e.w,s,e.minspace),null===s)break}!function(e){for(var t=0;t<e.length;t++)for(var i=e[t],r=1;r<i.children.length-1;r++){var s=i.children[r];if(s.abcelem.rest&&("whole"===s.abcelem.rest.type||"multimeasure"===s.abcelem.rest.type)){var a=i.children[r-1],n=(i.children[r+1].x-a.x)/2+a.x;s.x=n-s.w/2;for(var c=0;c<s.children.length;c++)s.children[c].x=s.x}}}(e.voices)},n.prototype.engraveStaffLine=function(e){this.lastStaffGroupIndex>-1&&this.renderer.addStaffPadding(this.staffgroups[this.lastStaffGroupIndex],e),this.renderer.voiceNumber=null,e.draw(this.renderer);var t=e.height*r.STEP;this.staffgroups[this.staffgroups.length]=e,this.lastStaffGroupIndex=this.staffgroups.length-1,this.renderer.y+=t},n.prototype.notifySelect=function(e,t,i){this.clearSelection(),e.highlight&&(this.selected=[e],e.highlight());for(var r=e.abcelem||{},s=0;s<this.listeners.length;s++)this.listeners[s](r,t,i)},n.prototype.clearSelection=function(){for(var e=0;e<this.selected.length;e++)this.selected[e].unhighlight();this.selected=[]},n.prototype.addSelectListener=function(e){this.listeners[this.listeners.length]=e},n.prototype.rangeHighlight=function(e,t){this.clearSelection();for(var i=0;i<this.staffgroups.length;i++)for(var r=this.staffgroups[i].voices,s=0;s<r.length;s++)for(var a=r[s].children,n=0;n<a.length;n++){var c=a[n].abcelem.startChar,o=a[n].abcelem.endChar;(t>c&&e<o||t===e&&t===o)&&(this.selected[this.selected.length]=a[n],a[n].highlight())}},e.exports=n},function(e,t,i){var r,s=i(4),a=i(21),n=i(22),c=i(23),o=i(24),h=i(25),l=i(26),d=i(29),f=i(3),u=i(2),p=i(1),m=i(30),g=i(31),v=i(10),b=i(32),y=i(33),w=i(0);!function(){"use strict";var e=function(e){var t=0;return e.duration&&(t=e.duration),t},t=!1,i={rest:{0:"rests.whole",1:"rests.half",2:"rests.quarter",3:"rests.8th",4:"rests.16th",5:"rests.32nd",6:"rests.64th",7:"rests.128th",multi:"rests.multimeasure"},note:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter",7:"noteheads.quarter",nostem:"noteheads.quarter"},rhythm:{"-1":"noteheads.slash.whole",0:"noteheads.slash.whole",1:"noteheads.slash.whole",2:"noteheads.slash.quarter",3:"noteheads.slash.quarter",4:"noteheads.slash.quarter",5:"noteheads.slash.quarter",6:"noteheads.slash.quarter",7:"noteheads.slash.quarter",nostem:"noteheads.slash.nostem"},x:{"-1":"noteheads.indeterminate",0:"noteheads.indeterminate",1:"noteheads.indeterminate",2:"noteheads.indeterminate",3:"noteheads.indeterminate",4:"noteheads.indeterminate",5:"noteheads.indeterminate",6:"noteheads.indeterminate",7:"noteheads.indeterminate",nostem:"noteheads.indeterminate"},harmonic:{"-1":"noteheads.harmonic.quarter",0:"noteheads.harmonic.quarter",1:"noteheads.harmonic.quarter",2:"noteheads.harmonic.quarter",3:"noteheads.harmonic.quarter",4:"noteheads.harmonic.quarter",5:"noteheads.harmonic.quarter",6:"noteheads.harmonic.quarter",7:"noteheads.harmonic.quarter",nostem:"noteheads.harmonic.quarter"},uflags:{3:"flags.u8th",4:"flags.u16th",5:"flags.u32nd",6:"flags.u64th"},dflags:{3:"flags.d8th",4:"flags.d16th",5:"flags.d32nd",6:"flags.d64th"}};function x(e,t){var i=e[t];if("note"!==i.el_type||!i.startBeam||i.endBeam)return{count:1,elem:i};for(var r=[];t<e.length&&"note"===e[t].el_type&&(r.push(e[t]),!e[t].endBeam);)t++;return{count:r.length,elem:r}}function k(e){if(e.pitches){A(e);for(var t=0,i=0;i<e.pitches.length;i++)t+=e.pitches[i].verticalPos;e.averagepitch=t/e.pitches.length,e.minpitch=e.pitches[0].verticalPos,e.maxpitch=e.pitches[e.pitches.length-1].verticalPos}}(r=function(e,t,i){this.decoration=new l,this.renderer=e,this.tuneNumber=t,this.isBagpipes=i.bagpipes,this.flatBeams=i.flatbeams,this.reset()}).prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.tripletmultiplier=1,this.abcline=void 0,this.accidentalSlot=void 0,this.accidentalshiftx=void 0,this.dotshiftx=void 0,this.hasVocals=!1,this.minY=void 0,this.partstartelem=void 0,this.startlimitelem=void 0,this.stemdir=void 0},r.prototype.setStemHeight=function(e){this.stemHeight=e/p.STEP},r.prototype.getCurrentVoiceId=function(e,t){return"s"+e+"v"+t},r.prototype.pushCrossLineElems=function(e,t){this.slursbyvoice[this.getCurrentVoiceId(e,t)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(e,t)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(e,t)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(e,t)]=this.voiceScale},r.prototype.popCrossLineElems=function(e,t){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(e,t)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(e,t)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(e,t)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(e,t)],void 0===this.voiceScale&&(this.voiceScale=1)},r.prototype.containsLyrics=function(e){for(var t=0;t<e.length;t++)for(var i=0;i<e[t].voices.length;i++)for(var r=0;r<e[t].voices[i].length;r++){var s=e[t].voices[i][r];if(s.lyric)return void(s.positioning&&"below"!==s.positioning.vocalPosition||(this.hasVocals=!0))}},r.prototype.createABCLine=function(e,i){this.minY=2,this.containsLyrics(e);var r=new m;this.tempoSet=!1;for(var s=0;s<e.length;s++)t&&this.restoreState(),t=!1,this.createABCStaff(r,e[s],i,s);return r},r.prototype.createABCStaff=function(e,t,i,r){for(var s=0;s<t.voices.length;s++){var a=new y(s,t.voices.length);0===s?(a.barfrom="start"===t.connectBarLines||"continue"===t.connectBarLines,a.barto="continue"===t.connectBarLines||"end"===t.connectBarLines):a.duplicate=!0,t.title&&t.title[s]&&(a.header=t.title[s]);var l=c(t.clef,this.tuneNumber);l&&(0===s&&t.barNumber&&this.addMeasureNumber(t.barNumber,l),a.addChild(l));var d=o(t.key,this.tuneNumber);if(d&&(a.addChild(d),this.startlimitelem=d),t.meter){"specified"===t.meter.type?this.measureLength=t.meter.value[0].num/t.meter.value[0].den:this.measureLength=1;var f=h(t.meter,this.tuneNumber);a.addChild(f),this.startlimitelem=f}a.duplicate&&(a.children=[]);var u=t.clef.stafflines||0===t.clef.stafflines?t.clef.stafflines:5;e.addVoice(a,r,u);var p=1===u;this.createABCVoice(t.voices[s],i,r,s,p,a),e.setStaffLimits(a),"start"===t.brace?e.brace=new n(1,!0):"end"===t.brace&&e.brace?e.brace.increaseStavesIncluded():"continue"===t.brace&&e.brace&&e.brace.increaseStavesIncluded()}},r.prototype.createABCVoice=function(e,i,r,a,n,c){this.popCrossLineElems(r,a),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new d("",null,null),c.addOther(this.partstartelem));var o=c.voicetotal<2?-1:c.voicenumber;for(var h in this.slurs)this.slurs.hasOwnProperty(h)&&(this.slurs[h]=new v({force:this.slurs[h].force,voiceNumber:o,stemDir:this.slurs[h].stemDir}),t&&this.slurs[h].setHint(),c.addOther(this.slurs[h]));for(var l=0;l<this.ties.length;l++)this.ties[l]=new v({force:this.ties[l].force,stemDir:this.ties[l].stemDir,voiceNumber:o}),t&&this.ties[l].setHint(),c.addOther(this.ties[l]);for(var f=0;f<this.abcline.length;f++)k(this.abcline[f]),this.minY=Math.min(this.abcline[f].minpitch,this.minY);for(var u=0===r,p=0;p<this.abcline.length;){var m=x(this.abcline,p),b=this.createABCElement(u,n,c,m.elem);if(b)for(l=0;l<b.length;l++){if(!this.tempoSet&&i&&!i.suppress){this.tempoSet=!0;var y=new s(m.elem,0,0,"tempo",this.tuneNumber,{});y.addChild(new g(i,this.tuneNumber,T)),c.addChild(y)}c.addChild(b[l])}p+=m.count}this.pushCrossLineElems(r,a)},r.prototype.saveState=function(){this.tiesSave=w.cloneArray(this.ties),this.slursSave=w.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=w.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=w.cloneHashOfArrayOfHash(this.tiesbyvoice)},r.prototype.restoreState=function(){this.ties=w.cloneArray(this.tiesSave),this.slurs=w.cloneHashOfHash(this.slursSave),this.slursbyvoice=w.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=w.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)},r.prototype.createABCElement=function(e,i,r,a){var n=[];switch(a.el_type){case void 0:n=this.createBeam(i,r,a);break;case"note":n[0]=this.createNote(a,!1,i,r),this.triplet&&this.triplet.isClosed()&&(r.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":n[0]=this.createBarLine(r,a,e),r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"meter":n[0]=h(a,this.tuneNumber),this.startlimitelem=n[0],r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"clef":if(n[0]=c(a,this.tuneNumber),!n[0])return null;r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"key":var l=o(a,this.tuneNumber);l&&(n[0]=l,this.startlimitelem=n[0]),r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"stem":this.stemdir=a.direction;break;case"part":var d=new s(a,0,0,"part",this.tuneNumber),f=this.renderer.getTextSize(a.title,"partsfont","part");d.addChild(new u(a.title,0,0,void 0,{type:"part",height:f.height/p.STEP})),n[0]=d;break;case"tempo":var m=new s(a,0,0,"tempo",this.tuneNumber);m.addChild(new g(a,this.tuneNumber,T)),n[0]=m;break;case"style":"normal"===a.head?delete this.style:this.style=a.head;break;case"hint":t=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=a.size;break;default:var v=new s(a,0,0,"unsupported",this.tuneNumber);v.addChild(new u("element type "+a.el_type,0,0,void 0,{type:"debug"})),n[0]=v}return n},r.prototype.calcBeamDir=function(e,t,i){if(this.stemdir)return this.stemdir;for(var r=new a(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams),s=0;s<i.length;s++)r.add({abcelem:i[s]});return r.calcDir()?"up":"down"},r.prototype.createBeam=function(e,i,r){var s=[],n=this.calcBeamDir(e,i,r),c=new a(this.stemHeight*this.voiceScale,n,this.flatBeams);t&&c.setHint();var o=this.stemdir;this.stemdir=n;for(var h=0;h<r.length;h++){var l=r[h],d=this.createNote(l,!0,e,i);s.push(d),c.add(d),this.triplet&&this.triplet.isClosed()&&(i.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return this.stemdir=o,i.addBeam(c),s};var A=function(e){var t;do{t=!0;for(var i=0;i<e.pitches.length-1;i++)if(e.pitches[i].pitch>e.pitches[i+1].pitch){t=!1;var r=e.pitches[i];e.pitches[i]=e.pitches[i+1],e.pitches[i+1]=r}}while(!t)},N=function(e,t,i,r,s,a,n,c,o){for(var h=i;h>11;h--)h%2!=0||r||e.addChild(new u(null,c,(s+4)*o,h,{type:"ledger"}));for(h=t;h<1;h++)h%2!=0||r||e.addChild(new u(null,c,(s+4)*o,h,{type:"ledger"}));for(h=0;h<a.length;h++){var l=s;"down"===n&&(l=-l),e.addChild(new u(null,l+c,(s+4)*o,a[h],{type:"ledger"}))}};function S(e,t){for(var i=0;i<e.length;i++)if(JSON.stringify(e[i])===JSON.stringify(t))return;e.push(t)}r.prototype.addGraceNotes=function(e,r,s,n,c,o,h){var l,d=null;e.gracenotes.length>1&&(d=new a(.7*c,"grace",o),t&&d.setHint(),d.mainNote=s);var p,m=[];for(p=e.gracenotes.length-1;p>=0;p--)h+=10,m[p]=h,e.gracenotes[p].accidental&&(h+=7);for(p=0;p<e.gracenotes.length;p++){var g=e.gracenotes[p].verticalPos;l=d?null:i.uflags[o?5:3];var b=T(s,"noteheads.quarter",e.gracenotes[p],"up",-m[p],-m[p],l,0,0,.6*this.voiceScale,[],!1);b.notehead.highestVert=b.notehead.pitch+.7*c;var y=b.notehead;if(this.addSlursAndTies(s,e.gracenotes[p],y,r,"up",!0),s.addExtra(y),e.gracenotes[p].acciaccatura){var w=e.gracenotes[p].verticalPos+4.2,x=d?5:6;s.addRight(new u("flags.ugrace",-m[p]+x,0,w,{scalex:.6,scaley:.6}))}if(d){var k=e.gracenotes[p].duration/2;o&&(k/=2);var A={heads:[y],abcelem:{averagepitch:g,minpitch:g,maxpitch:g,duration:k}};d.add(A)}else{var S=g+1/3*.6,_=g+4.2,C=y.dx+y.w;s.addExtra(new u(null,C,0,S,{type:"stem",pitch2:_,linewidth:-.6}))}if(N(s,g,g,!1,f.getSymbolWidth("noteheads.quarter"),[],!0,y.dx-1,.6),0===p&&!o&&(!e.rest||"spacer"!==e.rest.type&&"invisible"!==e.rest.type)){1===e.gracenotes.length&&(y.pitch,n.pitch);r.addOther(new v({anchor1:y,anchor2:n,isGrace:!0}))}}return d&&r.addBeam(d),h},r.prototype.addNoteToAbcElement=function(t,r,s,a,n,c,o,h,l){var d,p,m,g,v,b=0,y=0,w=0,x=[],k=[],A=0,N=r.averagepitch>=6?"down":"up";for(a&&(N=a),(n=r.style?r.style:n)&&"normal"!==n||(n="note"),(g=c?i[n].nostem:i[n][-o])||console.log("noteSymbol:",n,o,c),v="down"===N?r.pitches.length-2:1;"down"===N?v>=0:v<r.pitches.length;v="down"===N?v-1:v+1){var _=r.pitches["down"===N?v+1:v-1],C=r.pitches[v],E="down"===N?_.pitch-C.pitch:C.pitch-_.pitch;E<=1&&!_.printer_shift&&(C.printer_shift=E?"different":"same",(C.verticalPos>11||C.verticalPos<1)&&x.push(C.verticalPos-C.verticalPos%2),"down"===N?y=f.getSymbolWidth(g)+2:b=f.getSymbolWidth(g)+2)}var M=r.pitches.length;for(v=0;v<r.pitches.length;v++){var B,P;if(!h)B="down"===N&&0!==v||"up"===N&&v!==M-1?null:i["down"===N?"dflags":"uflags"][-o];if(P=r.pitches[v].style?i[r.pitches[v].style][-o]:g,r.pitches[v].highestVert=r.pitches[v].verticalPos,("up"===a||"up"===N)&&0===v||("down"===a||"down"===N)&&v===M-1){if((r.startSlur||1===M)&&(r.pitches[v].highestVert=r.pitches[M-1].verticalPos,e(r)<1&&("up"===a||"up"===N)&&(r.pitches[v].highestVert+=6)),r.startSlur)for(r.pitches[v].startSlur||(r.pitches[v].startSlur=[]),m=0;m<r.startSlur.length;m++)S(r.pitches[v].startSlur,r.startSlur[m]);if(r.endSlur)for(r.pitches[v].highestVert=r.pitches[M-1].verticalPos,e(r)<1&&("up"===a||"up"===N)&&(r.pitches[v].highestVert+=6),r.pitches[v].endSlur||(r.pitches[v].endSlur=[]),m=0;m<r.endSlur.length;m++)S(r.pitches[v].endSlur,r.endSlur[m])}var L=!h&&o<=-1,H=T(t,P,r.pitches[v],N,0,-y,B,s,b,this.voiceScale,k,!a);A=Math.max(f.getSymbolWidth(P),A),t.extraw-=H.extraLeft,(d=H.notehead)&&(this.addSlursAndTies(t,r.pitches[v],d,l,L?N:null,!1),r.gracenotes&&r.gracenotes.length>0&&(d.bottom=d.bottom-1),t.addHead(d)),y+=H.accidentalshiftx,w=Math.max(w,H.dotshiftx)}if(L){var z=7*this.voiceScale,I="down"===N?r.minpitch-z:r.minpitch+1/3;I>6&&!a&&(I=6);var D="down"===N?r.maxpitch-1/3:r.maxpitch+z;D<6&&!a&&(D=6);var O="down"===N||0===t.heads.length?0:t.heads[0].w,Y="down"===N?1:-1;"noteheads.slash.quarter"===d.c&&("down"===N?D-=1:I+=1),t.addExtra(new u(null,O,0,I,{type:"stem",pitch2:D,linewidth:Y})),p=Math.min(I,D)}return{noteHead:d,roomTaken:y,roomTakenRight:w,min:p,additionalLedgers:x,dir:N,symbolWidth:A}},r.prototype.addLyric=function(e,t){var i="";w.each(t.lyric,(function(e){var t=" "===e.divider?"":e.divider;i+=e.syllable+t+"\n"}));var r=this.renderer.getTextSize(i,"vocalfont","lyric"),s=t.positioning?t.positioning.vocalPosition:"below";e.addCentered(new u(i,0,r.width,void 0,{type:"lyric",position:s,height:r.height/p.STEP}))},r.prototype.addChord=function(e,t,i,r){for(var s=0;s<t.chord.length;s++){var a,n=0,c=this.renderer.getTextSize(t.chord[s].name,"annotationfont","annotation"),o=c.width,h=c.height/p.STEP;switch(t.chord[s].position){case"left":n=-(i+=o+7),a=t.averagepitch,e.addExtra(new u(t.chord[s].name,n,o+4,a,{type:"text",height:h}));break;case"right":n=r+=4,a=t.averagepitch,e.addRight(new u(t.chord[s].name,n,o+4,a,{type:"text",height:h}));break;case"below":e.addRight(new u(t.chord[s].name,0,o+8,void 0,{type:"text",position:"below",height:h}));break;case"above":e.addRight(new u(t.chord[s].name,0,o+8,void 0,{type:"text",height:h}));break;default:if(t.chord[s].rel_position){var l=t.chord[s].rel_position.y+3*p.STEP;e.addChild(new u(t.chord[s].name,n+t.chord[s].rel_position.x,0,t.minpitch+l/p.STEP,{type:"text",height:h}))}else{var d="above";t.positioning&&t.positioning.chordPosition&&(d=t.positioning.chordPosition),h=(c=this.renderer.getTextSize(t.chord[s].name,"gchordfont","chord")).height/p.STEP,o=c.width,e.addCentered(new u(t.chord[s].name,n,o,void 0,{type:"chord",position:d,height:h}))}}}return{roomTaken:i,roomTakenRight:r}},r.prototype.createNote=function(r,a,n,c){var o,h=null,l=0,d=0,p=0,m=[],g=e(r),v=!1;0===g&&(v=!0,g=.25,a=!0);for(var y=Math.floor(Math.log(g)/Math.log(2)),w=0,x=Math.pow(2,y),k=x/2;x<g;w++,x+=k,k/=2);r.startTriplet&&(this.tripletmultiplier=r.tripletMultiplier);var A=g*this.tripletmultiplier;r.rest&&"multimeasure"===r.rest.type&&(A=1);var S=r.rest?"rest":"note",_=new s(r,A,1,S,this.tuneNumber,{durationClassOveride:r.duration*this.tripletmultiplier});if(t&&_.setHint(),r.rest){this.measureLength===g&&"invisible"!==r.rest.type&&"spacer"!==r.rest.type&&(r.rest.type="whole");var C=function(e,t,r,s,a,n,c,o,h){var l,d,p,m,g=7;switch(a&&("down"===n&&(g=3),"up"===n&&(g=11)),c&&(g=r<.5?7:r<1?7:5),t.rest.type){case"whole":l=i.rest[0],t.averagepitch=g,t.minpitch=g,t.maxpitch=g,s=0;break;case"rest":l="rhythm"===t.style?i.rhythm[-o]:i.rest[-o],t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"invisible":case"spacer":l="",t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"multimeasure":l=i.rest.multi,t.averagepitch=g,t.minpitch=g,t.maxpitch=g,s=0;var v=f.getSymbolWidth(l);e.addHead(new u(l,-v,2*v,7));var b=new u(""+t.duration,0,v,16,{type:"multimeasure-text"});e.addExtra(b)}if("multimeasure"!==t.rest.type){var y=T(e,l,{verticalPos:g},null,0,0,null,s,0,h,[],!1);(d=y.notehead)&&(e.addHead(d),p=y.accidentalshiftx,m=y.dotshiftx)}return{noteHead:d,roomTaken:p,roomTakenRight:m}}(_,r,g,w,c.voicetotal>1,this.stemdir,n,y,this.voiceScale);h=C.noteHead,l=C.roomTaken,d=C.roomTakenRight}else{var E=this.addNoteToAbcElement(_,r,w,this.stemdir,this.style,v,y,a,c);void 0!==E.min&&(this.minY=Math.min(E.min,this.minY)),h=E.noteHead,l=E.roomTaken,d=E.roomTakenRight,m=E.additionalLedgers,o=E.dir,p=E.symbolWidth}if(void 0!==r.lyric&&this.addLyric(_,r),void 0!==r.gracenotes&&(l+=this.addGraceNotes(r,c,_,h,this.stemHeight*this.voiceScale,this.isBagpipes,l)),r.decoration&&this.decoration.createDecoration(c,r.decoration,_.top,h?h.w:0,_,l,o,_.bottom,r.positioning,this.hasVocals),r.barNumber&&_.addChild(new u(r.barNumber,-10,0,0,{type:"barNumber"})),N(_,r.minpitch,r.maxpitch,r.rest,p,m,o,-2,1),void 0!==r.chord){var M=this.addChord(_,r,l,d);l=M.roomTaken,d=M.roomTakenRight}return r.startTriplet&&(this.triplet=new b(r.startTriplet,h,{flatBeams:this.flatBeams})),r.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(h),!this.triplet||r.startTriplet||r.endTriplet||this.triplet.middleNote(h),_};var T=function(e,t,i,r,s,a,n,c,o,h,l,d){var p,m=i.verticalPos,g=0,v=0,b=0;if(void 0===t)e.addChild(new u("pitch is undefined",0,0,0,{type:"debug"}));else if(""===t)p=new u(null,0,0,m);else{var y=s;if(i.printer_shift){var w="same"===i.printer_shift?1:0;y="down"===r?-f.getSymbolWidth(t)*h+w:f.getSymbolWidth(t)*h-w}var x={scalex:h,scaley:h,thickness:f.symbolHeightInPitches(t)*h};if((p=new u(t,y,f.getSymbolWidth(t)*h,m,x)).stemDir=r,n){var k=m+("down"===r?-7:7)*h;d&&("down"===r&&k>6&&(k=6),"up"===r&&k<6&&(k=6));var A="down"===r?s:s+p.w-.6;e.addRight(new u(n,A,f.getSymbolWidth(n)*h,k,{scalex:h,scaley:h}))}for(v=p.w+o-2+5*c;c>0;c--){var N=1-Math.abs(m)%2;e.addRight(new u("dots.dot",p.w+o-2+5*c,f.getSymbolWidth("dots.dot"),m+N))}}if(p&&(p.highestVert=i.highestVert),i.accidental){var S;switch(i.accidental){case"quartersharp":S="accidentals.halfsharp";break;case"dblsharp":S="accidentals.dblsharp";break;case"sharp":S="accidentals.sharp";break;case"quarterflat":S="accidentals.halfflat";break;case"flat":S="accidentals.flat";break;case"dblflat":S="accidentals.dblflat";break;case"natural":S="accidentals.nat"}for(var T=!1,_=a,C=0;C<l.length;C++)if(m-l[C][0]>=6){l[C][0]=m,_=l[C][1],T=!0;break}!1===T&&(_-=f.getSymbolWidth(S)*h+2,l.push([m,_]),g=f.getSymbolWidth(S)*h+2),e.addExtra(new u(S,_,f.getSymbolWidth(S),m,{scalex:h,scaley:h})),b=f.getSymbolWidth(S)/2}return{notehead:p,accidentalshiftx:g,dotshiftx:v,extraLeft:b}};r.prototype.addSlursAndTies=function(e,i,r,s,a,n){if(i.endTie&&this.ties.length>0){for(var c=!1,o=0;o<this.ties.length;o++)if(this.ties[o].anchor1&&this.ties[o].anchor1.pitch===r.pitch){this.ties[o].setEndAnchor(r),this.ties.splice(o,1),c=!0;break}c||(this.ties[0].setEndAnchor(r),this.ties.splice(0,1))}var h=s.voicetotal<2?-1:s.voicenumber;if(i.startTie){var l=new v({anchor1:r,force:"down"===this.stemdir||"up"===this.stemdir,stemDir:this.stemdir,isGrace:n,voiceNumber:h});t&&l.setHint(),this.ties[this.ties.length]=l,s.addOther(l),e.startTie=!0}if(i.endSlur)for(var d=0;d<i.endSlur.length;d++){var f=i.endSlur[d];this.slurs[f]?((p=this.slurs[f]).setEndAnchor(r),delete this.slurs[f]):(p=new v({anchor2:r,stemDir:this.stemdir,voiceNumber:h}),t&&p.setHint(),s.addOther(p)),this.startlimitelem&&p.setStartX(this.startlimitelem)}else if(!n)for(var u in this.slurs)this.slurs.hasOwnProperty(u)&&this.slurs[u].addInternalNote(r);if(i.startSlur)for(d=0;d<i.startSlur.length;d++){f=i.startSlur[d].label;var p=new v({anchor1:r,stemDir:this.stemdir,voiceNumber:h});t&&p.setHint(),this.slurs[f]=p,s.addOther(p)}},r.prototype.addMeasureNumber=function(e,t){var i=this.renderer.getTextSize(e,"measurefont","bar-number");t.addChild(new u(e,0,0,11+i.height/p.STEP,{type:"barNumber"}))},r.prototype.createBarLine=function(e,t,i){var r=new s(t,0,10,"bar",this.tuneNumber),a=null,n=0;t.barNumber&&this.addMeasureNumber(t.barNumber,r);var c="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type,o="bar_left_repeat"!==t.type&&"bar_thick_thin"!==t.type&&"bar_invisible"!==t.type,h="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type||"bar_left_repeat"===t.type||"bar_thin_thick"===t.type||"bar_thick_thin"===t.type,l="bar_left_repeat"===t.type||"bar_thick_thin"===t.type||"bar_thin_thin"===t.type||"bar_dbl_repeat"===t.type,f="bar_left_repeat"===t.type||"bar_dbl_repeat"===t.type;if(c||f){for(var p in this.slurs)this.slurs.hasOwnProperty(p)&&this.slurs[p].setEndX(r);this.startlimitelem=r}if(c&&(r.addRight(new u("dots.dot",n,1,7)),r.addRight(new u("dots.dot",n,1,5)),n+=6),o&&(a=new u(null,n,1,2,{type:"bar",pitch2:10,linewidth:.6}),r.addRight(a)),"bar_invisible"===t.type&&(a=new u(null,n,1,2,{type:"none",pitch2:10,linewidth:.6}),r.addRight(a)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,h?3:1,r,0,"down",2,t.positioning,this.hasVocals),h&&(a=new u(null,n+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),r.addRight(a),n+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=a,this.partstartelem=null),l&&(a=new u(null,n+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),r.addRight(a)),f&&(n+=3,r.addRight(new u("dots.dot",n,1,7)),r.addRight(new u("dots.dot",n,1,5))),t.startEnding&&i){var m=this.renderer.getTextSize(t.startEnding,"repeatfont","").width;r.minspacing+=m+10,this.partstartelem=new d(t.startEnding,a,null),e.addOther(this.partstartelem)}return r.extraw-=5,r}}(),e.exports=r},function(e,t,i){i(4);var r,s=i(2),a=i(1),n=function(e){return void 0===e?0:Math.floor(Math.log(e)/Math.log(2))};!function(){"use strict";(r=function(e,t,i){this.isflat=i,this.isgrace=t&&"grace"===t,this.forceup=this.isgrace||t&&"up"===t,this.forcedown=t&&"down"===t,this.elems=[],this.total=0,this.allrests=!0,this.stemHeight=e,this.beams=[]}).prototype.setHint=function(){this.hint=!0},r.prototype.add=function(e){var t=e.abcelem.averagepitch;void 0!==t&&(this.allrests=this.allrests&&e.abcelem.rest,e.beam=this,this.elems.push(e),this.total+=t,(void 0===this.min||e.abcelem.minpitch<this.min)&&(this.min=e.abcelem.minpitch),(void 0===this.max||e.abcelem.maxpitch>this.max)&&(this.max=e.abcelem.maxpitch))};function e(e,t,i,r){if(!e.children)return r;for(var s=0;s<e.children.length;s++){var a=e.children[s];t&&void 0!==a.top&&"flags.ugrace"===a.c?r=Math.max(r,a.top-i):t||void 0===a.bottom||"flags.ugrace"!==a.c||(r=Math.max(r,i-a.bottom+7))}return r}function t(e,t){return t?e/t:0}function i(e,t,i,r,s){return t+(r-t)/(i-e)*(s-e)}function c(e,t,i,r,s,a,n){var c="beam-elem";n&&(c+=" abcjs-hint");var o="M"+t+" "+(i=e.calcY(i))+" L"+r+" "+(s=e.calcY(s))+"L"+r+" "+(s+a)+" L"+t+" "+(i+a)+"z";e.printPath({path:o,stroke:"none",fill:"#000000",class:e.addClasses(c)})}r.prototype.calcDir=function(){return!!this.forceup||!this.forcedown&&t(this.total,this.elems.length)<6},r.prototype.layout=function(){if(0!==this.elems.length&&!this.allrests){this.stemsUp=this.calcDir();var r=function(e,t){var i=e?a.STEP:-a.STEP;t&&(i*=.4);return i}(this.stemsUp,this.isgrace),c=this.elems[0],o=this.elems[this.elems.length-1],h=0,l=this.stemsUp?c.abcelem.maxpitch:c.abcelem.minpitch;h=e(c,this.stemsUp,l,h),h=e(o,this.stemsUp,l,h),h=Math.max(this.stemHeight,h+3);var d=function(e,i,r,s,a,n,c,o,h,l){var d=t(e,i),f=r-2,u=r-2,p=Math.round(s?Math.max(d+f,h+u):Math.min(d-f,o-u)),m=function(e,t,i,r){if(r)return 0;var s=e-t,a=i/2;s>a&&(s=a);s<-a&&(s=-a);return s}(a,n,i,c),g=p+Math.floor(m/2),v=p+Math.floor(-m/2);l||(s&&p<6?(g=6,v=6):!s&&p>6&&(g=6,v=6));return[g,v]}(this.total,this.elems.length,h,this.stemsUp,c.abcelem.averagepitch,o.abcelem.averagepitch,this.isflat,this.min,this.max,this.isgrace),f=function(e,t,i){var r=t.heads[e?0:t.heads.length-1],s=i.heads[e?0:i.heads.length-1],a=r.x;e&&(a+=r.w-.6);var n=s.x;e&&(n+=s.w);return[a,n]}(this.stemsUp,c,o);this.beams.push({startX:f[0],endX:f[1],startY:d[0],endY:d[1],dy:r});for(var u=function(e,t,r,s,a){for(var c=[],o=[],h=0;h<e.length;h++){var l=e[h];if(!l.abcelem.rest){var d=l.heads[t?0:l.heads.length-1],f=d.x+(t?d.w:0),u=i(r.startX,r.startY,r.endX,r.endY,f),p=t?-1.5:1.5;s&&(p=2*p/3);var m=l.abcelem.duration;0===m&&(m=.25);for(var g=n(m);g<-3;g++)o[-4-g]?o[-4-g].single=!1:o[-4-g]={x:f+(t?-.6:0),y:u+p*(-4-g+1),durlog:g,single:!0};for(var v=o.length-1;v>=0;v--)if(h===e.length-1||n(e[h+1].abcelem.duration)>-v-4){var b=f,y=u+p*(v+1);o[v].single&&(b=0===h?f+5:f-5,y=i(r.startX,r.startY,r.endX,r.endY,b)+p*(v+1)),c.push({startX:o[v].x,endX:b,startY:o[v].y,endY:y,dy:a}),o=o.slice(0,v)}}}return c}(this.elems,this.stemsUp,this.beams[0],this.isgrace,r),p=0;p<u.length;p++)this.beams.push(u[p]);!function(e,t,r,n,c){for(var o=0;o<e.length;o++){var h=e[o];if(!h.abcelem.rest){var l=!h.addExtra,d=l?c:h,f=h.heads[t?0:h.heads.length-1],u=f.pitch+(t?.2:-.2),p=t?f.w:0,m=f.x+p,g=i(r.startX,r.startY,r.endX,r.endY,m),v=t?-.6:.6;t||(g-=n/2/a.STEP),l&&(p+=h.heads[0].dx),"noteheads.slash.quarter"===f.c&&(t?u+=1:u-=1);var b=new s(null,p,0,u,{type:"stem",pitch2:g,linewidth:v});b.setX(d.x),d.addExtra(b)}}}(this.elems,this.stemsUp,this.beams[0],r,this.mainNote)}},r.prototype.isAbove=function(){return this.stemsUp},r.prototype.heightAtMidpoint=function(e,t){if(0===this.beams.length)return 0;var r=this.beams[0],s=e+(t-e)/2;return i(r.startX,r.startY,r.endX,r.endY,s)},r.prototype.yAtNote=function(e){var t=this.beams[0];return i(t.startX,t.startY,t.endX,t.endY,e.x)},r.prototype.xAtMidpoint=function(e,t){return e+(t-e)/2},r.prototype.draw=function(e){if(0!==this.beams.length){e.beginGroup();for(var t=0;t<this.beams.length;t++){var i=this.beams[t];c(e,i.startX,i.startY,i.endX,i.endY,i.dy,this.hint)}e.endGroup("beam-elem")}}}(),e.exports=r},function(e,t){var i=function(){this.length=1};i.prototype.increaseStavesIncluded=function(){this.length++},i.prototype.setLocation=function(e){this.x=e},i.prototype.getWidth=function(){return 10},i.prototype.layout=function(e,t,i){this.startY=t,this.endY=i},i.prototype.draw=function(e,t,i){this.layout(e,t,i),e.drawBrace(this.x,this.startY,this.endY)},e.exports=i},function(e,t,i){var r,s=i(4),a=i(3),n=i(2);!function(){"use strict";r=function(e,t){var i,r=0,c=new s(e,0,10,"staff-extra",t);switch(c.isClef=!0,e.type){case"treble":i="clefs.G";break;case"tenor":case"alto":i="clefs.C";break;case"bass":i="clefs.F";break;case"treble+8":i="clefs.G",r=1;break;case"tenor+8":i="clefs.C",r=1;break;case"bass+8":i="clefs.F",r=1;break;case"alto+8":i="clefs.C",r=1;break;case"treble-8":i="clefs.G",r=-1;break;case"tenor-8":i="clefs.C",r=-1;break;case"bass-8":i="clefs.F",r=-1;break;case"alto-8":i="clefs.C",r=-1;break;case"none":return null;case"perc":i="clefs.perc";break;default:c.addChild(new n("clef="+e.type,0,0,void 0,{type:"debug"}))}if(i&&(c.addRight(new n(i,5,a.getSymbolWidth(i),e.clefPos)),"clefs.G"===i?(c.top=13,c.bottom=-1):(c.top=10,c.bottom=2),0!==r)){var o=(a.getSymbolWidth(i)-a.getSymbolWidth("8")*(2/3))/2;c.addRight(new n("8",5+o,a.getSymbolWidth("8")*(2/3),r>0?c.top+3:c.bottom-1,{scalex:2/3,scaley:2/3})),c.top+=2}return c}}(),e.exports=r},function(e,t,i){var r,s=i(4),a=i(3),n=i(2),c=i(0);!function(){"use strict";r=function(e,t){if(!e.accidentals||0===e.accidentals.length)return null;var i=new s(e,0,10,"staff-extra",t);i.isKeySig=!0;var r=0;return c.each(e.accidentals,(function(e){var t="sharp"===e.acc?"accidentals.sharp":"natural"===e.acc?"accidentals.nat":"accidentals.flat";i.addRight(new n(t,r,a.getSymbolWidth(t),e.verticalPos,{thickness:a.symbolHeightInPitches(t)})),r+=a.getSymbolWidth(t)+2}),this),i}}(),e.exports=r},function(e,t,i){var r,s=i(4),a=i(3),n=i(2);!function(){"use strict";r=function(e,t){var i=new s(e,0,10,"staff-extra",t);if("specified"===e.type)for(var r=0,c=0;c<e.value.length;c++)if(0!==c&&(i.addRight(new n("+",r+1,a.getSymbolWidth("+"),6,{thickness:a.symbolHeightInPitches("+")})),r+=a.getSymbolWidth("+")+2),e.value[c].den){for(var o=0,h=0;h<e.value[c].num.length;h++)o+=a.getSymbolWidth(e.value[c].num.charAt(h));var l=0;for(h=0;h<e.value[c].num.length;h++)l+=a.getSymbolWidth(e.value[c].den.charAt(h));var d=Math.max(o,l);i.addRight(new n(e.value[c].num,r+(d-o)/2,o,8,{thickness:a.symbolHeightInPitches(e.value[c].num.charAt(0))})),i.addRight(new n(e.value[c].den,r+(d-l)/2,l,4,{thickness:a.symbolHeightInPitches(e.value[c].den.charAt(0))})),r+=d}else{for(var f=0,u=0;u<e.value[c].num.length;u++)f+=a.getSymbolWidth(e.value[c].num.charAt(u));i.addRight(new n(e.value[c].num,r,f,6,{thickness:a.symbolHeightInPitches(e.value[c].num.charAt(0))})),r+=f}else"common_time"===e.type?i.addRight(new n("timesig.common",0,a.getSymbolWidth("timesig.common"),6,{thickness:a.symbolHeightInPitches("timesig.common")})):"cut_time"===e.type?i.addRight(new n("timesig.cut",0,a.getSymbolWidth("timesig.cut"),6,{thickness:a.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===e.type?i.addRight(new n("timesig.imperfectum",0,a.getSymbolWidth("timesig.imperfectum"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===e.type?i.addRight(new n("timesig.imperfectum2",0,a.getSymbolWidth("timesig.imperfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===e.type?i.addRight(new n("timesig.perfectum",0,a.getSymbolWidth("timesig.perfectum"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===e.type?i.addRight(new n("timesig.perfectum2",0,a.getSymbolWidth("timesig.perfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",e);return i}}(),e.exports=r},function(e,t,i){var r,s=i(27),a=i(28),n=i(3),c=i(2),o=i(10);!function(){"use strict";var e=function(e,t,i,r,s){function a(e,t){var a="down"===s?function(){if(0===r.heads.length)return 2;for(var e=r.heads[0].pitch,t=1;t<r.heads.length;t++)e=Math.min(e,r.heads[t].pitch);return e}()+1:function(){if(0===r.heads.length)return 10;for(var e=r.heads[0].pitch,t=1;t<r.heads.length;t++)e=Math.max(e,r.heads[t].pitch);return e}()+9;"down"!==s&&1===t&&a--;var o=i/2;o+="down"===s?-5:3;for(var h=0;h<t;h++)a-=1,r.addChild(new c(e,o,n.getSymbolWidth(e),a))}for(var o=0;o<e.length;o++)switch(e[o]){case"/":a("flags.ugrace",1);break;case"//":a("flags.ugrace",2);break;case"///":a("flags.ugrace",3);break;case"////":a("flags.ugrace",4)}};(r=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0}).prototype.dynamicDecoration=function(e,t,i,r){for(var s,n,c=0;c<t.length;c++)switch(t[c]){case"diminuendo(":this.startDiminuendoX=i,s=void 0;break;case"diminuendo)":s={start:this.startDiminuendoX,stop:i},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=i,n=void 0;break;case"crescendo)":n={start:this.startCrescendoX,stop:i},this.startCrescendoX=void 0}s&&e.addOther(new a(s.start,s.stop,">",r)),n&&e.addOther(new a(n.start,n.stop,"<",r))},r.prototype.createDecoration=function(t,i,r,a,h,l,d,f,u,p){u||(u={ornamentPosition:"above",volumePosition:p?"above":"below",dynamicPosition:p?"above":"below"}),function(e,t,i,r){for(var a=0;a<t.length;a++)switch(t[a]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var n=new s(i,t[a],r);e.addOther(n)}}(t,i,h,u.volumePosition),this.dynamicDecoration(t,i,h,u.dynamicPosition),e(i,0,a,h,d);var m=function(e,t,i,r,s,a,h,l){for(var d,f=0;f<t.length;f++){if("staccato"===t[f]||"tenuto"===t[f]||"accent"===t[f]){var u="scripts."+t[f];if("accent"===t[f]&&(u="scripts.sforzato"),d=void 0===d?"down"===h?i+2:l-2:"down"===h?d+2:d-2,"accent"===t[f])"up"===h?d--:d++;else switch(d){case 2:case 4:case 6:case 8:case 10:"up"===h?d--:d++}i>9&&d++;var p=r/2;"center"!==n.getSymbolAlign(u)&&(p-=n.getSymbolWidth(u)/2),s.addChild(new c(u,p,n.getSymbolWidth(u),d))}if("slide"===t[f]&&s.heads[0]){var m=s.heads[0].pitch,g=new c("",-a-15,0,(m-=2)-1),v=new c("",-a-5,0,m+1);s.addChild(g),s.addChild(v),e.addOther(new o({anchor1:g,anchor2:v,fixedY:!0}))}}return void 0===d&&(d=i),{above:d,below:s.bottom}}(t,i,r,a,h,l,d,f);m.above=Math.max(m.above,this.minTop);!function(e,t,i,r,s,a,o){function h(e,t){"above"===e?r.above+=t:r.below-=t}function l(e){var t;return"above"===e?(t=r.above)<a&&(t=a):(t=r.below)>o&&(t=o),t}function d(e,r){var s=l(r);i.addChild(new c(e,t/2,0,s+2,{type:"decoration",klass:"ornament",thickness:3})),h(r,5)}function f(e,r){var s=t/2;"center"!==n.getSymbolAlign(e)&&(s-=n.getSymbolWidth(e)/2);var a=n.symbolHeightInPitches(e)+1,o=l(r);o="above"===r?o+a/2:o-a/2,i.addChild(new c(e,s,n.getSymbolWidth(e),o,{klass:"ornament",thickness:n.symbolHeightInPitches(e)})),h(r,a)}for(var u={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},p=!1,m=0;m<e.length;m++)switch(e[m]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":d(e[m],s),p=!0;break;case"fine":d("FINE",s),p=!0;break;case"+":case"open":case"snap":case"wedge":case"thumb":case"shortphrase":case"mediumphrase":case"longphrase":case"trill":case"roll":case"irishroll":case"marcato":case"dmarcato":case"turn":case"uppermordent":case"pralltriller":case"mordent":case"lowermordent":case"downbow":case"upbow":case"fermata":case"breath":case"umarcato":case"coda":case"segno":f(u[e[m]],s),p=!0;break;case"invertedfermata":f(u[e[m]],"below"),p=!0;break;case"mark":i.klass="mark"}}(i,a,h,m,u.ornamentPosition,this.minTop,this.minBottom);!function(e,t,i){for(var r=0;r<e.length;r++)switch(e[r]){case"arpeggio":for(var s=t.abcelem.minpitch-1;s<=t.abcelem.maxpitch;s+=2)t.addExtra(new c("scripts.arpeggio",2*-n.getSymbolWidth("scripts.arpeggio")-i,0,s+2,{klass:"ornament",thickness:n.symbolHeightInPitches("scripts.arpeggio")}))}}(i,h,l)}}(),e.exports=r},function(e,t,i){i(1);var r=function(e,t,i){this.anchor=e,this.dec=t,"below"===i?this.volumeHeightBelow=5:this.volumeHeightAbove=5,this.pitch=void 0};r.prototype.setUpperAndLowerElements=function(e){this.volumeHeightAbove?this.pitch=e.volumeHeightAbove:this.pitch=e.volumeHeightBelow},r.prototype.draw=function(e,t,i){void 0===this.pitch&&window.console.error("Dynamic Element y-coordinate not set.");e.printSymbol(this.anchor.x,this.pitch,this.dec,1,1,e.addClasses("decoration"))},e.exports=r},function(e,t,i){var r=i(5),s=function(e,t,i,r){this.anchor1=e,this.anchor2=t,this.dir=i,"above"===r?this.dynamicHeightAbove=4:this.dynamicHeightBelow=4,this.pitch=void 0};s.prototype.setUpperAndLowerElements=function(e){this.dynamicHeightAbove?this.pitch=e.dynamicHeightAbove:this.pitch=e.dynamicHeightBelow},s.prototype.draw=function(e){void 0===this.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var t=e.calcY(this.pitch)+4;"<"===this.dir?(this.drawLine(e,t+4,t),this.drawLine(e,t+4,t+8)):(this.drawLine(e,t,t+4),this.drawLine(e,t+8,t+4))},s.prototype.drawLine=function(e,t,i){var s=this.anchor1?this.anchor1.x:0,a=this.anchor2?this.anchor2.x:800,n=r("M %f %f L %f %f",s,t,a,i);e.printPath({path:n,stroke:"#000000",class:e.addClasses("decoration")})},e.exports=s},function(e,t,i){var r=i(5),s=function(e,t,i){this.text=e,this.anchor1=t,this.anchor2=i,this.endingHeightAbove=5,this.pitch=void 0};s.prototype.setUpperAndLowerElements=function(e){this.pitch=e.endingHeightAbove-2},s.prototype.draw=function(e,t,i){void 0===this.pitch&&window.console.error("Ending Element y-coordinate not set.");var s,a=e.calcY(this.pitch);this.anchor1&&(t=this.anchor1.x+this.anchor1.w,s=r("M %f %f L %f %f",t,a,t,a+20),e.printPath({path:s,stroke:"#000000",fill:"#000000",class:e.addClasses("ending")}),e.renderText(t+5,e.calcY(this.pitch-.5),this.text,"repeatfont","ending","start")),this.anchor2&&(i=this.anchor2.x,s=r("M %f %f L %f %f",i,a,i,a+20),e.printPath({path:s,stroke:"#000000",fill:"#000000",class:e.addClasses("ending")})),s=r("M %f %f L %f %f",t,a,i,a),e.printPath({path:s,stroke:"#000000",fill:"#000000",class:e.addClasses("ending")})},e.exports=s},function(e,t,i){var r=i(1),s=function(){this.voices=[],this.staffs=[],this.brace=void 0};s.prototype.setLimit=function(e,t){t.specialY[e]&&(t.staff.specialY[e]?t.staff.specialY[e]=Math.max(t.staff.specialY[e],t.specialY[e]):t.staff.specialY[e]=t.specialY[e])},s.prototype.addVoice=function(e,t,i){var r=this.voices.length;this.voices[r]=e,this.staffs[t]?this.staffs[t].voices.push(r):this.staffs[this.staffs.length]={top:10,bottom:2,lines:i,voices:[r],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},e.staff=this.staffs[t]},s.prototype.setStaffLimits=function(e){e.staff.top=Math.max(e.staff.top,e.top),e.staff.bottom=Math.min(e.staff.bottom,e.bottom),this.setLimit("tempoHeightAbove",e),this.setLimit("partHeightAbove",e),this.setLimit("volumeHeightAbove",e),this.setLimit("dynamicHeightAbove",e),this.setLimit("endingHeightAbove",e),this.setLimit("chordHeightAbove",e),this.setLimit("lyricHeightAbove",e),this.setLimit("lyricHeightBelow",e),this.setLimit("chordHeightBelow",e),this.setLimit("volumeHeightBelow",e),this.setLimit("dynamicHeightBelow",e)},s.prototype.setUpperAndLowerElements=function(e){for(var t,i=0;i<this.staffs.length;i++){var s=this.staffs[i],a={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};0,s.specialY.lyricHeightAbove&&(s.top+=s.specialY.lyricHeightAbove,a.lyricHeightAbove=s.top),s.specialY.chordHeightAbove&&(s.top+=s.specialY.chordHeightAbove,a.chordHeightAbove=s.top),s.specialY.endingHeightAbove&&(s.specialY.chordHeightAbove?s.top+=2:s.top+=s.specialY.endingHeightAbove,a.endingHeightAbove=s.top),s.specialY.dynamicHeightAbove&&s.specialY.volumeHeightAbove?(s.top+=Math.max(s.specialY.dynamicHeightAbove,s.specialY.volumeHeightAbove),a.dynamicHeightAbove=s.top,a.volumeHeightAbove=s.top):s.specialY.dynamicHeightAbove?(s.top+=s.specialY.dynamicHeightAbove,a.dynamicHeightAbove=s.top):s.specialY.volumeHeightAbove&&(s.top+=s.specialY.volumeHeightAbove,a.volumeHeightAbove=s.top),s.specialY.partHeightAbove&&(s.top+=s.specialY.partHeightAbove,a.partHeightAbove=s.top),s.specialY.tempoHeightAbove&&(s.top+=s.specialY.tempoHeightAbove,a.tempoHeightAbove=s.top),s.specialY.lyricHeightBelow&&(a.lyricHeightBelow=s.bottom,s.bottom-=s.specialY.lyricHeightBelow),s.specialY.chordHeightBelow&&(a.chordHeightBelow=s.bottom,s.bottom-=s.specialY.chordHeightBelow),s.specialY.volumeHeightBelow&&s.specialY.dynamicHeightBelow?(a.volumeHeightBelow=s.bottom,a.dynamicHeightBelow=s.bottom,s.bottom-=Math.max(s.specialY.volumeHeightBelow,s.specialY.dynamicHeightBelow)):s.specialY.volumeHeightBelow?(a.volumeHeightBelow=s.bottom,s.bottom-=s.specialY.volumeHeightBelow):s.specialY.dynamicHeightBelow&&(a.dynamicHeightBelow=s.bottom,s.bottom-=s.specialY.dynamicHeightBelow);for(var n=0;n<s.voices.length;n++){this.voices[s.voices[n]].setUpperAndLowerElements(a)}if(void 0!==t){var c=t+(s.top-10),o=e.spacing.systemStaffSeparation/r.STEP-c;o>0&&(s.top+=o)}t=2-s.bottom}},s.prototype.finished=function(){for(var e=0;e<this.voices.length;e++)if(!this.voices[e].layoutEnded())return!1;return!0},s.prototype.layout=function(e,t,i){var r,s=0,a=1e3,n=function(e,t,i){for(var r=e.padding.left,s=0,a=0;a<t.length;a++)if(t[a].header){var n=e.getTextSize(t[a].header,"voicefont","");s=Math.max(s,n.width)}return s&&(s+=e.getTextSize("A","voicefont","").width),r+=s,i&&(i.setLocation(r),r+=i.getWidth()),r}(t,this.voices,this.brace);this.startx=n;var c=0;for(i&&console.log("init layout",e),r=0;r<this.voices.length;r++)this.voices[r].beginLayout(n);for(var o=0;!this.finished();){for(c=null,r=0;r<this.voices.length;r++)this.voices[r].layoutEnded()||c&&!(this.voices[r].getDurationIndex()<c)||(c=this.voices[r].getDurationIndex());var h=[],l=[];for(r=0;r<this.voices.length;r++){this.voices[r].getDurationIndex()-c>1e-7?l.push(this.voices[r]):h.push(this.voices[r])}o=0;var d=0;for(r=0;r<h.length;r++)h[r].getNextX()>n&&(n=h[r].getNextX(),o=h[r].getSpacingUnits(),d=h[r].spacingduration);for(s+=o,a=Math.min(a,o),i&&console.log("currentduration: ",c,s,a),r=0;r<h.length;r++){var f=h[r].layoutOneItem(n,e),u=f-n;if(u>0){n=f;for(var p=0;p<r;p++)h[p].shiftRight(u)}}for(r=0;r<l.length;r++)l[r].spacingduration-=d,l[r].updateNextX(n,e);for(r=0;r<h.length;r++){h[r].updateIndices()}}for(r=0;r<this.voices.length;r++)this.voices[r].getNextX()>n&&(n=this.voices[r].getNextX(),o=this.voices[r].getSpacingUnits());for(s+=o,this.w=n,r=0;r<this.voices.length;r++)this.voices[r].w=this.w;return{spacingUnits:s,minSpace:a}},s.prototype.calcHeight=function(){for(var e=0,t=0;t<this.voices.length;t++){var i=this.voices[t].staff;this.voices[t].duplicate||(e+=i.top,i.bottom<0&&(e+=-i.bottom))}return e},s.prototype.draw=function(e){e.addInvisibleMarker("abcjs-top-of-system");for(var t,i,s=e.y,a=0;a<this.staffs.length;a++){var n=this.staffs[a];e.moveY(r.STEP,n.top),n.absoluteY=e.y,n.bottom<0&&e.moveY(r.STEP,-n.bottom)}var c=0;e.measureNumber=null,e.noteNumber=null;for(var o=0;o<this.voices.length;o++){var h=this.voices[o].staff;e.y=h.absoluteY,e.voiceNumber=o,this.voices[o].duplicate||(t||(t=e.calcY(10)),i=e.calcY(2),0!==h.lines&&(e.measureNumber=null,e.noteNumber=null,e.printStave(this.startx,this.w,h.lines))),this.voices[o].draw(e,c),e.measureNumber=null,e.noteNumber=null,this.voices[o].duplicate||(c=e.calcY(2)),this.brace&&o===this.brace.length-1&&this.brace&&this.brace.draw(e,t,i)}e.measureNumber=null,e.noteNumber=null,this.staffs.length>1&&e.printStem(this.startx,.6,t,i),e.y=s},e.exports=s},function(e,t,i){var r,s=i(4),a=i(2);!function(){"use strict";(r=function(e,t,i){this.tempo=e,this.tuneNumber=t,this.tempoHeightAbove=5,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(i,e,t))}).prototype.setUpperAndLowerElements=function(e){if(this.pitch=e.tempoHeightAbove,this.top=e.tempoHeightAbove,this.bottom=e.tempoHeightAbove,this.note){var t=this.pitch-5+1;this.note.top=t,this.note.bottom=t;for(var i=0;i<this.note.children.length;i++){var r=this.note.children[i];r.top+=t,r.bottom+=t,r.pitch+=t,void 0!==r.pitch2&&(r.pitch2+=t)}}},r.prototype.setX=function(e){this.x=e},r.prototype.createNote=function(e,t,i){var r,n,c,o=t.duration[0],h=new s(t,o,1,"tempo",i);o<=1/32?(c="noteheads.quarter",n="flags.u32nd",r=0):o<=1/16?(c="noteheads.quarter",n="flags.u16th",r=0):o<=3/32?(c="noteheads.quarter",n="flags.u16nd",r=1):o<=1/8?(c="noteheads.quarter",n="flags.u8th",r=0):o<=3/16?(c="noteheads.quarter",n="flags.u8th",r=1):o<=.25?(c="noteheads.quarter",r=0):o<=3/8?(c="noteheads.quarter",r=1):o<=.5?(c="noteheads.half",r=0):o<=.75?(c="noteheads.half",r=1):o<=1?(c="noteheads.whole",r=0):o<=1.5?(c="noteheads.whole",r=1):o<=2?(c="noteheads.dbl",r=0):(c="noteheads.dbl",r=1);var l,d=e(h,c,{verticalPos:0},"up",0,0,n,r,0,.75,[],!1).notehead;if(h.addHead(d),"noteheads.whole"!==c&&"noteheads.dbl"!==c){var f=d.dx+d.w;l=new a(null,f,0,.25,{type:"stem",pitch2:5.25,linewidth:-.6}),h.addExtra(l)}return h},r.prototype.draw=function(e){var t=this.x;void 0===this.pitch&&window.console.error("Tempo Element y-coordinate not set.");var i,r=e.calcY(this.pitch);if(this.tempo.preString){i=e.renderText(t,r,this.tempo.preString,"tempofont","tempo","start");var s=e.getTextSize(this.tempo.preString,"tempofont","tempo",i),a=s.width;t+=a+a/this.tempo.preString.length}if(this.note){this.note&&this.note.setX(t);for(var n=0;n<this.note.children.length;n++)this.note.children[n].draw(e,t);t+=this.note.w+5;var c="= "+this.tempo.bpm;i=e.renderText(t,r,c,"tempofont","tempo","start");var o=(s=e.getTextSize(c,"tempofont","tempo",i)).width;t+=o+o/c.length}this.tempo.postString&&e.renderText(t,r,this.tempo.postString,"tempofont","tempo","start")}}(),e.exports=r},function(e,t,i){var r,s=i(5);!function(){"use strict";function e(e,t,i,r,a,n){var c=s("M %f %f L %f %f",t,i,r,a);e.printPath({path:c,stroke:"#000000",class:e.addClasses("triplet d"+n)})}(r=function(e,t,i){this.anchor1=t,this.number=e,this.duration=(""+t.parent.durationClass).replace(/\./,"-"),this.middleElems=[],this.flatBeams=i.flatBeams}).prototype.isClosed=function(){return this.anchor2},r.prototype.middleNote=function(e){this.middleElems.push(e)},r.prototype.setCloseAnchor=function(e){this.anchor2=e,this.anchor1.parent.beam&&(this.endingHeightAbove=4)},r.prototype.setUpperAndLowerElements=function(){},r.prototype.layout=function(){if(this.anchor1&&this.anchor2)if(this.hasBeam=this.anchor1.parent.beam&&this.anchor1.parent.beam===this.anchor2.parent.beam,this.hasBeam){var e=this.anchor1.parent.beam,t=e.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;this.yTextPos=e.heightAtMidpoint(t,this.anchor2.x),this.yTextPos+=e.isAbove()?3:-2,this.top=this.yTextPos+1,this.bottom=this.yTextPos-2,e.isAbove()&&(this.endingHeightAbove=4)}else{this.startNote=Math.max(this.anchor1.parent.top,9)+4,this.endNote=Math.max(this.anchor2.parent.top,9)+4,"rest"===this.anchor1.parent.type&&"rest"!==this.anchor2.parent.type?this.startNote=this.endNote:"rest"===this.anchor2.parent.type&&"rest"!==this.anchor1.parent.type&&(this.endNote=this.startNote);for(var i=0,r=0;r<this.middleElems.length;r++)i=Math.max(i,this.middleElems[r].top);((i+=4)>this.startNote||i>this.endNote)&&(this.startNote=i,this.endNote=i),this.flatBeams&&(this.startNote=Math.max(this.startNote,this.endNote),this.endNote=Math.max(this.startNote,this.endNote)),this.yTextPos=this.startNote+(this.endNote-this.startNote)/2,this.top=this.yTextPos+1}delete this.middleElems,delete this.flatBeams},r.prototype.draw=function(t){var i;if(this.hasBeam){var r=this.anchor1.parent.beam.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;i=this.anchor1.parent.beam.xAtMidpoint(r,this.anchor2.x)}else i=this.anchor1.x+(this.anchor2.x+this.anchor2.w-this.anchor1.x)/2,function(t,i,r,s,a,n){r=t.calcY(r),a=t.calcY(a);e(t,i,r,i,r+5,n),e(t,s,a,s,a+5,n);var c=i+(s-i)/2,o=(a-r)/(s-i),h=c-8;e(t,i,r,h,r+(h-i)*o,n);var l=c+8;e(t,l,r+(l-i)*o,s,a,n)}(t,this.anchor1.x,this.startNote,this.anchor2.x+this.anchor2.w,this.endNote,this.duration);t.renderText(i,t.calcY(this.yTextPos),""+this.number,"tripletfont",t.addClasses("triplet d"+this.duration),"middle",!0)}}(),e.exports=r},function(e,t,i){var r=i(0),s=function(e,t){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=e,this.voicetotal=t,this.bottom=7,this.top=7,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};s.prototype.addChild=function(e){if("bar"===e.type){for(var t=!0,i=0;t&&i<this.children.length;i++)"staff-extra"!==this.children[i].type&&"tempo"!==this.children[i].type&&(t=!1);t||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=e,this.setRange(e)},s.prototype.setLimit=function(e,t){var i=t.specialY;i||(i=t),i[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],i[e]):this.specialY[e]=i[e])},s.prototype.moveDecorations=function(e){for(var t=0;t<e.elems.length;t++){var i=e.elems[t];if(i.top)for(var r=e.yAtNote(i),s=0;s<i.children.length;s++){var a=i.children[s];if("ornament"===a.klass&&a.bottom-1.5<r){var n=r-a.bottom+1.5;a.bottom+=n,a.top+=n,a.pitch+=n,r=i.top=a.top}}}},s.prototype.adjustRange=function(e){void 0!==e.bottom&&(this.bottom=Math.min(this.bottom,e.bottom)),void 0!==e.top&&(this.top=Math.max(this.top,e.top))},s.prototype.setRange=function(e){this.adjustRange(e),this.setLimit("tempoHeightAbove",e),this.setLimit("partHeightAbove",e),this.setLimit("volumeHeightAbove",e),this.setLimit("dynamicHeightAbove",e),this.setLimit("endingHeightAbove",e),this.setLimit("chordHeightAbove",e),this.setLimit("lyricHeightAbove",e),this.setLimit("lyricHeightBelow",e),this.setLimit("chordHeightBelow",e),this.setLimit("volumeHeightBelow",e),this.setLimit("dynamicHeightBelow",e)},s.prototype.setUpperAndLowerElements=function(e){var t;for(t=0;t<this.children.length;t++){(i=this.children[t]).setUpperAndLowerElements(e)}for(t=0;t<this.otherchildren.length;t++){var i;"string"!=typeof(i=this.otherchildren[t])&&i.setUpperAndLowerElements(e)}},s.prototype.addOther=function(e){this.otherchildren.push(e),this.setRange(e)},s.prototype.addBeam=function(e){this.beams.push(e)},s.prototype.updateIndices=function(){this.layoutEnded()||(this.durationindex+=this.children[this.i].duration,"bar"===this.children[this.i].type&&(this.durationindex=Math.round(64*this.durationindex)/64),this.i++)},s.prototype.layoutEnded=function(){return this.i>=this.children.length},s.prototype.getDurationIndex=function(){return this.durationindex-(this.children[this.i]&&this.children[this.i].duration>0?0:5e-7)},s.prototype.getSpacingUnits=function(){return Math.sqrt(8*this.spacingduration)},s.prototype.getNextX=function(){return Math.max(this.minx,this.nextx)},s.prototype.beginLayout=function(e){this.i=0,this.durationindex=0,this.startx=e,this.minx=e,this.nextx=e,this.spacingduration=0},s.prototype.layoutOneItem=function(e,t){var i=this.children[this.i];if(!i)return 0;var r=e-this.minx,s=i.getExtraWidth();return r<s&&(0===this.i||"bar"!==i.type||"part"!==this.children[this.i-1].type&&"tempo"!==this.children[this.i-1].type)&&(e+=s-r),i.setX(e),this.spacingduration=i.duration,this.minx=e+i.getMinWidth(),this.i!==this.children.length-1&&(this.minx+=i.minspacing),this.updateNextX(e,t),e},s.prototype.updateNextX=function(e,t){this.nextx=e+t*Math.sqrt(8*this.spacingduration)},s.prototype.shiftRight=function(e){var t=this.children[this.i];t&&(t.setX(t.x+e),this.minx+=e,this.nextx+=e)},s.prototype.draw=function(e,t){var i,s=this.w-1;if(e.staffbottom=this.staff.bottom,e.measureNumber=null,e.noteNumber=null,this.header){var a=14-(this.voicenumber+1)*(12/(this.voicetotal+1));e.renderText(e.padding.left,e.calcY(a),this.header,"voicefont","staff-extra voice-name","start")}for(var n=0,c=this.children.length;n<c;n++){var o=this.children[n],h=!1;"staff-extra"!==o.type&&null===e.measureNumber&&(e.measureNumber=0,e.noteNumber=0,h=!0),o.draw(e,this.barto||n===c-1?t:0),("note"===o.type||"rest"===(i=o).type&&i.abcelem&&i.abcelem.rest&&"spacer"!==i.abcelem.rest.type)&&e.noteNumber++,"bar"!==o.type||h||(e.measureNumber++,e.noteNumber=0)}e.measureNumber=0,e.noteNumber=0,r.each(this.beams,(function(t){"bar"===t?(e.measureNumber++,e.noteNumber=0):t.draw(e)})),e.measureNumber=0,e.noteNumber=0;var l=this;r.each(this.otherchildren,(function(t){"bar"===t?(e.measureNumber++,e.noteNumber=0):t.draw(e,l.startx+10,s)}))},s.prototype.layoutBeams=function(){for(var e=0;e<this.beams.length;e++)if(this.beams[e].layout){this.beams[e].layout(),this.moveDecorations(this.beams[e]);for(var t=0;t<this.beams[e].elems.length;t++)this.adjustRange(this.beams[e].elems[t])}for(e=0;e<this.otherchildren.length;e++){var i=this.otherchildren[e];i.layout&&(i.layout(),this.adjustRange(i))}this.staff.top=Math.max(this.staff.top,this.top),this.staff.bottom=Math.min(this.staff.bottom,this.bottom)},e.exports=s},function(e,t,i){var r=i(3),s=i(1),a=i(5),n=i(35),c=function(e,t,i){this.paper=new n(e),this.controller=null,this.space=3*s.SPACE,this.padding={},this.doRegression=t,this.shouldAddClasses=i,this.doRegression&&(this.regressionLines=[]),this.reset()};c.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.lastM=null,this.ingroup=!1,this.path=null,this.isPrint=!1,this.initVerticalSpace(),this.doRegression&&(this.regressionLines=[])},c.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.measureNumber=null,this.noteNumber=null,this.setPrintMode("print"===e.media),this.setPadding(e)},c.prototype.createElemSet=function(){return this.paper.openGroup()},c.prototype.closeElemSet=function(){return this.paper.closeGroup()},c.prototype.setPrintMode=function(e){this.isPrint=e},c.prototype.setPaperSize=function(e,t,i){var r=(e+this.padding.right)*t,s=(this.y+this.padding.bottom)*t;this.isPrint&&(s=Math.max(s,1056)),this.doRegression&&this.regressionLines.push("PAPER SIZE: ("+r+","+s+")");var a="Sheet Music";this.abctune&&this.abctune.metaText&&this.abctune.metaText.title&&(a+=' for "'+this.abctune.metaText.title+'"'),this.paper.setTitle(a);var n={overflow:"hidden"};"resize"===i?this.paper.setResponsiveWidth(r,s):(n.width="",n.height=s+"px",t<1?(n.width=r+"px",this.paper.setSize(r/t,s/t)):this.paper.setSize(r,s)),this.paper.setScale(t),this.paper.setParentStyles(n)},c.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}},c.prototype.setPadding=function(e){function t(t,i,r,s,a){void 0!==e.formatting[r]?t.padding[i]=e.formatting[r]:void 0!==t.paddingOverride[i]?t.padding[i]=t.paddingOverride[i]:t.isPrint?t.padding[i]=s:t.padding[i]=a}t(this,"top","topmargin",38,15),t(this,"bottom","botmargin",38,15),t(this,"left","leftmargin",68,15),t(this,"right","rightmargin",68,15)},c.prototype.adjustNonScaledItems=function(e){this.padding.top/=e,this.padding.bottom/=e,this.padding.left/=e,this.padding.right/=e,this.abctune.formatting.headerfont.size/=e,this.abctune.formatting.footerfont.size/=e},c.prototype.initVerticalSpace=function(){this.spacing={composer:7.56,graceBefore:8.67,graceInside:10.67,graceAfter:16,info:0,lineSkipFactor:1.1,music:7.56,paragraphSkipFactor:.4,parts:11.33,slurHeight:1,staffSeparation:61.33,stemHeight:36.67,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:30.67,words:0}},c.prototype.setVerticalSpace=function(e){void 0!==e.staffsep&&(this.spacing.staffSeparation=4*e.staffsep/3),void 0!==e.composerspace&&(this.spacing.composer=4*e.composerspace/3),void 0!==e.partsspace&&(this.spacing.parts=4*e.partsspace/3),void 0!==e.textspace&&(this.spacing.text=4*e.textspace/3),void 0!==e.musicspace&&(this.spacing.music=4*e.musicspace/3),void 0!==e.titlespace&&(this.spacing.title=4*e.titlespace/3),void 0!==e.sysstaffsep&&(this.spacing.systemStaffSeparation=4*e.sysstaffsep/3),void 0!==e.subtitlespace&&(this.spacing.subtitle=4*e.subtitlespace/3),void 0!==e.topspace&&(this.spacing.top=4*e.topspace/3),void 0!==e.vocalspace&&(this.spacing.vocal=4*e.vocalspace/3),void 0!==e.wordsspace&&(this.spacing.words=4*e.wordsspace/3)},c.prototype.topMargin=function(e){this.moveY(this.padding.top)},c.prototype.addMusicPadding=function(){this.moveY(this.spacing.music)},c.prototype.addStaffPadding=function(e,t){var i=-(e.staffs[e.staffs.length-1].bottom-2),r=(t.staffs[0].top-10+i)*s.STEP;r<this.spacing.staffSeparation&&this.moveY(this.spacing.staffSeparation-r)},c.prototype.engraveTopText=function(e,t){if(t.metaText.header&&this.isPrint){var i=this.getTextSize("XXXX","headerfont","abcjs-header abcjs-meta-top").height;this.y-=i,this.outputTextIf(this.padding.left,t.metaText.header.left,"headerfont","header meta-top",0,null,"start"),this.outputTextIf(this.padding.left+e/2,t.metaText.header.center,"headerfont","header meta-top",0,null,"middle"),this.outputTextIf(this.padding.left+e,t.metaText.header.right,"headerfont","header meta-top",0,null,"end"),this.y+=i}if(this.isPrint&&this.moveY(this.spacing.top),this.outputTextIf(this.padding.left+e/2,t.metaText.title,"titlefont","title meta-top",this.spacing.title,0,"middle"),t.lines[0]&&this.outputTextIf(this.padding.left+e/2,t.lines[0].subtitle,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle"),t.metaText.rhythm||t.metaText.origin||t.metaText.composer){this.moveY(this.spacing.composer);var r=this.outputTextIf(this.padding.left,t.metaText.rhythm,"infofont","meta-top",0,null,"start"),s="";if(t.metaText.composer&&(s+=t.metaText.composer),t.metaText.origin&&(s+=" ("+t.metaText.origin+")"),s.length>0){var a=this.outputTextIf(this.padding.left+e,s,"composerfont","meta-top",0,null,"end");this.moveY(a[1])}else this.moveY(r[1]);this.moveY(-6)}this.outputTextIf(this.padding.left+e,t.metaText.author,"composerfont","meta-top",0,0,"end"),this.outputTextIf(this.padding.left,t.metaText.partOrder,"partsfont","meta-bottom",0,0,"start")},c.prototype.engraveExtraText=function(e,t){if(this.lineNumber=null,this.measureNumber=null,this.noteNumber=null,this.voiceNumber=null,t.metaText.unalignedWords){var i=this.getFontAndAttr("wordsfont","meta-bottom"),r=this.getTextSize("i","wordsfont","meta-bottom");t.metaText.unalignedWords.length>0&&this.moveY(this.spacing.words,1);for(var a=0;a<t.metaText.unalignedWords.length;a++)if(""===t.metaText.unalignedWords[a])this.moveY(i.font.size,1);else if("string"==typeof t.metaText.unalignedWords[a])this.outputTextIf(this.padding.left+s.INDENT,t.metaText.unalignedWords[a],"wordsfont","meta-bottom",0,0,"start");else{for(var n=0,c=0,o=0;o<t.metaText.unalignedWords[a].length;o++){var h=t.metaText.unalignedWords[a][o],l=h.font?h.font:"wordsfont",d=(this.renderText(this.padding.left+s.INDENT+c,this.y,h.text,l,"meta-bottom",!1),this.getTextSize(h.text,l,"meta-bottom"));n=Math.max(n,d.height),c+=d.width," "===h.text[h.text.length-1]&&(c+=r.width)}this.moveY(n,1)}t.metaText.unalignedWords.length>0&&this.moveY(i.font.size,2)}var f="";t.metaText.book&&(f+="Book: "+t.metaText.book+"\n"),t.metaText.source&&(f+="Source: "+t.metaText.source+"\n"),t.metaText.discography&&(f+="Discography: "+t.metaText.discography+"\n"),t.metaText.notes&&(f+="Notes: "+t.metaText.notes+"\n"),t.metaText.transcription&&(f+="Transcription: "+t.metaText.transcription+"\n"),t.metaText.history&&(f+="History: "+t.metaText.history+"\n"),t.metaText["abc-copyright"]&&(f+="Copyright: "+t.metaText["abc-copyright"]+"\n"),t.metaText["abc-creator"]&&(f+="Creator: "+t.metaText["abc-creator"]+"\n"),t.metaText["abc-edited-by"]&&(f+="Edited By: "+t.metaText["abc-edited-by"]+"\n"),this.outputTextIf(this.padding.left,f,"historyfont","meta-bottom",this.spacing.info,0,"start"),t.metaText.footer&&this.isPrint&&(this.outputTextIf(this.padding.left,t.metaText.footer.left,"footerfont","header meta-bottom",0,null,"start"),this.outputTextIf(this.padding.left+e/2,t.metaText.footer.center,"footerfont","header meta-bottom",0,null,"middle"),this.outputTextIf(this.padding.left+e,t.metaText.footer.right,"footerfont","header meta-bottom",0,null,"end"))},c.prototype.outputFreeText=function(e,t){t&&this.moveY(t);var i=this.getFontAndAttr("textfont","defined-text");if(""===e)this.moveY(2*i.attr["font-size"]);else if("string"==typeof e)this.moveY(i.attr["font-size"]/2),this.outputTextIf(this.padding.left,e,"textfont","defined-text",0,0,"start");else{for(var r="",s=!1,a=0;a<e.length;a++)e[a].font&&(r+="FONT("+e[a].font+")"),r+=e[a].text,e[a].center&&(s=!0);var n=s?"middle":"start",c=s?this.controller.width/2:this.padding.left;this.outputTextIf(c,r,"textfont","defined-text",0,1,n)}},c.prototype.outputSeparator=function(e){e.lineLength&&(this.moveY(e.spaceAbove),this.printSeparator(e.lineLength),this.moveY(e.spaceBelow))},c.prototype.outputSubtitle=function(e,t){this.outputTextIf(this.padding.left+e/2,t,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle")},c.prototype.beginGroup=function(){this.path=[],this.lastM=[0,0],this.ingroup=!0},c.prototype.addPath=function(e){if(0!==(e=e||[]).length){e[0][0]="m",e[0][1]-=this.lastM[0],e[0][2]-=this.lastM[1],this.lastM[0]+=e[0][1],this.lastM[1]+=e[0][2],this.path.push(e[0]);for(var t=1,i=e.length;t<i;t++)"m"===e[t][0]&&(this.lastM[0]+=e[t][1],this.lastM[1]+=e[t][2]),this.path.push(e[t])}},c.prototype.endGroup=function(e){if(this.ingroup=!1,0===this.path.length)return null;for(var t="",i=0;i<this.path.length;i++)t+=this.path[i].join(" ");var r=this.paper.path({path:t,stroke:"none",fill:"#000000",class:this.addClasses(e)});return this.path=[],this.doRegression&&this.addToRegression(r),r},c.prototype.printStaveLine=function(e,t,i,r){var s="staff";void 0!==r&&(s+=" "+r);var n=.35,c="#000000";var o=this.calcY(i),h=a("M %f %f L %f %f L %f %f L %f %f z",e,o-n,t,o-n,t,o+n,e,o+n),l=this.paper.pathToBack({path:h,stroke:"none",fill:c,class:this.addClasses(s)});return this.doRegression&&this.addToRegression(l),l},c.prototype.printStem=function(e,t,i,r){if(t<0){var s=r;r=i,i=s}var a="#000000";~~e===e&&(e+=.05);var n=[["M",e,i],["L",e,r],["L",e+t,r],["L",e+t,i],["z"]];if(!this.ingroup){for(var c="",o=0;o<n.length;o++)c+=n[o].join(" ");var h=this.paper.pathToBack({path:c,stroke:"none",fill:a,class:this.addClasses("stem")});return this.doRegression&&this.addToRegression(h),h}this.addPath(n)},c.prototype.printSymbol=function(e,t,i,s,a,n){var c,o,h,l,d,f;if(!i)return null;if(i.length>1&&i.indexOf(".")<0){this.paper.openGroup();for(var u=0,p=0;p<i.length;p++){var m=i.charAt(p);o=r.getYCorr(m),(c=r.printSymbol(e+u,this.calcY(t+o),m,this.paper,n))?(this.doRegression&&this.addToRegression(c),p<i.length-1&&(u+=(h=m,l=i.charAt(p+1),d=r.getSymbolWidth(m),f=void 0,f=d,"f"===h&&"f"===l&&(f=2*f/3),"p"===h&&"p"===l&&(f=5*f/6),"f"===h&&"z"===l&&(f=5*f/8),f))):this.renderText(e,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return this.paper.closeGroup()}if(o=r.getYCorr(i),this.ingroup)this.addPath(r.getPathForSymbol(e,this.calcY(t+o),i,s,a));else{if(c=r.printSymbol(e,this.calcY(t+o),i,this.paper,n))return this.doRegression&&this.addToRegression(c),c;this.renderText(e,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return null},c.prototype.scaleExistingElem=function(e,t,i,r,s){this.paper.setAttributeOnElement(e,{style:"transform:scale("+t+","+i+");transform-origin:"+r+"px "+s+"px;"})},c.prototype.printPath=function(e){var t=this.paper.path(e);return this.doRegression&&this.addToRegression(t),t},c.prototype.drawBrace=function(e,t,i){var r=i-t,s=[7.5,-8,21,0,18.5,-10.5,7.5],n=[0,r/5.5,r/3.14,r/2,r/2.93,r/4.88,0],c=a("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e+s[0],t+n[0],e+s[1],t+n[1],e+s[2],t+n[2],e+s[3],t+n[3],e+s[4],t+n[4],e+s[5],t+n[5],e+s[6],t+n[6]),o=this.paper.path({path:c,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});c=a("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e+(s=[0,17.5,-7.5,6.6,-5,20,0])[0],t+(n=[r/2,r/1.46,r/1.22,r,r/1.19,r/1.42,r/2])[0],e+s[1],t+n[1],e+s[2],t+n[2],e+s[3],t+n[3],e+s[4],t+n[4],e+s[5],t+n[5],e+s[6],t+n[6]);var h=this.paper.path({path:c,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});return this.doRegression&&(this.addToRegression(o),this.addToRegression(h)),o+h},c.prototype.drawArc=function(e,t,i,r,s,n,c){var o=c?1.2:1.5;e+=6,t+=4,i+=s?o:-o,r+=s?o:-o;var h=this.calcY(i),l=this.calcY(r),d=t-e,f=l-h,u=Math.sqrt(d*d+f*f),p=d/u,m=f/u,g=u/3.5,v=c?10:25,b=(s?-1:1)*Math.min(v,Math.max(4,g)),y=e+g*p-b*m,w=h+g*m+b*p,x=t-g*p-b*m,k=l-g*m+b*p,A=a("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e,h,y,w,x,k,t,l,x-2*m,k+2*p,y-2*m,w+2*p,e,h);n?n+=" slur":n="slur";var N=this.paper.path({path:A,stroke:"none",fill:"#000000",class:this.addClasses(n)});return this.doRegression&&this.addToRegression(N),N},c.prototype.calcY=function(e){return this.y-e*s.STEP},c.prototype.printStave=function(e,t,i){var r="top-line";if(this.paper.openGroup({prepend:!0}),1!==i){for(var s=i-1;s>=0;s--)this.printStaveLine(e,t,2*(s+1),r),r=void 0;this.paper.closeGroup()}else this.printStaveLine(e,t,6,r)},c.prototype.addClasses=function(e,t){if(!this.shouldAddClasses)return"";var i=[];if(e.length>0&&i.push(e),null!==this.lineNumber&&void 0!==this.lineNumber&&i.push("l"+this.lineNumber),null!==this.measureNumber&&void 0!==this.measureNumber&&i.push("m"+this.measureNumber),null!==this.voiceNumber&&void 0!==this.voiceNumber&&i.push("v"+this.voiceNumber),(e.indexOf("note")>=0||e.indexOf("rest")>=0||e.indexOf("lyric")>=0)&&null!==this.noteNumber&&void 0!==this.noteNumber&&i.push("n"+this.noteNumber),i.length>0){i=(i=i.join(" ")).split(" ");for(var r=0;r<i.length;r++)0!==i[r].indexOf("abcjs-")&&i[r].length>0&&(i[r]="abcjs-"+i[r])}return i.join(" ")},c.prototype.getFontAndAttr=function(e,t){var i,r={"font-size":(i="string"==typeof e?(i=this.abctune.formatting[e])?{face:i.face,size:4*i.size/3,decoration:i.decoration,style:i.style,weight:i.weight,box:i.box}:{face:"Arial",size:16,decoration:"underline",style:"normal",weight:"normal"}:{face:e.face,size:4*e.size/3,decoration:e.decoration,style:e.style,weight:e.weight,box:e.box}).size,"font-style":i.style,"font-family":i.face,"font-weight":i.weight,"text-decoration":i.decoration,class:this.addClasses(t),font:""};return{font:i,attr:r}},c.prototype.getTextSize=function(e,t,i,r){var s=this.getFontAndAttr(t,i),a=this.paper.getTextSize(e,s.attr,r);return s.font.box&&(a.height+=8,a.width+=8),a},c.prototype.renderText=function(e,t,i,r,s,a,n){var c=this.getFontAndAttr(r,s);a&&(c.attr["text-anchor"]=a),c.attr.x=e,c.attr.y=t+7,n||(c.attr.dy="0.5em"),"debugfont"===r&&(console.log("Debug msg: "+i),c.attr.stroke="#ff0000"),i=(i=i.replace(/\n\n/g,"\n \n")).replace(/^\n/," \n"),c.font.box&&(c.attr.x+=2,c.attr.y+=4);var o=this.paper.text(i,c.attr);if(c.font.box){var h=this.getTextSize(i,r,s);this.paper.rect({x:e-2,y:t,width:h.width+4,height:h.height+4-2,stroke:"#888888",fill:"transparent"})}return this.doRegression&&this.addToRegression(o),o},c.prototype.moveY=function(e,t){void 0===t&&(t=1),this.y+=e*t},c.prototype.skipSpaceY=function(){this.y+=this.space},c.prototype.outputTextIf=function(e,t,i,r,s,a,n){if(t){s&&this.moveY(s);this.renderText(e,this.y,t,i,r,n);var c=this.getTextSize(t,i,r),o=isNaN(c.width)?0:c.width,h=isNaN(c.height)?0:c.height;if(this.getFontAndAttr(i,r).font.box&&(o+=8,h+=8),null!==a){var l=t.split("\n").length;isNaN(c.height)||this.moveY(h/l,l+a)}return[o,h]}return[0,0]},c.prototype.addInvisibleMarker=function(e){var t=this.y;t=Math.round(t);var i=a("M %f %f L %f %f L %f %f L %f %f z",0,t-.35,100,t-.35,100,t+.35,0,t+.35);this.paper.pathToBack({path:i,stroke:"none",fill:"rgba(0,0,0,0)","fill-opacity":0,class:this.addClasses(e),"data-vertical":t})},c.prototype.printSeparator=function(e){var t=Math.round(this.y),i=(this.controller.width-e)/2,r=i+e,s="M "+i+" "+t+" L "+r+" "+t+" L "+r+" "+(t+1)+" L "+i+" "+(t+1)+" L "+i+" "+t+" z";this.paper.pathToBack({path:s,stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:this.addClasses("defined-text")})},c.prototype.printHorizontalLine=function(e,t,i){var r=.35,s="rgba(0,0,255,.4)",n=this.y;t&&(n=t),n=Math.round(n),this.paper.text(""+Math.round(n),{x:10,y:n,"text-anchor":"start","font-size":"18px",fill:s,stroke:s});var c=a("M %f %f L %f %f L %f %f L %f %f z",50,n-r,50+e,n-r,e,n+r,50,n+r);this.paper.pathToBack({path:c,stroke:"none",fill:s,class:this.addClasses("staff")});for(var o=1;o<e/100;o++)c=a("M %f %f L %f %f L %f %f L %f %f z",100*o-r,n-5,100*o-r,n+5,100*o+r,n-5,100*o+r,n+5),this.paper.pathToBack({path:c,stroke:"none",fill:s,class:this.addClasses("staff")});i&&this.paper.text(i,{x:e+70,y:n,"text-anchor":"start","font-size":"18px",fill:s,stroke:s})},c.prototype.printShadedBox=function(e,t,i,r,s,a,n){var c=this.paper.rect({x:e,y:t,width:i,height:r,fill:s,stroke:s,"fill-opacity":a,"stroke-opacity":a});return n&&this.paper.text(n,{x:0,y:t+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),c},c.prototype.printVerticalLine=function(e,t,i){var r=a("M %f %f L %f %f L %f %f L %f %f z",e-.35,t,e-.35,i,e+.35,t,e+.35,i);this.paper.pathToBack({path:r,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),r=a("M %f %f L %f %f L %f %f L %f %f z",e-20,t,e-20,t+3,e,t,e,t+3),this.paper.pathToBack({path:r,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),r=a("M %f %f L %f %f L %f %f L %f %f z",e+20,i,e+20,i+3,e,i,e,i+3),this.paper.pathToBack({path:r,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")})},c.prototype.addToRegression=function(e){var t;try{t=e.getBBox()}catch(e){t={width:0,height:0}}var i=e.type+" "+t.toString()+" ",r=[];for(var s in e.attrs)e.attrs.hasOwnProperty(s)&&("class"===s?i=e.attrs[s]+" "+i:r.push(s+": "+e.attrs[s]));r.sort(),i+="{ "+r.join(" ")+" }",this.regressionLines.push(i)},e.exports=c},function(e,t){var i="http://www.w3.org/2000/svg";function r(e){this.svg=s(),e.appendChild(this.svg)}function s(){var e=document.createElementNS(i,"svg");return e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),e.setAttribute("role","img"),e}r.prototype.clear=function(){if(this.svg){var e=this.svg.parentNode;this.svg=s(),e&&(e.innerHTML="",e.appendChild(this.svg))}},r.prototype.setTitle=function(e){var t=document.createElement("title"),i=document.createTextNode(e);t.appendChild(i),this.svg.insertBefore(t,this.svg.firstChild)},r.prototype.setResponsiveWidth=function(e,t){if(this.svg.setAttribute("viewBox","0 0 "+e+" "+t),this.svg.setAttribute("preserveAspectRatio","xMinYMin meet"),this.svg.removeAttribute("height"),this.svg.removeAttribute("width"),this.svg.style.display="inline-block",this.svg.style.position="absolute",this.svg.style.top="0",this.svg.style.left="0",this.svg.parentNode){var i=this.svg.parentNode.getAttribute("class");i?i.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",i+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%";var r=t/e*100;this.svg.parentNode.style["padding-bottom"]=r+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},r.prototype.setSize=function(e,t){this.svg.setAttribute("width",e),this.svg.setAttribute("height",t)},r.prototype.setScale=function(e){1!==e?(this.svg.style.transform="scale("+e+","+e+")",this.svg.style["-ms-transform"]="scale("+e+","+e+")",this.svg.style["-webkit-transform"]="scale("+e+","+e+")",this.svg.style["transform-origin"]="0 0",this.svg.style["-ms-transform-origin-x"]="0",this.svg.style["-ms-transform-origin-y"]="0",this.svg.style["-webkit-transform-origin-x"]="0",this.svg.style["-webkit-transform-origin-y"]="0"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")},r.prototype.setParentStyles=function(e){for(var t in e)e.hasOwnProperty(t)&&this.svg.parentNode&&(this.svg.parentNode.style[t]=e[t]);this.dummySvg&&(document.querySelector("body").removeChild(this.dummySvg),this.dummySvg=null)},r.prototype.rect=function(e){var t=document.createElementNS(i,"rect");for(var r in e){if(e.hasOwnProperty(r))(""+e[r]).indexOf("NaN"),t.setAttributeNS(null,r,e[r])}return this.append(t),t},r.prototype.text=function(e,t,r){var s=document.createElementNS(i,"text");for(var a in t)t.hasOwnProperty(a)&&s.setAttribute(a,t[a]);for(var n=(""+e).split("\n"),c=0;c<n.length;c++){var o=document.createElementNS(i,"tspan");o.textContent=n[c],o.setAttribute("x",t.x?t.x:0),0!==c&&o.setAttribute("dy","1.2em"),s.appendChild(o)}return r?r.appendChild(s):this.append(s),s},r.prototype.guessWidth=function(e,t){var i,r=this.createDummySvg(),s=this.text(e,t,r);try{i=s.getBBox(),i=isNaN(i.height)||!i.height?{width:t["font-size"]/2,height:t["font-size"]+2}:{width:i.width,height:i.height}}catch(e){i={width:t["font-size"]/2,height:t["font-size"]+2}}return r.removeChild(s),i},r.prototype.createDummySvg=function(){if(!this.dummySvg){this.dummySvg=s();this.dummySvg.setAttribute("style",["display: block !important;","height: 1px;","width: 1px;","position: absolute;"].join("")),document.querySelector("body").appendChild(this.dummySvg)}return this.dummySvg},r.prototype.getTextSize=function(e,t,i){if("number"==typeof e&&(e=""+e),!e||e.match(/^\s+$/))return{width:0,height:0};var r,s=!i;i||(i=this.text(e,t));try{r=i.getBBox(),r=isNaN(r.height)||!r.height?this.guessWidth(e,t):{width:r.width,height:r.height}}catch(i){r=this.guessWidth(e,t)}return s&&(this.currentGroup?this.currentGroup.removeChild(i):this.svg.removeChild(i)),r},r.prototype.openGroup=function(e){e=e||{};var t=document.createElementNS(i,"g");return e.prepend?this.svg.insertBefore(t,this.svg.firstChild):this.svg.appendChild(t),this.currentGroup=t,t},r.prototype.closeGroup=function(){var e=this.currentGroup;return this.currentGroup=null,e},r.prototype.path=function(e){var t=document.createElementNS(i,"path");for(var r in e)e.hasOwnProperty(r)&&("path"===r?t.setAttributeNS(null,"d",e.path):t.setAttributeNS(null,r,e[r]));return this.append(t),t},r.prototype.pathToBack=function(e){var t=document.createElementNS(i,"path");for(var r in e)e.hasOwnProperty(r)&&("path"===r?t.setAttributeNS(null,"d",e.path):t.setAttributeNS(null,r,e[r]));return this.prepend(t),t},r.prototype.append=function(e){this.currentGroup?this.currentGroup.appendChild(e):this.svg.appendChild(e)},r.prototype.prepend=function(e){this.currentGroup?this.currentGroup.appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)},r.prototype.setAttributeOnElement=function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttributeNS(null,i,t[i])},e.exports=r}]);
\ No newline at end of file
--- a/test.tmpl	Wed Jul 01 11:37:21 2020 +0200
+++ b/test.tmpl	Wed Jul 01 11:41:39 2020 +0200
@@ -4,13 +4,21 @@
     <meta charset="UTF-8">
 
     <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css">
+    <link href="abcjs-midi.css" type="text/css" rel="stylesheet" />
 
     <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
     <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
 
-    <script src="abcjs_plugin_5.10.3-min.js" type="text/javascript"></script>
+    <script src="abcjs_plugin-midi_5.9.1-min.js"></script>
 
-    <style>
+    <script type="text/javascript">
+        window.ABCJS.plugin.render_before = true;
+        window.ABCJS.plugin.render_options = {program: 41, defaultQpm: 150};
+        //window.ABCJS.plugin.debug = true;
+    </script>
+
+
+     <style>
         .abctext {display: none;}
     </style>
 </head>