diff --git a/assets/index-7cd7ae06.js b/assets/index-Bel4aGnl.js similarity index 69% rename from assets/index-7cd7ae06.js rename to assets/index-Bel4aGnl.js index 904d5bf..d1eca7b 100644 --- a/assets/index-7cd7ae06.js +++ b/assets/index-Bel4aGnl.js @@ -1,41 +1,41 @@ -var Fs=Object.defineProperty;var $s=(e,t,r)=>t in e?Fs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var u0=(e,t,r)=>($s(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();const Is=(e,t)=>e===t,Rr=Symbol("solid-proxy"),Os=Symbol("solid-track"),or={equals:Is};let si=hi;const kt=1,cr=2,oi={owned:null,cleanups:null,context:null,owner:null};var ke=null;let kr=null,zs=null,xe=null,Me=null,bt=null,pr=0;function ar(e,t){const r=xe,a=ke,n=e.length===0,i=t===void 0?a:t,s=n?oi:{owned:null,cleanups:null,context:i?i.context:null,owner:i},o=n?e:()=>e(()=>lt(()=>gr(s)));ke=s,xe=null;try{return L0(o,!0)}finally{xe=r,ke=a}}function $t(e,t){t=t?Object.assign({},or,t):or;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},a=n=>(typeof n=="function"&&(n=n(r.value)),fi(r,n));return[li.bind(r),a]}function Zt(e,t,r){const a=ia(e,t,!1,kt);B0(a)}function ci(e,t,r){si=Ws;const a=ia(e,t,!1,kt);(!r||!r.render)&&(a.user=!0),bt?bt.push(a):B0(a)}function A0(e,t,r){r=r?Object.assign({},or,r):or;const a=ia(e,t,!0,0);return a.observers=null,a.observerSlots=null,a.comparator=r.equals||void 0,B0(a),li.bind(a)}function lt(e){if(xe===null)return e();const t=xe;xe=null;try{return e()}finally{xe=t}}function Hs(e,t,r){const a=Array.isArray(e);let n,i=r&&r.defer;return s=>{let o;if(a){o=Array(e.length);for(let h=0;ht(o,n,s));return n=o,l}}function qs(e){ci(()=>lt(e))}function Ys(e){return ke===null||(ke.cleanups===null?ke.cleanups=[e]:ke.cleanups.push(e)),e}function li(){if(this.sources&&this.state)if(this.state===kt)B0(this);else{const e=Me;Me=null,L0(()=>fr(this),!1),Me=e}if(xe){const e=this.observers?this.observers.length:0;xe.sources?(xe.sources.push(this),xe.sourceSlots.push(e)):(xe.sources=[this],xe.sourceSlots=[e]),this.observers?(this.observers.push(xe),this.observerSlots.push(xe.sources.length-1)):(this.observers=[xe],this.observerSlots=[xe.sources.length-1])}return this.value}function fi(e,t,r){let a=e.value;return(!e.comparator||!e.comparator(a,t))&&(e.value=t,e.observers&&e.observers.length&&L0(()=>{for(let n=0;n1e6)throw Me=[],new Error},!1)),t}function B0(e){if(!e.fn)return;gr(e);const t=pr;Rs(e,e.value,t)}function Rs(e,t,r){let a;const n=ke,i=xe;xe=ke=e;try{a=e.fn(t)}catch(s){return e.pure&&(e.state=kt,e.owned&&e.owned.forEach(gr),e.owned=null),e.updatedAt=r+1,di(s)}finally{xe=i,ke=n}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?fi(e,a):e.value=a,e.updatedAt=r)}function ia(e,t,r,a=kt,n){const i={fn:e,state:a,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ke,context:ke?ke.context:null,pure:r};return ke===null||ke!==oi&&(ke.owned?ke.owned.push(i):ke.owned=[i]),i}function lr(e){if(e.state===0)return;if(e.state===cr)return fr(e);if(e.suspense&<(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--)if(e=t[r],e.state===kt)B0(e);else if(e.state===cr){const a=Me;Me=null,L0(()=>fr(e,t[0]),!1),Me=a}}function L0(e,t){if(Me)return e();let r=!1;t||(Me=[]),bt?r=!0:bt=[],pr++;try{const a=e();return Gs(r),a}catch(a){r||(bt=null),Me=null,di(a)}}function Gs(e){if(Me&&(hi(Me),Me=null),e)return;const t=bt;bt=null,t.length&&L0(()=>si(t),!1)}function hi(e){for(let t=0;t=0;t--)gr(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Us(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function di(e,t=ke){throw Us(e)}const Xs=Symbol("fallback");function Ba(e){for(let t=0;t1?[]:null;return Ys(()=>Ba(i)),()=>{let l=e()||[],h=l.length,u,c;return l[Os],lt(()=>{let d,p,g,v,y,w,k,b,m;if(h===0)s!==0&&(Ba(i),i=[],a=[],n=[],s=0,o&&(o=[])),r.fallback&&(a=[Xs],n[0]=ar(C=>(i[0]=C,r.fallback())),s=1);else if(s===0){for(n=new Array(h),c=0;c=w&&b>=w&&a[k]===l[b];k--,b--)g[b]=n[k],v[b]=i[k],o&&(y[b]=o[k]);for(d=new Map,p=new Array(b+1),c=b;c>=w;c--)m=l[c],u=d.get(m),p[c]=u===void 0?-1:u,d.set(m,c);for(u=w;u<=k;u++)m=a[u],c=d.get(m),c!==void 0&&c!==-1?(g[c]=n[u],v[c]=i[u],o&&(y[c]=o[u]),c=p[c],d.set(m,c)):i[u]();for(c=w;ce(t||{}))}function q0(){return!0}const js={get(e,t,r){return t===Rr?r:e.get(t)},has(e,t){return t===Rr?!0:e.has(t)},set:q0,deleteProperty:q0,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:q0,deleteProperty:q0}},ownKeys(e){return e.keys()}};function Tr(e){return(e=typeof e=="function"?e():e)?e:{}}function Ks(){for(let e=0,t=this.length;e=0;o--){const l=Tr(e[o])[s];if(l!==void 0)return l}},has(s){for(let o=e.length-1;o>=0;o--)if(s in Tr(e[o]))return!0;return!1},keys(){const s=[];for(let o=0;o=0;s--){const o=e[s];if(!o)continue;const l=Object.getOwnPropertyNames(o);for(let h=l.length-1;h>=0;h--){const u=l[h];if(u==="__proto__"||u==="constructor")continue;const c=Object.getOwnPropertyDescriptor(o,u);if(!a[u])a[u]=c.get?{enumerable:!0,configurable:!0,get:Ks.bind(r[u]=[c.get.bind(o)])}:c.value!==void 0?c:void 0;else{const f=r[u];f&&(c.get?f.push(c.get.bind(o)):c.value!==void 0&&f.push(()=>c.value))}}}const n={},i=Object.keys(a);for(let s=i.length-1;s>=0;s--){const o=i[s],l=a[o];l&&l.get?Object.defineProperty(n,o,l):n[o]=l?l.value:void 0}return n}const Js=e=>`Stale read from <${e}>.`;function Zs(e){const t="fallback"in e&&{fallback:()=>e.fallback};return A0(Vs(()=>e.each,e.children,t||void 0))}function pi(e){const t=e.keyed,r=A0(()=>e.when,void 0,{equals:(a,n)=>t?a===n:!a==!n});return A0(()=>{const a=r();if(a){const n=e.children;return typeof n=="function"&&n.length>0?lt(()=>n(t?a:()=>{if(!lt(r))throw Js("Show");return e.when})):n}return e.fallback},void 0,void 0)}const eo=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],to=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...eo]),ro=new Set(["innerHTML","textContent","innerText","children"]),ao=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),no=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function io(e,t){const r=no[e];return typeof r=="object"?r[t]?r.$:void 0:r}const so=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),oo={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function co(e,t,r){let a=r.length,n=t.length,i=a,s=0,o=0,l=t[n-1].nextSibling,h=null;for(;su-o){const p=t[s];for(;o{n=i,t===document?e():M0(t,e(),t.firstChild?null:void 0,r)},a.owner),()=>{n(),t.textContent=""}}function P0(e,t,r){let a;const n=()=>{const s=document.createElement("template");return s.innerHTML=e,r?s.content.firstChild.firstChild:s.content.firstChild},i=t?()=>lt(()=>document.importNode(a||(a=n()),!0)):()=>(a||(a=n())).cloneNode(!0);return i.cloneNode=i,i}function gi(e,t=window.document){const r=t[La]||(t[La]=new Set);for(let a=0,n=e.length;an.call(e,r[1],i))}else e.addEventListener(t,r)}function po(e,t,r={}){const a=Object.keys(t||{}),n=Object.keys(r);let i,s;for(i=0,s=n.length;in.children=a0(e,t.children,n.children)),Zt(()=>typeof t.ref=="function"&&Wr(t.ref,e)),Zt(()=>bo(e,t,r,!0,n,!0)),n}function Wr(e,t,r){return lt(()=>e(t,r))}function M0(e,t,r,a){if(r!==void 0&&!a&&(a=[]),typeof t!="function")return a0(e,t,a,r);Zt(n=>a0(e,t(),n,r),a)}function bo(e,t,r,a,n={},i=!1){t||(t={});for(const s in n)if(!(s in t)){if(s==="children")continue;n[s]=Da(e,s,null,n[s],r,i)}for(const s in t){if(s==="children"){a||a0(e,t.children);continue}const o=t[s];n[s]=Da(e,s,o,n[s],r,i)}}function mo(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Pa(e,t,r){const a=t.trim().split(/\s+/);for(let n=0,i=a.length;n-1&&oo[t.split(":")[0]];c?fo(e,c,t,r):Gr(e,ao[t]||t,r)}return r}function yo(e){const t=`$$${e.type}`;let r=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==r&&Object.defineProperty(e,"target",{configurable:!0,value:r}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}});r;){const a=r[t];if(a&&!r.disabled){const n=r[`${t}Data`];if(n!==void 0?a.call(r,n,e):a.call(r,e),e.cancelBubble)return}r=r._$host||r.parentNode||r.host}}function a0(e,t,r,a,n){for(;typeof r=="function";)r=r();if(t===r)return r;const i=typeof t,s=a!==void 0;if(e=s&&r[0]&&r[0].parentNode||e,i==="string"||i==="number"){if(i==="number"&&(t=t.toString(),t===r))return r;if(s){let o=r[0];o&&o.nodeType===3?o.data!==t&&(o.data=t):o=document.createTextNode(t),r=Rt(e,r,a,o)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||i==="boolean")r=Rt(e,r,a);else{if(i==="function")return Zt(()=>{let o=t();for(;typeof o=="function";)o=o();r=a0(e,o,r,a)}),()=>r;if(Array.isArray(t)){const o=[],l=r&&Array.isArray(r);if(Ur(o,t,r,n))return Zt(()=>r=a0(e,o,r,a,!0)),()=>r;if(o.length===0){if(r=Rt(e,r,a),s)return r}else l?r.length===0?Fa(e,o,a):co(e,r,o):(r&&Rt(e),Fa(e,o));r=o}else if(t.nodeType){if(Array.isArray(r)){if(s)return r=Rt(e,r,a,t);Rt(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function Ur(e,t,r,a){let n=!1;for(let i=0,s=t.length;i=0;s--){const o=t[s];if(n!==o){const l=o.parentNode===e;!i&&!s?l?e.replaceChild(n,o):e.insertBefore(n,r):l&&o.remove()}else i=!0}}else e.insertBefore(n,r);return[n]}function $a(e){return new Promise(t=>setTimeout(t,e))}function wo(e){const t=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"][e.pitch%12],r=~~(e.pitch/12)-2;return`${t}${r}`}function xo(e){return`${e.root}${e.mode}`}const Co=e=>`

${e}

`;class ko{constructor(t=document.body){u0(this,"queue");this.queue=document.createElement("div"),this.queue.className="na-message-queue",t.append(this.queue)}async emit(t){const r=document.createElement("div");let a=2e3,n="",i={},s=t??"☘";if(typeof s!="string"&&(a=s.duration??2e3,n=`${s.primary??""}`,i=s.style??{},s=`${s.content??"☘"}`),r.innerHTML=Co(s),n){const o=r.firstElementChild;o.dataset.primary=n,Object.entries(i).map(l=>o.style.setProperty(...l))}this.queue.appendChild(r),r.style.height=`${r.offsetHeight}px`,r.style.transition="opacity 1s, height 2s",await $a(a),r.style.opacity="0",r.style.height="0",await $a(2e3),this.queue.removeChild(r)}}const To=new ko,_o=(...e)=>To.emit(...e);function So(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eo="6.4.1",Ao=Eo,Mo=function(e,t){var r=this;if(t||(t={}),r.qpm=t.qpm?parseInt(t.qpm,10):null,!r.qpm){var a=e.metaText?e.metaText.tempo:null;r.qpm=e.getBpm(a)}r.extraMeasuresAtBeginning=t.extraMeasuresAtBeginning?parseInt(t.extraMeasuresAtBeginning,10):0,r.beatCallback=t.beatCallback,r.eventCallback=t.eventCallback,r.lineEndCallback=t.lineEndCallback,r.lineEndAnticipation=t.lineEndAnticipation?parseInt(t.lineEndAnticipation,10):0,r.beatSubdivisions=t.beatSubdivisions?parseInt(t.beatSubdivisions,10):1,r.joggerTimer=null,r.replaceTarget=function(i){r.noteTimings=i.setTiming(r.qpm,r.extraMeasuresAtBeginning),i.noteTimings.length===0&&(r.noteTimings=i.setTiming(0,0)),r.lineEndCallback&&(r.lineEndTimings=No(i.noteTimings,r.lineEndAnticipation)),r.startTime=null,r.currentBeat=0,r.currentEvent=0,r.currentLine=0,r.currentTime=0,r.isPaused=!1,r.isRunning=!1,r.pausedPercent=null,r.justUnpaused=!1,r.newSeekPercent=0,r.lastTimestamp=0,r.noteTimings.length!==0&&(r.millisecondsPerBeat=1e3/(r.qpm/60)/r.beatSubdivisions,r.lastMoment=r.noteTimings[r.noteTimings.length-1].milliseconds,r.totalBeats=Math.round(r.lastMoment/r.millisecondsPerBeat))},r.replaceTarget(e),r.doTiming=function(i){if(r.lastTimestamp!==i&&(r.lastTimestamp=i,r.startTime||(r.startTime=i),!r.isPaused&&r.isRunning)){for(r.currentTime=i-r.startTime,r.currentTime+=16;r.noteTimings.length>r.currentEvent&&r.noteTimings[r.currentEvent].millisecondsr.currentLine&&r.lineEndTimings[r.currentLine].milliseconds=r.lastMoment)if(r.eventCallback){var u=r.eventCallback(null);r.shouldStop(u).then(function(c){c&&r.stop()})}else r.stop()}},r.shouldStop=function(i){return new Promise(function(s){if(!i)return s(!0);if(i==="continue")return s(!1);i.then&&i.then(function(o){s(o!=="continue")})})},r.doBeatCallback=function(i){if(r.beatCallback){for(var s=r.currentEvent;s=0&&r.noteTimings[s].left===null;)s--;l=r.noteTimings[s]}var h={},u={};if(l){h.top=l.top,h.height=l.height;var c=Math.max(0,i-r.startTime-l.milliseconds),f=o-l.milliseconds,d=l.endX-l.left,p=f?c*d/f:0;h.left=l.left+p,r.currentEvent===0&&l.milliseconds>i-r.startTime&&(h.left=void 0),u={timestamp:i,startTime:r.startTime,ev:l,endMs:o,offMs:c,offPx:p,gapMs:f,gapPx:d}}else u={timestamp:i,startTime:r.startTime};var g=r.startTime;if(r.beatCallback(r.currentBeat/r.beatSubdivisions,r.totalBeats/r.beatSubdivisions,r.lastMoment,h,u),g!==r.startTime)return i-r.startTime;r.currentBeat++}return null};var n=60;r.animationJogger=function(){r.isRunning&&(r.doTiming(performance.now()),r.joggerTimer=setTimeout(r.animationJogger,n))},r.start=function(i,s){if(r.isRunning=!0,r.isPaused&&(r.isPaused=!1,i===void 0&&(r.justUnpaused=!0)),i)r.setProgress(i,s);else if(i===0)r.reset();else if(r.pausedPercent!==null){var o=performance.now();r.currentTime=r.lastMoment*r.pausedPercent,r.startTime=o-r.currentTime,r.pausedPercent=null,r.reportNext=!0}requestAnimationFrame(r.doTiming),r.joggerTimer=setTimeout(r.animationJogger,n)},r.pause=function(){r.isPaused=!0;var i=performance.now();r.pausedPercent=(i-r.startTime)/r.lastMoment,r.isRunning=!1,r.joggerTimer&&(clearTimeout(r.joggerTimer),r.joggerTimer=null)},r.currentMillisecond=function(){return r.currentTime},r.reset=function(){r.currentBeat=0,r.currentEvent=0,r.currentLine=0,r.startTime=null,r.pausedPercent=null},r.stop=function(){r.pause(),r.reset()},r.setProgress=function(i,s){var o;switch(s){case"seconds":r.currentTime=i*1e3,r.currentTime<0&&(r.currentTime=0),r.currentTime>r.lastMoment&&(r.currentTime=r.lastMoment),o=r.currentTime/r.lastMoment;break;case"beats":r.currentTime=i*r.millisecondsPerBeat*r.beatSubdivisions,r.currentTime<0&&(r.currentTime=0),r.currentTime>r.lastMoment&&(r.currentTime=r.lastMoment),o=r.currentTime/r.lastMoment;break;default:o=i,o<0&&(o=0),o>1&&(o=1),r.currentTime=r.lastMoment*o;break}r.isRunning||(r.pausedPercent=o);var l=performance.now();for(r.startTime=l-r.currentTime,r.currentEvent,r.currentEvent=0;r.noteTimings.length>r.currentEvent&&r.noteTimings[r.currentEvent].millisecondsr.currentLine&&r.lineEndTimings[r.currentLine].milliseconds+r.lineEndAnticipation=0&&r.noteTimings[r.currentEvent].type==="event"&&r.eventCallback(r.noteTimings[r.currentEvent]),r.lineEndCallback&&r.lineEndCallback(r.lineEndTimings[r.currentLine],r.noteTimings[r.currentEvent],{line:r.currentLine,endTimings:r.lineEndTimings}),r.joggerTimer=setTimeout(r.animationJogger,n)}};function No(e,t){for(var r=[],a=null,n=0;n=0&&e.lastIndexOf(t)===r};Ge.last=function(e){return e.length===0?null:e[e.length-1]};var Fe=Ge,Ia=Fe,Ft={};(function(){var e,t,r,a,n;Ft.initialize=function(x,T,S,N,Y){e=x,t=T,r=S,a=N,n=Y,i()};function i(){r.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},r.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},r.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},r.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},r.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.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},a.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},a.formatting.annotationfont=r.annotationfont,a.formatting.gchordfont=r.gchordfont,a.formatting.historyfont=r.historyfont,a.formatting.infofont=r.infofont,a.formatting.measurefont=r.measurefont,a.formatting.partsfont=r.partsfont,a.formatting.repeatfont=r.repeatfont,a.formatting.textfont=r.textfont,a.formatting.tripletfont=r.tripletfont,a.formatting.vocalfont=r.vocalfont,a.formatting.wordsfont=r.wordsfont}var s={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},o=function(x){switch(x){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=function(x,T,S,N,Y){function W(){var _e=parseInt(x[0].token);return x.shift(),T?x.length===0?{face:T.face,weight:T.weight,style:T.style,decoration:T.decoration,size:_e}:x.length===1&&x[0].token==="box"&&s[Y]?{face:T.face,weight:T.weight,style:T.style,decoration:T.decoration,size:_e,box:!0}:(t("Extra parameters in font definition.",S,N),{face:T.face,weight:T.weight,style:T.style,decoration:T.decoration,size:_e}):(t("Can't set just the size of the font since there is no default value.",S,N),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:_e})}if(x[0].token==="*"){if(x.shift(),x[0].type==="number")return W();t("Expected font size number after *.",S,N)}if(x[0].type==="number")return W();for(var Z=[],j,ie="normal",ne="normal",Ce="none",ee=!1,Ie="face",G=!1;x.length;){var pe=x.shift(),K=pe.token.toLowerCase();switch(Ie){case"face":G||K!=="utf"&&pe.type!=="number"&&K!=="bold"&&K!=="italic"&&K!=="underline"&&K!=="box"?Z.length>0&&pe.token==="-"?(G=!0,Z[Z.length-1]=Z[Z.length-1]+pe.token):G?(G=!1,Z[Z.length-1]=Z[Z.length-1]+pe.token):Z.push(pe.token):pe.type==="number"?(j?t("Font size specified twice in font definition.",S,N):j=pe.token,Ie="modifier"):K==="bold"?ie="bold":K==="italic"?ne="italic":K==="underline"?Ce="underline":K==="box"?(s[Y]?ee=!0:t(`This font style doesn't support "box"`,S,N),Ie="finished"):K==="utf"?(pe=x.shift(),Ie="size"):t("Unknown parameter "+pe.token+" in font definition.",S,N);break;case"size":pe.type==="number"?j?t("Font size specified twice in font definition.",S,N):j=pe.token:t("Expected font size in font definition.",S,N),Ie="modifier";break;case"modifier":K==="bold"?ie="bold":K==="italic"?ne="italic":K==="underline"?Ce="underline":K==="box"?(s[Y]?ee=!0:t(`This font style doesn't support "box"`,S,N),Ie="finished"):t("Unknown parameter "+pe.token+" in font definition.",S,N);break;case"finished":t('Extra characters found after "box" in font definition.',S,N);break}}j===void 0?T?j=T.size:(t("Must specify the size of the font since there is no default value.",S,N),j=12):j=parseFloat(j),Z=Z.join(" "),Z===""&&(T?Z=T.face:(t("Must specify the name of the font since there is no default value.",S,N),Z="sans-serif"));var te=o(Z),re={};return te?(re.face=te.face,re.weight=te.weight,re.style=te.style,re.decoration=te.decoration,re.size=j,ee&&(re.box=!0),re):(re.face=Z,re.weight=ie,re.style=ne,re.decoration=Ce,re.size=j,ee&&(re.box=!0),re)},h=function(x,T,S){return T.length===0?'Directive "'+x+'" requires a font as a parameter.':(r[x]=l(T,r[x],S,0,x),r.is_in_header&&(a.formatting[x]=r[x]),null)},u=function(x,T,S){return T.length===0?'Directive "'+x+'" requires a font as a parameter.':(a.formatting[x]=l(T,a.formatting[x],S,0,x),null)},c=function(x,T){var S="";T.forEach(function(Y){S+=Y.token});var N=parseFloat(S);if(isNaN(N)||N===0)return'Directive "'+x+'" requires a number as a parameter.';a.formatting.scale=N},f=["acoustic-bass-drum","bass-drum-1","side-stick","acoustic-snare","hand-clap","electric-snare","low-floor-tom","closed-hi-hat","high-floor-tom","pedal-hi-hat","low-tom","open-hi-hat","low-mid-tom","hi-mid-tom","crash-cymbal-1","high-tom","ride-cymbal-1","chinese-cymbal","ride-bell","tambourine","splash-cymbal","cowbell","crash-cymbal-2","vibraslap","ride-cymbal-2","hi-bongo","low-bongo","mute-hi-conga","open-hi-conga","low-conga","high-timbale","low-timbale","high-agogo","low-agogo","cabasa","maracas","short-whistle","long-whistle","short-guiro","long-guiro","claves","hi-wood-block","low-wood-block","mute-cuica","open-cuica","mute-triangle","open-triangle"],d=function(x){var T=x.split(/\s+/);if(T.length!==2&&T.length!==3)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var S=T[0],N=parseInt(T[1],10);if((isNaN(N)||N<35||N>81)&&T[1]&&(N=f.indexOf(T[1].toLowerCase())+35),isNaN(N)||N<35||N>81)return{error:'Expected drum name, received "'+T[1]+'"'};var Y={sound:N};return T.length===3&&(Y.noteHead=T[2]),{key:S,value:Y}},p=function(x,T){var S=e.getMeasurement(T);return S.used===0||T.length!==0?{error:'Directive "'+x+'" requires a measurement as a parameter.'}:S.value},g=function(x,T){var S=e.getMeasurement(T);return S.used===0||T.length!==0?'Directive "'+x+'" requires a measurement as a parameter.':(a.formatting[x]=S.value,null)},v=function(x,T,S,N,Y){if(S.length!==1||S[0].type!=="number")return'Directive "'+T+'" requires a number as a parameter.';var W=S[0].intt;return N!==void 0&&WY?'Directive "'+T+'" requires a number less than or equal to '+Y+" as a parameter.":(r[x]=W,null)},y=function(x,T,S){if(S.length===1&&(S[0].token==="true"||S[0].token==="false"))return r[x]=S[0].token==="true",null;var N=v(x,T,S,0,1);return N!==null?N:(r[x]=r[x]===1,null)},w=function(x,T,S,N){if(S.length!==1)return'Directive "'+T+'" requires one of [ '+N.join(", ")+" ] as a parameter.";for(var Y=S[0].token,W=!1,Z=0;!W&&Z=0)x.length!==0&&t("Unexpected parameter in MIDI "+N,S,0);else if(b.indexOf(N)>=0)x.length!==1?t("Expected one parameter in MIDI "+N,S,0):Y.push(x[0].token);else if(m.indexOf(N)>=0)x.length!==1?t("Expected one parameter in MIDI "+N,S,0):x[0].type!=="number"?t("Expected one integer parameter in MIDI "+N,S,0):Y.push(x[0].intt);else if(C.indexOf(N)>=0)x.length!==1&&x.length!==2?t("Expected one or two parameters in MIDI "+N,S,0):x[0].type!=="number"||x.length===2&&x[1].type!=="number"?t("Expected integer parameter in MIDI "+N,S,0):(Y.push(x[0].intt),x.length===2&&Y.push(x[1].intt));else if(_.indexOf(N)>=0)x.length!==2?t("Expected two parameters in MIDI "+N,S,0):x[0].type!=="number"||x[1].type!=="number"?t("Expected two integer parameters in MIDI "+N,S,0):(Y.push(x[0].intt),Y.push(x[1].intt));else if(P.indexOf(N)>=0)x.length!==2?t("Expected two parameters in MIDI "+N,S,0):x[0].type!=="alpha"||x[1].type!=="number"?t("Expected one string and one integer parameters in MIDI "+N,S,0):(Y.push(x[0].token),Y.push(x[1].intt));else if(N==="drummap")x.length===2&&x[0].type==="alpha"&&x[1].type==="number"?(T.formatting||(T.formatting={}),T.formatting.midi||(T.formatting.midi={}),T.formatting.midi.drummap||(T.formatting.midi.drummap={}),T.formatting.midi.drummap[x[0].token]=x[1].intt,Y=T.formatting.midi.drummap):x.length===3&&x[0].type==="punct"&&x[1].type==="alpha"&&x[2].type==="number"?(T.formatting||(T.formatting={}),T.formatting.midi||(T.formatting.midi={}),T.formatting.midi.drummap||(T.formatting.midi.drummap={}),T.formatting.midi.drummap[x[0].token+x[1].token]=x[2].intt,Y=T.formatting.midi.drummap):t("Expected one note name and one integer parameter in MIDI "+N,S,0);else if(q.indexOf(N)>=0)x.length!==3||x[0].type!=="number"||x[1].token!=="/"||x[2].type!=="number"?t("Expected fraction parameter in MIDI "+N,S,0):(Y.push(x[0].intt),Y.push(x[2].intt));else if(M.indexOf(N)>=0)x.length!==4?t("Expected four parameters in MIDI "+N,S,0):x[0].type!=="number"||x[1].type!=="number"||x[2].type!=="number"||x[3].type!=="number"?t("Expected four integer parameters in MIDI "+N,S,0):(Y.push(x[0].intt),Y.push(x[1].intt),Y.push(x[2].intt),Y.push(x[3].intt));else if(L.indexOf(N)>=0)x.length!==5?t("Expected five parameters in MIDI "+N,S,0):x[0].type!=="number"||x[1].type!=="number"||x[2].type!=="number"||x[3].type!=="number"||x[4].type!=="number"?t("Expected five integer parameters in MIDI "+N,S,0):(Y.push(x[0].intt),Y.push(x[1].intt),Y.push(x[2].intt),Y.push(x[3].intt),Y.push(x[4].intt));else if(C.indexOf(N)>=0)x.length!==1||x.length!==4?t("Expected one or two parameters in MIDI "+N,S,0):x[0].type!=="number"?t("Expected integer parameter in MIDI "+N,S,0):x.length===4?(x[1].token!=="octave"&&t("Expected octave parameter in MIDI "+N,S,0),x[2].token!=="="&&t("Expected octave parameter in MIDI "+N,S,0),x[3].type!=="number"&&t("Expected integer parameter for octave in MIDI "+N,S,0)):(Y.push(x[0].intt),x.length===4&&Y.push(x[3].intt));else if(F.indexOf(N)>=0)if(x.length<2)t("Expected string parameter and at least one integer parameter in MIDI "+N,S,0);else if(x[0].type!=="alpha")t("Expected string parameter and at least one integer parameter in MIDI "+N,S,0);else{var W=x.shift();for(Y.push(W.token);x.length>0;)W=x.shift(),W.type!=="number"&&t("Expected integer parameter in MIDI "+N,S,0),Y.push(W.intt)}n.hasBeginMusic()?n.appendElement("midi",-1,-1,{cmd:N,params:Y}):(T.formatting.midi===void 0&&(T.formatting.midi={}),T.formatting.midi[N]=Y)};Ft.parseFontChangeLine=function(x){x=x.replace(/\$\$/g,"");var T=x.split("$");if(T.length>1&&r.setfont){var S=[];T[0]!==""&&S.push({text:T[0]});for(var N=1;Nt in e?Fs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var f0=(e,t,r)=>$s(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();const Is=(e,t)=>e===t,Yr=Symbol("solid-proxy"),Os=Symbol("solid-track"),sr={equals:Is};let si=hi;const kt=1,or=2,oi={owned:null,cleanups:null,context:null,owner:null};var ke=null;let kr=null,Hs=null,xe=null,Me=null,vt=null,pr=0;function rr(e,t){const r=xe,a=ke,n=e.length===0,i=t===void 0?a:t,s=n?oi:{owned:null,cleanups:null,context:i?i.context:null,owner:i},o=n?e:()=>e(()=>bt(()=>gr(s)));ke=s,xe=null;try{return B0(o,!0)}finally{xe=r,ke=a}}function $t(e,t){t=t?Object.assign({},sr,t):sr;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},a=n=>(typeof n=="function"&&(n=n(r.value)),fi(r,n));return[li.bind(r),a]}function S0(e,t,r){const a=ia(e,t,!1,kt);N0(a)}function ci(e,t,r){si=Ws;const a=ia(e,t,!1,kt);a.user=!0,vt?vt.push(a):N0(a)}function E0(e,t,r){r=r?Object.assign({},sr,r):sr;const a=ia(e,t,!0,0);return a.observers=null,a.observerSlots=null,a.comparator=r.equals||void 0,N0(a),li.bind(a)}function bt(e){if(xe===null)return e();const t=xe;xe=null;try{return e()}finally{xe=t}}function zs(e,t,r){const a=Array.isArray(e);let n;return i=>{let s;if(a){s=Array(e.length);for(let l=0;lt(s,n,i));return n=s,o}}function qs(e){ci(()=>bt(e))}function Gs(e){return ke===null||(ke.cleanups===null?ke.cleanups=[e]:ke.cleanups.push(e)),e}function li(){if(this.sources&&this.state)if(this.state===kt)N0(this);else{const e=Me;Me=null,B0(()=>lr(this),!1),Me=e}if(xe){const e=this.observers?this.observers.length:0;xe.sources?(xe.sources.push(this),xe.sourceSlots.push(e)):(xe.sources=[this],xe.sourceSlots=[e]),this.observers?(this.observers.push(xe),this.observerSlots.push(xe.sources.length-1)):(this.observers=[xe],this.observerSlots=[xe.sources.length-1])}return this.value}function fi(e,t,r){let a=e.value;return(!e.comparator||!e.comparator(a,t))&&(e.value=t,e.observers&&e.observers.length&&B0(()=>{for(let n=0;n1e6)throw Me=[],new Error},!1)),t}function N0(e){if(!e.fn)return;gr(e);const t=pr;Ys(e,e.value,t)}function Ys(e,t,r){let a;const n=ke,i=xe;xe=ke=e;try{a=e.fn(t)}catch(s){return e.pure&&(e.state=kt,e.owned&&e.owned.forEach(gr),e.owned=null),e.updatedAt=r+1,di(s)}finally{xe=i,ke=n}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?fi(e,a):e.value=a,e.updatedAt=r)}function ia(e,t,r,a=kt,n){const i={fn:e,state:a,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ke,context:ke?ke.context:null,pure:r};return ke===null||ke!==oi&&(ke.owned?ke.owned.push(i):ke.owned=[i]),i}function cr(e){if(e.state===0)return;if(e.state===or)return lr(e);if(e.suspense&&bt(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--)if(e=t[r],e.state===kt)N0(e);else if(e.state===or){const a=Me;Me=null,B0(()=>lr(e,t[0]),!1),Me=a}}function B0(e,t){if(Me)return e();let r=!1;t||(Me=[]),vt?r=!0:vt=[],pr++;try{const a=e();return Rs(r),a}catch(a){r||(vt=null),Me=null,di(a)}}function Rs(e){if(Me&&(hi(Me),Me=null),e)return;const t=vt;vt=null,t.length&&B0(()=>si(t),!1)}function hi(e){for(let t=0;t=0;t--)gr(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Us(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function di(e,t=ke){throw Us(e)}const Xs=Symbol("fallback");function Ba(e){for(let t=0;t1?[]:null;return Gs(()=>Ba(i)),()=>{let l=e()||[],h=l.length,u,c;return l[Os],bt(()=>{let d,p,g,v,y,w,k,b,m;if(h===0)s!==0&&(Ba(i),i=[],a=[],n=[],s=0,o&&(o=[])),r.fallback&&(a=[Xs],n[0]=rr(C=>(i[0]=C,r.fallback())),s=1);else if(s===0){for(n=new Array(h),c=0;c=w&&b>=w&&a[k]===l[b];k--,b--)g[b]=n[k],v[b]=i[k],o&&(y[b]=o[k]);for(d=new Map,p=new Array(b+1),c=b;c>=w;c--)m=l[c],u=d.get(m),p[c]=u===void 0?-1:u,d.set(m,c);for(u=w;u<=k;u++)m=a[u],c=d.get(m),c!==void 0&&c!==-1?(g[c]=n[u],v[c]=i[u],o&&(y[c]=o[u]),c=p[c],d.set(m,c)):i[u]();for(c=w;ce(t||{}))}function z0(){return!0}const js={get(e,t,r){return t===Yr?r:e.get(t)},has(e,t){return t===Yr?!0:e.has(t)},set:z0,deleteProperty:z0,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:z0,deleteProperty:z0}},ownKeys(e){return e.keys()}};function Tr(e){return(e=typeof e=="function"?e():e)?e:{}}function Ks(){for(let e=0,t=this.length;e=0;o--){const l=Tr(e[o])[s];if(l!==void 0)return l}},has(s){for(let o=e.length-1;o>=0;o--)if(s in Tr(e[o]))return!0;return!1},keys(){const s=[];for(let o=0;o=0;s--){const o=e[s];if(!o)continue;const l=Object.getOwnPropertyNames(o);for(let h=l.length-1;h>=0;h--){const u=l[h];if(u==="__proto__"||u==="constructor")continue;const c=Object.getOwnPropertyDescriptor(o,u);if(!a[u])a[u]=c.get?{enumerable:!0,configurable:!0,get:Ks.bind(r[u]=[c.get.bind(o)])}:c.value!==void 0?c:void 0;else{const f=r[u];f&&(c.get?f.push(c.get.bind(o)):c.value!==void 0&&f.push(()=>c.value))}}}const n={},i=Object.keys(a);for(let s=i.length-1;s>=0;s--){const o=i[s],l=a[o];l&&l.get?Object.defineProperty(n,o,l):n[o]=l?l.value:void 0}return n}const Js=e=>`Stale read from <${e}>.`;function Zs(e){const t="fallback"in e&&{fallback:()=>e.fallback};return E0(Vs(()=>e.each,e.children,t||void 0))}function pi(e){const t=e.keyed,r=E0(()=>e.when,void 0,{equals:(a,n)=>t?a===n:!a==!n});return E0(()=>{const a=r();if(a){const n=e.children;return typeof n=="function"&&n.length>0?bt(()=>n(t?a:()=>{if(!bt(r))throw Js("Show");return e.when})):n}return e.fallback},void 0,void 0)}const eo=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],to=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...eo]),ro=new Set(["innerHTML","textContent","innerText","children"]),ao=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),no=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function io(e,t){const r=no[e];return typeof r=="object"?r[t]?r.$:void 0:r}const so=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]);function oo(e,t,r){let a=r.length,n=t.length,i=a,s=0,o=0,l=t[n-1].nextSibling,h=null;for(;su-o){const p=t[s];for(;o{n=i,t===document?e():A0(t,e(),t.firstChild?null:void 0,r)},a.owner),()=>{n(),t.textContent=""}}function L0(e,t,r){let a;const n=()=>{const s=document.createElement("template");return s.innerHTML=e,s.content.firstChild},i=()=>(a||(a=n())).cloneNode(!0);return i.cloneNode=i,i}function gi(e,t=window.document){const r=t[La]||(t[La]=new Set);for(let a=0,n=e.length;an.call(e,r[1],i))}else e.addEventListener(t,r)}function ho(e,t,r={}){const a=Object.keys(t||{}),n=Object.keys(r);let i,s;for(i=0,s=n.length;itypeof t.ref=="function"&&Wr(t.ref,e)),S0(()=>go(e,t,r,!0,n,!0)),n}function Wr(e,t,r){return bt(()=>e(t,r))}function A0(e,t,r,a){if(r!==void 0&&!a&&(a=[]),typeof t!="function")return fr(e,t,a,r);S0(n=>fr(e,t(),n,r),a)}function go(e,t,r,a,n={},i=!1){t||(t={});for(const s in n)if(!(s in t)){if(s==="children")continue;n[s]=Da(e,s,null,n[s],r,i)}for(const s in t){if(s==="children")continue;const o=t[s];n[s]=Da(e,s,o,n[s],r,i)}}function vo(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Pa(e,t,r){const a=t.trim().split(/\s+/);for(let n=0,i=a.length;n{let o=t();for(;typeof o=="function";)o=o();r=fr(e,o,r,a)}),()=>r;if(Array.isArray(t)){const o=[],l=r&&Array.isArray(r);if(Ur(o,t,r,n))return S0(()=>r=fr(e,o,r,a,!0)),()=>r;if(o.length===0){if(r=Yt(e,r,a),s)return r}else l?r.length===0?Fa(e,o,a):oo(e,r,o):(r&&Yt(e),Fa(e,o));r=o}else if(t.nodeType){if(Array.isArray(r)){if(s)return r=Yt(e,r,a,t);Yt(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function Ur(e,t,r,a){let n=!1;for(let i=0,s=t.length;i=0;s--){const o=t[s];if(n!==o){const l=o.parentNode===e;!i&&!s?l?e.replaceChild(n,o):e.insertBefore(n,r):l&&o.remove()}else i=!0}}else e.insertBefore(n,r);return[n]}function $a(e){return new Promise(t=>setTimeout(t,e))}function mo(e){const t=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"][e.pitch%12],r=~~(e.pitch/12)-2;return`${t}${r}`}function yo(e){return`${e.root}${e.mode}`}const wo=e=>`

${e}

`;class xo{constructor(t=document.body){f0(this,"queue");this.queue=document.createElement("div"),this.queue.className="na-message-queue",t.append(this.queue)}async emit(t){const r=document.createElement("div");let a=2e3,n="",i={},s=t??"☘";if(typeof s!="string"&&(a=s.duration??2e3,n=`${s.primary??""}`,i=s.style??{},s=`${s.content??"☘"}`),r.innerHTML=wo(s),n){const o=r.firstElementChild;o.dataset.primary=n,Object.entries(i).map(l=>o.style.setProperty(...l))}this.queue.appendChild(r),r.style.height=`${r.offsetHeight}px`,r.style.transition="opacity 1s, height 2s",await $a(a),r.style.opacity="0",r.style.height="0",await $a(2e3),this.queue.removeChild(r)}}const Co=new xo,ko=(...e)=>Co.emit(...e);function To(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _o="6.4.1",So=_o,Eo=function(e,t){var r=this;if(t||(t={}),r.qpm=t.qpm?parseInt(t.qpm,10):null,!r.qpm){var a=e.metaText?e.metaText.tempo:null;r.qpm=e.getBpm(a)}r.extraMeasuresAtBeginning=t.extraMeasuresAtBeginning?parseInt(t.extraMeasuresAtBeginning,10):0,r.beatCallback=t.beatCallback,r.eventCallback=t.eventCallback,r.lineEndCallback=t.lineEndCallback,r.lineEndAnticipation=t.lineEndAnticipation?parseInt(t.lineEndAnticipation,10):0,r.beatSubdivisions=t.beatSubdivisions?parseInt(t.beatSubdivisions,10):1,r.joggerTimer=null,r.replaceTarget=function(i){r.noteTimings=i.setTiming(r.qpm,r.extraMeasuresAtBeginning),i.noteTimings.length===0&&(r.noteTimings=i.setTiming(0,0)),r.lineEndCallback&&(r.lineEndTimings=Ao(i.noteTimings,r.lineEndAnticipation)),r.startTime=null,r.currentBeat=0,r.currentEvent=0,r.currentLine=0,r.currentTime=0,r.isPaused=!1,r.isRunning=!1,r.pausedPercent=null,r.justUnpaused=!1,r.newSeekPercent=0,r.lastTimestamp=0,r.noteTimings.length!==0&&(r.millisecondsPerBeat=1e3/(r.qpm/60)/r.beatSubdivisions,r.lastMoment=r.noteTimings[r.noteTimings.length-1].milliseconds,r.totalBeats=Math.round(r.lastMoment/r.millisecondsPerBeat))},r.replaceTarget(e),r.doTiming=function(i){if(r.lastTimestamp!==i&&(r.lastTimestamp=i,r.startTime||(r.startTime=i),!r.isPaused&&r.isRunning)){for(r.currentTime=i-r.startTime,r.currentTime+=16;r.noteTimings.length>r.currentEvent&&r.noteTimings[r.currentEvent].millisecondsr.currentLine&&r.lineEndTimings[r.currentLine].milliseconds=r.lastMoment)if(r.eventCallback){var u=r.eventCallback(null);r.shouldStop(u).then(function(c){c&&r.stop()})}else r.stop()}},r.shouldStop=function(i){return new Promise(function(s){if(!i)return s(!0);if(i==="continue")return s(!1);i.then&&i.then(function(o){s(o!=="continue")})})},r.doBeatCallback=function(i){if(r.beatCallback){for(var s=r.currentEvent;s=0&&r.noteTimings[s].left===null;)s--;l=r.noteTimings[s]}var h={},u={};if(l){h.top=l.top,h.height=l.height;var c=Math.max(0,i-r.startTime-l.milliseconds),f=o-l.milliseconds,d=l.endX-l.left,p=f?c*d/f:0;h.left=l.left+p,r.currentEvent===0&&l.milliseconds>i-r.startTime&&(h.left=void 0),u={timestamp:i,startTime:r.startTime,ev:l,endMs:o,offMs:c,offPx:p,gapMs:f,gapPx:d}}else u={timestamp:i,startTime:r.startTime};var g=r.startTime;if(r.beatCallback(r.currentBeat/r.beatSubdivisions,r.totalBeats/r.beatSubdivisions,r.lastMoment,h,u),g!==r.startTime)return i-r.startTime;r.currentBeat++}return null};var n=60;r.animationJogger=function(){r.isRunning&&(r.doTiming(performance.now()),r.joggerTimer=setTimeout(r.animationJogger,n))},r.start=function(i,s){if(r.isRunning=!0,r.isPaused&&(r.isPaused=!1,i===void 0&&(r.justUnpaused=!0)),i)r.setProgress(i,s);else if(i===0)r.reset();else if(r.pausedPercent!==null){var o=performance.now();r.currentTime=r.lastMoment*r.pausedPercent,r.startTime=o-r.currentTime,r.pausedPercent=null,r.reportNext=!0}requestAnimationFrame(r.doTiming),r.joggerTimer=setTimeout(r.animationJogger,n)},r.pause=function(){r.isPaused=!0;var i=performance.now();r.pausedPercent=(i-r.startTime)/r.lastMoment,r.isRunning=!1,r.joggerTimer&&(clearTimeout(r.joggerTimer),r.joggerTimer=null)},r.currentMillisecond=function(){return r.currentTime},r.reset=function(){r.currentBeat=0,r.currentEvent=0,r.currentLine=0,r.startTime=null,r.pausedPercent=null},r.stop=function(){r.pause(),r.reset()},r.setProgress=function(i,s){var o;switch(s){case"seconds":r.currentTime=i*1e3,r.currentTime<0&&(r.currentTime=0),r.currentTime>r.lastMoment&&(r.currentTime=r.lastMoment),o=r.currentTime/r.lastMoment;break;case"beats":r.currentTime=i*r.millisecondsPerBeat*r.beatSubdivisions,r.currentTime<0&&(r.currentTime=0),r.currentTime>r.lastMoment&&(r.currentTime=r.lastMoment),o=r.currentTime/r.lastMoment;break;default:o=i,o<0&&(o=0),o>1&&(o=1),r.currentTime=r.lastMoment*o;break}r.isRunning||(r.pausedPercent=o);var l=performance.now();for(r.startTime=l-r.currentTime,r.currentEvent,r.currentEvent=0;r.noteTimings.length>r.currentEvent&&r.noteTimings[r.currentEvent].millisecondsr.currentLine&&r.lineEndTimings[r.currentLine].milliseconds+r.lineEndAnticipation=0&&r.noteTimings[r.currentEvent].type==="event"&&r.eventCallback(r.noteTimings[r.currentEvent]),r.lineEndCallback&&r.lineEndCallback(r.lineEndTimings[r.currentLine],r.noteTimings[r.currentEvent],{line:r.currentLine,endTimings:r.lineEndTimings}),r.joggerTimer=setTimeout(r.animationJogger,n)}};function Ao(e,t){for(var r=[],a=null,n=0;n=0&&e.lastIndexOf(t)===r};Re.last=function(e){return e.length===0?null:e[e.length-1]};var Fe=Re,Ia=Fe,Ft={};(function(){var e,t,r,a,n;Ft.initialize=function(x,T,S,N,G){e=x,t=T,r=S,a=N,n=G,i()};function i(){r.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},r.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},r.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},r.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},r.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.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},a.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},a.formatting.annotationfont=r.annotationfont,a.formatting.gchordfont=r.gchordfont,a.formatting.historyfont=r.historyfont,a.formatting.infofont=r.infofont,a.formatting.measurefont=r.measurefont,a.formatting.partsfont=r.partsfont,a.formatting.repeatfont=r.repeatfont,a.formatting.textfont=r.textfont,a.formatting.tripletfont=r.tripletfont,a.formatting.vocalfont=r.vocalfont,a.formatting.wordsfont=r.wordsfont}var s={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},o=function(x){switch(x){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=function(x,T,S,N,G){function W(){var _e=parseInt(x[0].token);return x.shift(),T?x.length===0?{face:T.face,weight:T.weight,style:T.style,decoration:T.decoration,size:_e}:x.length===1&&x[0].token==="box"&&s[G]?{face:T.face,weight:T.weight,style:T.style,decoration:T.decoration,size:_e,box:!0}:(t("Extra parameters in font definition.",S,N),{face:T.face,weight:T.weight,style:T.style,decoration:T.decoration,size:_e}):(t("Can't set just the size of the font since there is no default value.",S,N),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:_e})}if(x[0].token==="*"){if(x.shift(),x[0].type==="number")return W();t("Expected font size number after *.",S,N)}if(x[0].type==="number")return W();for(var Z=[],j,ie="normal",ne="normal",Ce="none",ee=!1,Ie="face",R=!1;x.length;){var pe=x.shift(),K=pe.token.toLowerCase();switch(Ie){case"face":R||K!=="utf"&&pe.type!=="number"&&K!=="bold"&&K!=="italic"&&K!=="underline"&&K!=="box"?Z.length>0&&pe.token==="-"?(R=!0,Z[Z.length-1]=Z[Z.length-1]+pe.token):R?(R=!1,Z[Z.length-1]=Z[Z.length-1]+pe.token):Z.push(pe.token):pe.type==="number"?(j?t("Font size specified twice in font definition.",S,N):j=pe.token,Ie="modifier"):K==="bold"?ie="bold":K==="italic"?ne="italic":K==="underline"?Ce="underline":K==="box"?(s[G]?ee=!0:t(`This font style doesn't support "box"`,S,N),Ie="finished"):K==="utf"?(pe=x.shift(),Ie="size"):t("Unknown parameter "+pe.token+" in font definition.",S,N);break;case"size":pe.type==="number"?j?t("Font size specified twice in font definition.",S,N):j=pe.token:t("Expected font size in font definition.",S,N),Ie="modifier";break;case"modifier":K==="bold"?ie="bold":K==="italic"?ne="italic":K==="underline"?Ce="underline":K==="box"?(s[G]?ee=!0:t(`This font style doesn't support "box"`,S,N),Ie="finished"):t("Unknown parameter "+pe.token+" in font definition.",S,N);break;case"finished":t('Extra characters found after "box" in font definition.',S,N);break}}j===void 0?T?j=T.size:(t("Must specify the size of the font since there is no default value.",S,N),j=12):j=parseFloat(j),Z=Z.join(" "),Z===""&&(T?Z=T.face:(t("Must specify the name of the font since there is no default value.",S,N),Z="sans-serif"));var te=o(Z),re={};return te?(re.face=te.face,re.weight=te.weight,re.style=te.style,re.decoration=te.decoration,re.size=j,ee&&(re.box=!0),re):(re.face=Z,re.weight=ie,re.style=ne,re.decoration=Ce,re.size=j,ee&&(re.box=!0),re)},h=function(x,T,S){return T.length===0?'Directive "'+x+'" requires a font as a parameter.':(r[x]=l(T,r[x],S,0,x),r.is_in_header&&(a.formatting[x]=r[x]),null)},u=function(x,T,S){return T.length===0?'Directive "'+x+'" requires a font as a parameter.':(a.formatting[x]=l(T,a.formatting[x],S,0,x),null)},c=function(x,T){var S="";T.forEach(function(G){S+=G.token});var N=parseFloat(S);if(isNaN(N)||N===0)return'Directive "'+x+'" requires a number as a parameter.';a.formatting.scale=N},f=["acoustic-bass-drum","bass-drum-1","side-stick","acoustic-snare","hand-clap","electric-snare","low-floor-tom","closed-hi-hat","high-floor-tom","pedal-hi-hat","low-tom","open-hi-hat","low-mid-tom","hi-mid-tom","crash-cymbal-1","high-tom","ride-cymbal-1","chinese-cymbal","ride-bell","tambourine","splash-cymbal","cowbell","crash-cymbal-2","vibraslap","ride-cymbal-2","hi-bongo","low-bongo","mute-hi-conga","open-hi-conga","low-conga","high-timbale","low-timbale","high-agogo","low-agogo","cabasa","maracas","short-whistle","long-whistle","short-guiro","long-guiro","claves","hi-wood-block","low-wood-block","mute-cuica","open-cuica","mute-triangle","open-triangle"],d=function(x){var T=x.split(/\s+/);if(T.length!==2&&T.length!==3)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var S=T[0],N=parseInt(T[1],10);if((isNaN(N)||N<35||N>81)&&T[1]&&(N=f.indexOf(T[1].toLowerCase())+35),isNaN(N)||N<35||N>81)return{error:'Expected drum name, received "'+T[1]+'"'};var G={sound:N};return T.length===3&&(G.noteHead=T[2]),{key:S,value:G}},p=function(x,T){var S=e.getMeasurement(T);return S.used===0||T.length!==0?{error:'Directive "'+x+'" requires a measurement as a parameter.'}:S.value},g=function(x,T){var S=e.getMeasurement(T);return S.used===0||T.length!==0?'Directive "'+x+'" requires a measurement as a parameter.':(a.formatting[x]=S.value,null)},v=function(x,T,S,N,G){if(S.length!==1||S[0].type!=="number")return'Directive "'+T+'" requires a number as a parameter.';var W=S[0].intt;return N!==void 0&&WG?'Directive "'+T+'" requires a number less than or equal to '+G+" as a parameter.":(r[x]=W,null)},y=function(x,T,S){if(S.length===1&&(S[0].token==="true"||S[0].token==="false"))return r[x]=S[0].token==="true",null;var N=v(x,T,S,0,1);return N!==null?N:(r[x]=r[x]===1,null)},w=function(x,T,S,N){if(S.length!==1)return'Directive "'+T+'" requires one of [ '+N.join(", ")+" ] as a parameter.";for(var G=S[0].token,W=!1,Z=0;!W&&Z=0)x.length!==0&&t("Unexpected parameter in MIDI "+N,S,0);else if(b.indexOf(N)>=0)x.length!==1?t("Expected one parameter in MIDI "+N,S,0):G.push(x[0].token);else if(m.indexOf(N)>=0)x.length!==1?t("Expected one parameter in MIDI "+N,S,0):x[0].type!=="number"?t("Expected one integer parameter in MIDI "+N,S,0):G.push(x[0].intt);else if(C.indexOf(N)>=0)x.length!==1&&x.length!==2?t("Expected one or two parameters in MIDI "+N,S,0):x[0].type!=="number"||x.length===2&&x[1].type!=="number"?t("Expected integer parameter in MIDI "+N,S,0):(G.push(x[0].intt),x.length===2&&G.push(x[1].intt));else if(_.indexOf(N)>=0)x.length!==2?t("Expected two parameters in MIDI "+N,S,0):x[0].type!=="number"||x[1].type!=="number"?t("Expected two integer parameters in MIDI "+N,S,0):(G.push(x[0].intt),G.push(x[1].intt));else if(P.indexOf(N)>=0)x.length!==2?t("Expected two parameters in MIDI "+N,S,0):x[0].type!=="alpha"||x[1].type!=="number"?t("Expected one string and one integer parameters in MIDI "+N,S,0):(G.push(x[0].token),G.push(x[1].intt));else if(N==="drummap")x.length===2&&x[0].type==="alpha"&&x[1].type==="number"?(T.formatting||(T.formatting={}),T.formatting.midi||(T.formatting.midi={}),T.formatting.midi.drummap||(T.formatting.midi.drummap={}),T.formatting.midi.drummap[x[0].token]=x[1].intt,G=T.formatting.midi.drummap):x.length===3&&x[0].type==="punct"&&x[1].type==="alpha"&&x[2].type==="number"?(T.formatting||(T.formatting={}),T.formatting.midi||(T.formatting.midi={}),T.formatting.midi.drummap||(T.formatting.midi.drummap={}),T.formatting.midi.drummap[x[0].token+x[1].token]=x[2].intt,G=T.formatting.midi.drummap):t("Expected one note name and one integer parameter in MIDI "+N,S,0);else if(q.indexOf(N)>=0)x.length!==3||x[0].type!=="number"||x[1].token!=="/"||x[2].type!=="number"?t("Expected fraction parameter in MIDI "+N,S,0):(G.push(x[0].intt),G.push(x[2].intt));else if(M.indexOf(N)>=0)x.length!==4?t("Expected four parameters in MIDI "+N,S,0):x[0].type!=="number"||x[1].type!=="number"||x[2].type!=="number"||x[3].type!=="number"?t("Expected four integer parameters in MIDI "+N,S,0):(G.push(x[0].intt),G.push(x[1].intt),G.push(x[2].intt),G.push(x[3].intt));else if(L.indexOf(N)>=0)x.length!==5?t("Expected five parameters in MIDI "+N,S,0):x[0].type!=="number"||x[1].type!=="number"||x[2].type!=="number"||x[3].type!=="number"||x[4].type!=="number"?t("Expected five integer parameters in MIDI "+N,S,0):(G.push(x[0].intt),G.push(x[1].intt),G.push(x[2].intt),G.push(x[3].intt),G.push(x[4].intt));else if(C.indexOf(N)>=0)x.length!==1||x.length!==4?t("Expected one or two parameters in MIDI "+N,S,0):x[0].type!=="number"?t("Expected integer parameter in MIDI "+N,S,0):x.length===4?(x[1].token!=="octave"&&t("Expected octave parameter in MIDI "+N,S,0),x[2].token!=="="&&t("Expected octave parameter in MIDI "+N,S,0),x[3].type!=="number"&&t("Expected integer parameter for octave in MIDI "+N,S,0)):(G.push(x[0].intt),x.length===4&&G.push(x[3].intt));else if(F.indexOf(N)>=0)if(x.length<2)t("Expected string parameter and at least one integer parameter in MIDI "+N,S,0);else if(x[0].type!=="alpha")t("Expected string parameter and at least one integer parameter in MIDI "+N,S,0);else{var W=x.shift();for(G.push(W.token);x.length>0;)W=x.shift(),W.type!=="number"&&t("Expected integer parameter in MIDI "+N,S,0),G.push(W.intt)}n.hasBeginMusic()?n.appendElement("midi",-1,-1,{cmd:N,params:G}):(T.formatting.midi===void 0&&(T.formatting.midi={}),T.formatting.midi[N]=G)};Ft.parseFontChangeLine=function(x){x=x.replace(/\$\$/g,"");var T=x.split("$");if(T.length>1&&r.setfont){var S=[];T[0]!==""&&S.push({text:T[0]});for(var N=1;N0&&r.ignoredDecorations.push(S.substring(0,S.indexOf(" "))),t("Decoration redefinition ignored",x,0);break;case"text":var te=e.translateString(S);n.addText(Ft.parseFontChangeLine(te),{startChar:r.iChar,endChar:r.iChar+S.length+7});break;case"center":var re=e.translateString(S);n.addCentered(Ft.parseFontChangeLine(re));break;case"font":break;case"setfont":var _e=e.tokenize(S,0,S.length);if(_e.length>=4&&_e[0].token==="-"&&_e[1].type==="number"){var He=parseInt(_e[1].token);He>=1&&He<=9&&(r.setfont||(r.setfont=[]),_e.shift(),_e.shift(),r.setfont[He]=l(_e,r.setfont[He],x,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 h(N,T,x);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return u(N,T,x);case"barlabelfont":case"barnumberfont":case"barnumfont":return h("measurefont",T,x);case"staves":case"score":r.score_is_present=!0;for(var At=function(Qe,Le,Yt,h0,H0){(Le||r.staves.length===0)&&r.staves.push({index:r.staves.length,numVoices:0});var qe=Ia.last(r.staves);Yt!==void 0&&qe.bracket===void 0&&(qe.bracket=Yt),h0!==void 0&&qe.brace===void 0&&(qe.brace=h0),H0&&(qe.connectBarLines="end"),r.voices[Qe]===void 0&&(r.voices[Qe]={staffNum:qe.index,index:qe.numVoices},qe.numVoices++)},Be=!1,B=!1,I=!1,H=!1,A=!1,z=!1,X=!1,Q,ae=function(){if(X=!0,Q){var Qe="start";Q.staffNum>0&&(r.staves[Q.staffNum-1].connectBarLines==="start"||r.staves[Q.staffNum-1].connectBarLines==="continue")&&(Qe="continue"),r.staves[Q.staffNum].connectBarLines=Qe}};T.length;){var U=T.shift();switch(U.token){case"(":Be?t("Can't nest parenthesis in %%score",x,U.start):(Be=!0,H=!0);break;case")":!Be||H?t("Unexpected close parenthesis in %%score",x,U.start):Be=!1;break;case"[":B?t("Can't nest brackets in %%score",x,U.start):(B=!0,A=!0);break;case"]":!B||A?t("Unexpected close bracket in %%score",x,U.start):(B=!1,r.staves[Q.staffNum].bracket="end");break;case"{":I?t("Can't nest braces in %%score",x,U.start):(I=!0,z=!0);break;case"}":!I||z?t("Unexpected close brace in %%score",x,U.start):(I=!1,r.staves[Q.staffNum].brace="end");break;case"|":ae();break;default:for(var V="";(U.type==="alpha"||U.type==="number")&&(V+=U.token,U.continueId);)U=T.shift();var ge=!Be||H,le=A?"start":B?"continue":void 0,J=z?"start":I?"continue":void 0;At(V,ge,le,J,X),H=!1,A=!1,z=!1,X=!1,Q=r.voices[V],N==="staves"&&ae();break}}break;case"newpage":var fe=e.getInt(S);n.addNewPage(fe.digits===0?-1:fe.value);break;case"abc":var Ee=S.split(" ");switch(Ee[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var oe=Ee.shift();n.addMetaText(N+oe,Ee.join(" "),{startChar:r.iChar,endChar:r.iChar+S.length+5});break;default:return"Unknown directive: "+N+Ee[0]}break;case"header":case"footer":var ce=e.getMeat(S,0,S.length);ce=S.substring(ce.start,ce.end),ce[0]==='"'&&ce[ce.length-1]==='"'&&(ce=ce.substring(1,ce.length-1));var ve=ce.split(" "),f0={};ve.length===1?f0={left:"",center:ve[0],right:""}:ve.length===2?f0={left:ve[0],center:ve[1],right:""}:f0={left:ve[0],center:ve[1],right:ve[2]},ve.length>3&&t("Too many tabs in "+N+": "+ve.length+" found.",S,0),n.addMetaTextObj(N,f0,{startChar:r.iChar,endChar:r.iChar+x.length});break;case"midi":var dt=e.tokenize(S,0,S.length,!0);dt.length>0&&dt[0].token==="="&&dt.shift(),dt.length===0?t("Expected midi command",S,0):D(dt,a,S);break;case"percmap":var we=d(S);we.error?t(we.error,x,8):(a.formatting.percmap||(a.formatting.percmap={}),a.formatting.percmap[we.key]=we.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":a.formatting[N]=S;break;default:return"Unknown directive: "+N}return null},Ft.globalFormatting=function(x){for(var T in x)if(x.hasOwnProperty(T)){var S=""+x[T],N=e.tokenize(S,0,S.length),Y;switch(T){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":case"tablabelfont":case"tabnumberfont":case"tabgracefont":h(T,N,S);break;case"scale":c(T,N);break;case"partsbox":Y=y("partsBox",T,N),Y!==null&&t(Y),r.partsfont.box=r.partsBox;break;case"freegchord":Y=y("freegchord",T,N),Y!==null&&t(Y);break;case"fontboxpadding":(N.length!==1||N[0].type!=="number")&&t('Directive "'+T+'" requires a number as a parameter.'),a.formatting.fontboxpadding=N[0].floatt;break;case"stafftopmargin":(N.length!==1||N[0].type!=="number")&&t('Directive "'+T+'" requires a number as a parameter.'),a.formatting.stafftopmargin=N[0].floatt;break;case"stretchlast":var W=R(N);if(W.value!==void 0&&(a.formatting.stretchlast=W.value),W.error)return W.error;break;default:t("Formatting directive unrecognized: ",T,0)}}};function R(x){if(x.length===0)return{value:1};if(x.length===1)if(x[0].type==="number"){if(x[0].floatt>=0||x[0].floatt<=1)return{value:x[0].floatt}}else{if(x[0].token==="false")return{value:0};if(x[0].token==="true")return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+x[0].token+")"}}})();var oa=Ft,ca={};const vi=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];ca.pitchIndex=function(e){return vi.indexOf(e)};ca.noteName=function(e){return vi[e]};var Po=ca,Y0=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],R0=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"],G0=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],W0=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];function Do(e,t,r,a){if(!t||t%12===0)return e;for(;t<0;)t+=12;t>11&&(t=t%12);var n=e.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!n)return e;var i=n[1],s=n[2],o=n[3],l=n[4],h=Y0.indexOf(i);if(h<0&&(h=R0.indexOf(i)),h<0&&(h=G0.indexOf(i)),h<0&&(h=W0.indexOf(i)),h<0)return e;if(h+=t,h=h%12,r?a?e=W0[h]:e=R0[h]:a?e=G0[h]:e=Y0[h],s&&(e+=s),o){var h=Y0.indexOf(o);h<0&&(h=R0.indexOf(o)),h<0&&(h=G0.indexOf(o)),h<0&&(h=W0.indexOf(o)),e+="/",h>=0?(h+=t,h=h%12,r?a?e+=W0[h]:e+=R0[h]:a?e+=G0[h]:e+=Y0[h]):e+=o}return l&&(e+=l),e}var bi=Do,Ot={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},k0=null;function Fo(){k0={};for(var e=Object.keys(Ot),t=0;t11&&(h=h%12);var u=t[0]==="m"?Xo[h]:Uo[h],c=u+t,f=Er(c);f.length>0&&f[0].acc==="flat"&&(e.localTransposePreferFlats=!0);var d=c.charCodeAt(0)-s.charCodeAt(0);return e.localTranspose>0?(d<0||d===0&&(s[1]==="#"||c[1]==="b"))&&(d+=7):e.localTranspose<0&&(d>0||d===0&&(s[1]==="b"||c[1]==="#"))&&(d-=7),e.localTranspose>0?e.localTransposeVerticalMovement=d+Math.floor(e.localTranspose/12)*7:e.localTransposeVerticalMovement=d+Math.ceil(e.localTranspose/12)*7,l?{accidentals:f,root:u[0],acc:u.length>1?u[1]:""}:{accidentals:[],root:r,acc:a}};vr.chordName=function(e,t){return Go(t,e.localTranspose,e.localTransposePreferFlats,e.freegchord)};var qa=["c","d","e","f","g","a","b"];function Vo(e,t,r,a,n){for(var i=qa[(e+49)%7],s=0,o=0;o2&&(t++,d-=u==="b"||u==="e"?1:2),[t,d]}var Ar={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},jo={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},Ko={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};vr.note=function(e,t){if(!(!e.localTranspose||e.clef.type==="perc")){var r=t.pitch;if(e.localTransposeVerticalMovement&&(t.pitch=t.pitch+e.localTransposeVerticalMovement,t.name)){var a=t.accidental?t.name.substring(1):t.name,n=t.accidental?t.name[0]:"",i=Ha.pitchIndex(a);t.name=n+Ha.noteName(i+e.localTransposeVerticalMovement)}if(t.accidental){var s=Vo(r,t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey);t.pitch=s[0],t.accidental=jo[s[1]],t.name&&(t.name=Ko[s[1]]+t.name.replace(/[_^=]/g,""))}}};var wi=vr,Ya=Fe,Ra=oa,Qo=wi,Pe={};(function(){var e,t,r,a;Pe.initialize=function(u,c,f,d,p){e=u,t=c,r=f,a=p},Pe.standardKey=function(u,c,f,d){return Qo.keySignature(r,u,c,f,d)};var n={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}},i=function(u,c){var f=n[u],d=f?f.mid:0;return d+c};Pe.fixClef=function(u){var c=n[u.type];c&&(u.clefPos=c.pitch,u.type=c.clef)},Pe.deepCopyKey=function(u){var c={accidentals:[],root:u.root,acc:u.acc,mode:u.mode};return u.accidentals.forEach(function(f){c.accidentals.push(Ya.clone(f))}),c};var s={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};Pe.addPosToKey=function(u,c){var f=u.verticalPos;c.accidentals.forEach(function(d){var p=s[d.note];p=p-f,d.verticalPos=p}),c.impliedNaturals&&c.impliedNaturals.forEach(function(d){var p=s[d.note];p=p-f,d.verticalPos=p}),f<-10?(c.accidentals.forEach(function(d){d.verticalPos-=7,(d.verticalPos>=11||d.verticalPos===10&&d.acc==="flat")&&(d.verticalPos-=7),d.note==="A"&&d.acc==="sharp"&&(d.verticalPos-=7),(d.note==="G"||d.note==="F")&&d.acc==="flat"&&(d.verticalPos-=7)}),c.impliedNaturals&&c.impliedNaturals.forEach(function(d){d.verticalPos-=7,(d.verticalPos>=11||d.verticalPos===10&&d.acc==="flat")&&(d.verticalPos-=7),d.note==="A"&&d.acc==="sharp"&&(d.verticalPos-=7),(d.note==="G"||d.note==="F")&&d.acc==="flat"&&(d.verticalPos-=7)})):f<-4?(c.accidentals.forEach(function(d){d.verticalPos-=7,f===-8&&(d.note==="f"||d.note==="g")&&d.acc==="sharp"&&(d.verticalPos-=7)}),c.impliedNaturals&&c.impliedNaturals.forEach(function(d){d.verticalPos-=7,f===-8&&(d.note==="f"||d.note==="g")&&d.acc==="sharp"&&(d.verticalPos-=7)})):f>=7&&(c.accidentals.forEach(function(d){d.verticalPos+=7}),c.impliedNaturals&&c.impliedNaturals.forEach(function(d){d.verticalPos+=7}))},Pe.fixKey=function(u,c){var f=Ya.clone(c);return Pe.addPosToKey(u,f),f};var o=function(u){var c=0,f=u[c++];(f==="^"||f==="_")&&(f=u[c++]);var d=s[f];for(d===void 0&&(d=6);c0){d.foundKey=!0;var g="",v="";f[0].token.length>1?f[0].token=f[0].token.substring(1):f.shift();var y=p.token;if(f.length>0){var w=e.getSharpFlat(f[0].token);if(w.len>0&&(f[0].token.length>1?f[0].token=f[0].token.substring(1):f.shift(),y+=w.token,g=w.token),f.length>0){var k=e.getMode(f[0].token);k.len>0&&(f.shift(),y+=k.token,v=k.token)}if(Pe.standardKey(y,p.token,g,0)===void 0)return t("Unsupported key signature: "+y,u,0),d}var b=Pe.deepCopyKey(r.key),m=!c&&r.globalTranspose?-r.globalTranspose:0,C;if(c&&(C=r.globalTransposeOrigKeySig),r.key=Pe.deepCopyKey(Pe.standardKey(y,p.token,g,m)),c&&(r.globalTransposeOrigKeySig=C),r.key.mode=v,b){for(var _,M=0;M0;)switch(f[0].token){case"m":case"middle":if(f.shift(),f.length===0)return t("Expected = after middle",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after middle",u,$.start);break}if(f.length===0)return t("Expected parameter after middle=",u,0),d;var R=e.getPitchFromTokens(f);R.warn&&t(R.warn,u,0),R.position&&(r.clef.verticalPos=R.position-6);break;case"transpose":if(f.shift(),f.length===0)return t("Expected = after transpose",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after transpose",u,$.start);break}if(f.length===0)return t("Expected parameter after transpose=",u,0),d;if(f[0].type!=="number"){t("Expected number after transpose",u,f[0].start);break}r.clef.transpose=f[0].intt,f.shift();break;case"stafflines":if(f.shift(),f.length===0)return t("Expected = after stafflines",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after stafflines",u,$.start);break}if(f.length===0)return t("Expected parameter after stafflines=",u,0),d;if(f[0].type!=="number"){t("Expected number after stafflines",u,f[0].start);break}r.clef.stafflines=f[0].intt,f.shift();break;case"staffscale":if(f.shift(),f.length===0)return t("Expected = after staffscale",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after staffscale",u,$.start);break}if(f.length===0)return t("Expected parameter after staffscale=",u,0),d;if(f[0].type!=="number"){t("Expected number after staffscale",u,f[0].start);break}r.clef.staffscale=f[0].floatt,f.shift();break;case"octave":if(f.shift(),f.length===0)return t("Expected = after octave",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after octave",u,$.start);break}if(f.length===0)return t("Expected parameter after octave=",u,0),d;if(f[0].type!=="number"){t("Expected number after octave",u,f[0].start);break}r.octave=f[0].intt,f.shift();break;case"style":if(f.shift(),f.length===0)return t("Expected = after style",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after style",u,$.start);break}if(f.length===0)return t("Expected parameter after style=",u,0),d;switch(f[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":r.style=f[0].token,f.shift();break;default:t("error parsing style element: "+f[0].token,u,f[0].start);break}break;case"clef":if(f.shift(),f.length===0)return t("Expected = after clef",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after clef",u,$.start);break}if(f.length===0)return t("Expected parameter after clef=",u,0),d;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var x=f.shift();switch(x.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":x.token="alto";break;case"F":x.token="bass";break;case"G":x.token="treble";break;case"c":x.token="alto";break;case"f":x.token="bass";break;case"g":x.token="treble";break;default:t("Expected clef name. Found "+x.token,u,x.start);break}f.length>0&&f[0].type==="number"&&(x.token+=f[0].token,f.shift()),f.length>1&&(f[0].token==="-"||f[0].token==="+"||f[0].token==="^"||f[0].token==="_")&&f[1].token==="8"&&(x.token+=f[0].token+f[1].token,f.shift(),f.shift()),r.clef={type:x.token,verticalPos:i(x.token,0)},r.currentVoice&&r.currentVoice.transpose!==void 0&&(r.clef.transpose=r.currentVoice.transpose),d.foundClef=!0;break;default:t("Unknown parameter: "+f[0].token,u,f[0].start),f.shift()}return d};var h=function(u){r.currentVoice=r.voices[u],a.setCurrentVoice(r.currentVoice.staffNum,r.currentVoice.index)};Pe.parseVoice=function(u,c,f){var d=e.getMeat(u,c,f),p=d.start,g=d.end,v=e.getToken(u,p,g);if(v.length===0){t("Expected a voice id",u,p);return}var y=!1;r.voices[v]===void 0&&(r.voices[v]={},y=!0,r.score_is_present&&t("Can't have an unknown V: id when the %score directive is present",u,p)),p+=v.length,p+=e.eatWhiteSpace(u,p);for(var w={startStaff:y},k=function(R){var x=e.getVoiceToken(u,p,g);x.warn!==void 0?t("Expected value for "+R+" in voice: "+x.warn,u,p):x.err!==void 0?t("Expected value for "+R+" in voice: "+x.err,u,p):x.token.length===0&&u[p]!=='"'?t("Expected value for "+R+" in voice",u,p):w[R]=x.token,p+=x.len},b=function(R,x,T){var S=e.getVoiceToken(u,p,g);S.warn!==void 0?t("Expected value for "+x+" in voice: "+S.warn,u,p):S.err!==void 0?t("Expected value for "+x+" in voice: "+S.err,u,p):S.token.length===0&&u[p]!=='"'?t("Expected value for "+x+" in voice",u,p):(T==="number"&&(S.token=parseFloat(S.token)),r.voices[R][x]=S.token),p+=S.len},m=function(R,x){var T=e.getVoiceToken(u,p,g);if(T.warn!==void 0)t("Expected value for "+R+" in voice: "+T.warn,u,p);else if(T.err!==void 0)t("Expected value for "+R+" in voice: "+T.err,u,p);else if(T.token.length===0&&u[p]!=='"')t("Expected value for "+R+" in voice",u,p);else return x==="number"&&(T.token=parseFloat(T.token)),T.token;p+=T.len},C=function(R,x){var T={_B:2,_E:9,_b:-10,_e:-3},S=e.getVoiceToken(u,p,g);if(S.warn!==void 0)t("Expected one of (_B, _E, _b, _e) for "+x+" in voice: "+S.warn,u,p);else if(S.token.length===0&&u[p]!=='"')t("Expected one of (_B, _E, _b, _e) for "+x+" in voice",u,p);else{var N=T[S.token];N?r.voices[R][x]=N:t("Expected one of (_B, _E, _b, _e) for "+x+" in voice",u,p)}p+=S.len};p0&&(r.default_length=f/d,r.havent_set_length=!1)}else c.length===1&&c[0]==="1"&&(r.default_length=1,r.havent_set_length=!1)};var i={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(o,l,h,u){try{var c=e.tokenize(o,l,h);if(c.length===0)throw"Missing parameter in Q: field";var f={startChar:u+l-2,endChar:u+h},d=!0,p=c.shift();if(p.type==="quote"&&(f.preString=p.token,p=c.shift(),c.length===0))return i[f.preString.toLowerCase()]&&(f.bpm=i[f.preString.toLowerCase()],f.suppressBpm=!0),{type:"immediate",tempo:f};if(p.type==="alpha"&&p.token==="C"){if(c.length===0)throw"Missing tempo after C in Q: field";if(p=c.shift(),p.type==="punct"&&p.token==="="){if(c.length===0)throw"Missing tempo after = in Q: field";if(p=c.shift(),p.type!=="number")throw"Expected number after = in Q: field";f.duration=[1],f.bpm=parseInt(p.token)}else if(p.type==="number"){if(f.duration=[parseInt(p.token)],c.length===0)throw"Missing = after duration in Q: field";if(p=c.shift(),p.type!=="punct"||p.token!=="=")throw"Expected = after duration in Q: field";if(c.length===0)throw"Missing tempo after = in Q: field";if(p=c.shift(),p.type!=="number")throw"Expected number after = in Q: field";f.bpm=parseInt(p.token)}else throw"Expected number or equal after C in Q: field"}else if(p.type==="number"){var g=parseInt(p.token);if(c.length===0||c[0].type==="quote")f.duration=[1],f.bpm=g;else{if(d=!1,p=c.shift(),p.type!=="punct"&&p.token!=="/"||(p=c.shift(),p.type!=="number"))throw"Expected fraction in Q: field";var v=parseInt(p.token);for(f.duration=[g/v];c.length>0&&c[0].token!=="="&&c[0].type!=="quote";){if(p=c.shift(),p.type!=="number"||(g=parseInt(p.token),p=c.shift(),p.type!=="punct"&&p.token!=="/")||(p=c.shift(),p.type!=="number"))throw"Expected fraction in Q: field";v=parseInt(p.token),f.duration.push(g/v)}if(p=c.shift(),p.type!=="punct"&&p.token!=="=")throw"Expected = in Q: field";if(p=c.shift(),p.type!=="number")throw"Expected tempo in Q: field";f.bpm=parseInt(p.token)}}else throw"Unknown value in Q: field";if(c.length!==0&&(p=c.shift(),p.type==="quote"&&(f.postString=p.token,p=c.shift()),c.length!==0))throw"Unexpected string at end of Q: field";return r.printTempo===!1&&(f.suppress=!0),{type:d?"delaySet":"immediate",tempo:f}}catch(y){return t(y,o,l),{type:"none"}}},this.letter_to_inline_header=function(o,l,h){var u=e.eatWhiteSpace(o,l);if(l+=u,o.length>=l+5&&o[l]==="["&&o[l+2]===":"){var c=o.indexOf("]",l),f=r.iChar+l,d=r.iChar+c+1;switch(o.substring(l,l+3)){case"[I:":var p=it.addDirective(o.substring(l+3,c));return p&&t(p,o,l),[c-l+1+u];case"[M:":var g=this.setMeter(o.substring(l+3,c));return n.hasBeginMusic()&&g?n.appendStartingElement("meter",f,d,g):r.meter=g,[c-l+1+u];case"[K:":var v=st.parseKey(o.substring(l+3,c),!0);return v.foundClef&&n.hasBeginMusic()&&n.appendStartingElement("clef",f,d,r.clef),v.foundKey&&n.hasBeginMusic()&&n.appendStartingElement("key",f,d,st.fixKey(r.clef,r.key)),[c-l+1+u];case"[P:":var y=it.parseFontChangeLine(o.substring(l+3,c));return h||a.lines.length<=a.lineNum?r.partForNextLine={title:y,startChar:f,endChar:d}:n.appendElement("part",f,d,{title:y}),[c-l+1+u];case"[L:":return this.setDefaultLength(o,l+3,c),[c-l+1+u];case"[Q:":if(c>0){var w=this.setTempo(o,l+3,c,r.iChar);return w.type==="delaySet"?n.hasBeginMusic()?n.appendElement("tempo",f,d,this.calcTempo(w.tempo)):r.tempoForNextLine=["tempo",f,d,this.calcTempo(w.tempo)]:w.type==="immediate"&&(!h&&n.hasBeginMusic()?n.appendElement("tempo",f,d,w.tempo):r.tempoForNextLine=["tempo",f,d,w.tempo]),[c-l+1+u,o[l+1],o.substring(l+3,c)]}break;case"[V:":if(c>0)return st.parseVoice(o,l+3,c),[c-l+1+u,o[l+1],o.substring(l+3,c)];break;case"[r:":return[c-l+1+u]}}return[0]},this.letter_to_body_header=function(o,l){if(o.length>=l+3)switch(o.substring(l,l+2)){case"I:":var h=it.addDirective(o.substring(l+2));return h&&t(h,o,l),[o.length];case"M:":var u=this.setMeter(o.substring(l+2));return n.hasBeginMusic()&&u&&n.appendStartingElement("meter",r.iChar+l,r.iChar+o.length,u),[o.length];case"K:":var c=st.parseKey(o.substring(l+2),n.hasBeginMusic());return c.foundClef&&n.hasBeginMusic()&&n.appendStartingElement("clef",r.iChar+l,r.iChar+o.length,r.clef),c.foundKey&&n.hasBeginMusic()&&n.appendStartingElement("key",r.iChar+l,r.iChar+o.length,st.fixKey(r.clef,r.key)),[o.length];case"P:":return n.hasBeginMusic()&&n.appendElement("part",r.iChar+l,r.iChar+o.length,{title:o.substring(l+2)}),[o.length];case"L:":return this.setDefaultLength(o,l+2,o.length),[o.length];case"Q:":var f=o.indexOf("",l+2);f===-1&&(f=o.length);var d=this.setTempo(o,l+2,f,r.iChar);return d.type==="delaySet"?n.appendElement("tempo",r.iChar+l,r.iChar+o.length,this.calcTempo(d.tempo)):d.type==="immediate"&&n.appendElement("tempo",r.iChar+l,r.iChar+o.length,d.tempo),[f,o[l],X0.strip(o.substring(l+2))];case"V:":return st.parseVoice(o,l+2,o.length),[o.length,o[l],X0.strip(o.substring(l+2))]}return[0]};var s={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){var l=s[o[0]],h=o.length-2,u=e.translateString(e.stripComment(o.substring(2)));if(l==="unalignedWords"||l==="notes")n.addMetaTextArray(l,it.parseFontChangeLine(u),{startChar:r.iChar,endChar:r.iChar+o.length});else if(l!==void 0)n.addMetaText(l,it.parseFontChangeLine(u),{startChar:r.iChar,endChar:r.iChar+o.length});else{var c=r.iChar,f=c+o.length;switch(o[0]){case"H":for(n.addMetaTextArray("history",it.parseFontChangeLine(u),{startChar:r.iChar,endChar:r.iChar+o.length}),o=e.peekLine();o&&o[1]!==":";)e.nextLine(),n.addMetaTextArray("history",it.parseFontChangeLine(e.translateString(e.stripComment(o))),{startChar:r.iChar,endChar:r.iChar+o.length}),o=e.peekLine();break;case"K":this.resolveTempo();var d=st.parseKey(o.substring(2),!1);!r.is_in_header&&n.hasBeginMusic()&&(d.foundClef&&n.appendStartingElement("clef",c,f,r.clef),d.foundKey&&n.appendStartingElement("key",c,f,st.fixKey(r.clef,r.key))),r.is_in_header=!1;break;case"L":this.setDefaultLength(o,2,o.length);break;case"M":r.origMeter=r.meter=this.setMeter(o.substring(2));break;case"P":r.is_in_header?n.addMetaText("partOrder",it.parseFontChangeLine(u),{startChar:r.iChar,endChar:r.iChar+o.length}):r.partForNextLine={title:u,startChar:c,endChar:f};break;case"Q":var p=this.setTempo(o,2,o.length,r.iChar);p.type==="delaySet"?r.tempo=p.tempo:p.type==="immediate"&&(a.metaText.tempo?r.tempoForNextLine=["tempo",c,f,p.tempo]:a.metaText.tempo=p.tempo);break;case"T":r.titlecaps&&(u=u.toUpperCase()),this.setTitle(it.parseFontChangeLine(e.theReverser(u)),h);break;case"U":this.addUserDefinition(o,2,o.length);break;case"V":if(st.parseVoice(o,2,o.length),!r.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{regular:!0}}}return{}}},Zo=Jo,Ue={};Ue.legalAccents=["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","beambr1","beambr2","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","style=triangle","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"];Ue.volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"];Ue.dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)","~(","~)"];Ue.accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]];Ue.accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]];Ue.nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{";Ue.durations=[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875];Ue.pitches={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};Ue.rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"};Ue.accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"};Ue.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2};var Ga=Fe,Wa=la,xi=wi,ue,Te,E,et,ct,C0,{legalAccents:Ua,volumeDecorations:Xa,dynamicDecorations:Va,accentPseudonyms:ja,accentDynamicPseudonyms:Ka,nonDecorations:ec,durations:tc,pitches:rc,rests:ac,accMap:Qa,tripletQ:nc}=Ue,fa=function(e,t,r,a,n,i){ue=e,Te=t,E=r,et=a,ct=n,C0=i,this.lineContinuation=!1},Ja=function(e,t,r){if(e.inTie[t]===void 0)return!1;var a=e.currentVoice?e.currentVoice.staffNum*100+e.currentVoice.index:0;return!!(e.inTie[t][a]&&(r.pitches!==void 0||r.rest.type!=="spacer"))},O={};fa.prototype.parseMusic=function(e){C0.resolveTempo(),E.is_in_header=!1;for(var t=0,r=E.iChar;ue.isWhiteSpace(e[t])&&t0&&(t+=i[0],i[1]==="V"&&this.startNewLine());for(var s=0;t0)t+=l[0],l[1]==="V"&&(a=!0);else{(!ct.hasBeginMusic()||a&&!this.lineContinuation)&&(this.startNewLine(),a=!1);for(var h;;)if(h=ue.eatWhiteSpace(e,t),h>0&&(t+=h),t>0&&e[t-1]===""&&(h=C0.letter_to_body_header(e,t),h[0]>0&&(h[1]==="V"&&this.startNewLine(),t=h[0],E.start_new_line=!1)),h=cc(e,t),h[0]>0&&(t+=h[0]),h=ic(e,t),h[0]>0){O.chord||(O.chord=[]);var u=ue.translateString(h[1]);u=u.replace(/;/g,` +`,W=e.nextLine();n.addText(K,{startChar:r.iChar,endChar:r.iChar+K.length+7});break;case"continueall":r.continueall=!0;break;case"beginps":for(W=e.nextLine();W&&W.indexOf("%%endps")!==0;)e.nextLine();t("Postscript ignored",x,0);break;case"deco":S.length>0&&r.ignoredDecorations.push(S.substring(0,S.indexOf(" "))),t("Decoration redefinition ignored",x,0);break;case"text":var te=e.translateString(S);n.addText(Ft.parseFontChangeLine(te),{startChar:r.iChar,endChar:r.iChar+S.length+7});break;case"center":var re=e.translateString(S);n.addCentered(Ft.parseFontChangeLine(re));break;case"font":break;case"setfont":var _e=e.tokenize(S,0,S.length);if(_e.length>=4&&_e[0].token==="-"&&_e[1].type==="number"){var ze=parseInt(_e[1].token);ze>=1&&ze<=9&&(r.setfont||(r.setfont=[]),_e.shift(),_e.shift(),r.setfont[ze]=l(_e,r.setfont[ze],x,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 h(N,T,x);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return u(N,T,x);case"barlabelfont":case"barnumberfont":case"barnumfont":return h("measurefont",T,x);case"staves":case"score":r.score_is_present=!0;for(var At=function(Qe,Le,Gt,l0,H0){(Le||r.staves.length===0)&&r.staves.push({index:r.staves.length,numVoices:0});var qe=Ia.last(r.staves);Gt!==void 0&&qe.bracket===void 0&&(qe.bracket=Gt),l0!==void 0&&qe.brace===void 0&&(qe.brace=l0),H0&&(qe.connectBarLines="end"),r.voices[Qe]===void 0&&(r.voices[Qe]={staffNum:qe.index,index:qe.numVoices},qe.numVoices++)},Be=!1,B=!1,I=!1,z=!1,A=!1,H=!1,X=!1,Q,ae=function(){if(X=!0,Q){var Qe="start";Q.staffNum>0&&(r.staves[Q.staffNum-1].connectBarLines==="start"||r.staves[Q.staffNum-1].connectBarLines==="continue")&&(Qe="continue"),r.staves[Q.staffNum].connectBarLines=Qe}};T.length;){var U=T.shift();switch(U.token){case"(":Be?t("Can't nest parenthesis in %%score",x,U.start):(Be=!0,z=!0);break;case")":!Be||z?t("Unexpected close parenthesis in %%score",x,U.start):Be=!1;break;case"[":B?t("Can't nest brackets in %%score",x,U.start):(B=!0,A=!0);break;case"]":!B||A?t("Unexpected close bracket in %%score",x,U.start):(B=!1,r.staves[Q.staffNum].bracket="end");break;case"{":I?t("Can't nest braces in %%score",x,U.start):(I=!0,H=!0);break;case"}":!I||H?t("Unexpected close brace in %%score",x,U.start):(I=!1,r.staves[Q.staffNum].brace="end");break;case"|":ae();break;default:for(var V="";(U.type==="alpha"||U.type==="number")&&(V+=U.token,U.continueId);)U=T.shift();var ge=!Be||z,le=A?"start":B?"continue":void 0,J=H?"start":I?"continue":void 0;At(V,ge,le,J,X),z=!1,A=!1,H=!1,X=!1,Q=r.voices[V],N==="staves"&&ae();break}}break;case"newpage":var fe=e.getInt(S);n.addNewPage(fe.digits===0?-1:fe.value);break;case"abc":var Ee=S.split(" ");switch(Ee[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var oe=Ee.shift();n.addMetaText(N+oe,Ee.join(" "),{startChar:r.iChar,endChar:r.iChar+S.length+5});break;default:return"Unknown directive: "+N+Ee[0]}break;case"header":case"footer":var ce=e.getMeat(S,0,S.length);ce=S.substring(ce.start,ce.end),ce[0]==='"'&&ce[ce.length-1]==='"'&&(ce=ce.substring(1,ce.length-1));var ve=ce.split(" "),c0={};ve.length===1?c0={left:"",center:ve[0],right:""}:ve.length===2?c0={left:ve[0],center:ve[1],right:""}:c0={left:ve[0],center:ve[1],right:ve[2]},ve.length>3&&t("Too many tabs in "+N+": "+ve.length+" found.",S,0),n.addMetaTextObj(N,c0,{startChar:r.iChar,endChar:r.iChar+x.length});break;case"midi":var ut=e.tokenize(S,0,S.length,!0);ut.length>0&&ut[0].token==="="&&ut.shift(),ut.length===0?t("Expected midi command",S,0):D(ut,a,S);break;case"percmap":var we=d(S);we.error?t(we.error,x,8):(a.formatting.percmap||(a.formatting.percmap={}),a.formatting.percmap[we.key]=we.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":a.formatting[N]=S;break;default:return"Unknown directive: "+N}return null},Ft.globalFormatting=function(x){for(var T in x)if(x.hasOwnProperty(T)){var S=""+x[T],N=e.tokenize(S,0,S.length),G;switch(T){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":case"tablabelfont":case"tabnumberfont":case"tabgracefont":h(T,N,S);break;case"scale":c(T,N);break;case"partsbox":G=y("partsBox",T,N),G!==null&&t(G),r.partsfont.box=r.partsBox;break;case"freegchord":G=y("freegchord",T,N),G!==null&&t(G);break;case"fontboxpadding":(N.length!==1||N[0].type!=="number")&&t('Directive "'+T+'" requires a number as a parameter.'),a.formatting.fontboxpadding=N[0].floatt;break;case"stafftopmargin":(N.length!==1||N[0].type!=="number")&&t('Directive "'+T+'" requires a number as a parameter.'),a.formatting.stafftopmargin=N[0].floatt;break;case"stretchlast":var W=Y(N);if(W.value!==void 0&&(a.formatting.stretchlast=W.value),W.error)return W.error;break;default:t("Formatting directive unrecognized: ",T,0)}}};function Y(x){if(x.length===0)return{value:1};if(x.length===1)if(x[0].type==="number"){if(x[0].floatt>=0||x[0].floatt<=1)return{value:x[0].floatt}}else{if(x[0].token==="false")return{value:0};if(x[0].token==="true")return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+x[0].token+")"}}})();var oa=Ft,ca={};const vi=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];ca.pitchIndex=function(e){return vi.indexOf(e)};ca.noteName=function(e){return vi[e]};var Bo=ca,q0=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],G0=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"],Y0=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],R0=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];function Lo(e,t,r,a){if(!t||t%12===0)return e;for(;t<0;)t+=12;t>11&&(t=t%12);var n=e.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!n)return e;var i=n[1],s=n[2],o=n[3],l=n[4],h=q0.indexOf(i);if(h<0&&(h=G0.indexOf(i)),h<0&&(h=Y0.indexOf(i)),h<0&&(h=R0.indexOf(i)),h<0)return e;if(h+=t,h=h%12,r?a?e=R0[h]:e=G0[h]:a?e=Y0[h]:e=q0[h],s&&(e+=s),o){var h=q0.indexOf(o);h<0&&(h=G0.indexOf(o)),h<0&&(h=Y0.indexOf(o)),h<0&&(h=R0.indexOf(o)),e+="/",h>=0?(h+=t,h=h%12,r?a?e+=R0[h]:e+=G0[h]:a?e+=Y0[h]:e+=q0[h]):e+=o}return l&&(e+=l),e}var bi=Lo,Ot={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},x0=null;function Po(){x0={};for(var e=Object.keys(Ot),t=0;t11&&(h=h%12);var u=t[0]==="m"?Wo[h]:Ro[h],c=u+t,f=Er(c);f.length>0&&f[0].acc==="flat"&&(e.localTransposePreferFlats=!0);var d=c.charCodeAt(0)-s.charCodeAt(0);return e.localTranspose>0?(d<0||d===0&&(s[1]==="#"||c[1]==="b"))&&(d+=7):e.localTranspose<0&&(d>0||d===0&&(s[1]==="b"||c[1]==="#"))&&(d-=7),e.localTranspose>0?e.localTransposeVerticalMovement=d+Math.floor(e.localTranspose/12)*7:e.localTransposeVerticalMovement=d+Math.ceil(e.localTranspose/12)*7,l?{accidentals:f,root:u[0],acc:u.length>1?u[1]:""}:{accidentals:[],root:r,acc:a}};vr.chordName=function(e,t){return Go(t,e.localTranspose,e.localTransposePreferFlats,e.freegchord)};var qa=["c","d","e","f","g","a","b"];function Uo(e,t,r,a,n){for(var i=qa[(e+49)%7],s=0,o=0;o2&&(t++,d-=u==="b"||u==="e"?1:2),[t,d]}var Ar={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},Xo={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},Vo={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};vr.note=function(e,t){if(!(!e.localTranspose||e.clef.type==="perc")){var r=t.pitch;if(e.localTransposeVerticalMovement&&(t.pitch=t.pitch+e.localTransposeVerticalMovement,t.name)){var a=t.accidental?t.name.substring(1):t.name,n=t.accidental?t.name[0]:"",i=za.pitchIndex(a);t.name=n+za.noteName(i+e.localTransposeVerticalMovement)}if(t.accidental){var s=Uo(r,t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey);t.pitch=s[0],t.accidental=Xo[s[1]],t.name&&(t.name=Vo[s[1]]+t.name.replace(/[_^=]/g,""))}}};var wi=vr,Ga=Fe,Ya=oa,jo=wi,Pe={};(function(){var e,t,r,a;Pe.initialize=function(u,c,f,d,p){e=u,t=c,r=f,a=p},Pe.standardKey=function(u,c,f,d){return jo.keySignature(r,u,c,f,d)};var n={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}},i=function(u,c){var f=n[u],d=f?f.mid:0;return d+c};Pe.fixClef=function(u){var c=n[u.type];c&&(u.clefPos=c.pitch,u.type=c.clef)},Pe.deepCopyKey=function(u){var c={accidentals:[],root:u.root,acc:u.acc,mode:u.mode};return u.accidentals.forEach(function(f){c.accidentals.push(Ga.clone(f))}),c};var s={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};Pe.addPosToKey=function(u,c){var f=u.verticalPos;c.accidentals.forEach(function(d){var p=s[d.note];p=p-f,d.verticalPos=p}),c.impliedNaturals&&c.impliedNaturals.forEach(function(d){var p=s[d.note];p=p-f,d.verticalPos=p}),f<-10?(c.accidentals.forEach(function(d){d.verticalPos-=7,(d.verticalPos>=11||d.verticalPos===10&&d.acc==="flat")&&(d.verticalPos-=7),d.note==="A"&&d.acc==="sharp"&&(d.verticalPos-=7),(d.note==="G"||d.note==="F")&&d.acc==="flat"&&(d.verticalPos-=7)}),c.impliedNaturals&&c.impliedNaturals.forEach(function(d){d.verticalPos-=7,(d.verticalPos>=11||d.verticalPos===10&&d.acc==="flat")&&(d.verticalPos-=7),d.note==="A"&&d.acc==="sharp"&&(d.verticalPos-=7),(d.note==="G"||d.note==="F")&&d.acc==="flat"&&(d.verticalPos-=7)})):f<-4?(c.accidentals.forEach(function(d){d.verticalPos-=7,f===-8&&(d.note==="f"||d.note==="g")&&d.acc==="sharp"&&(d.verticalPos-=7)}),c.impliedNaturals&&c.impliedNaturals.forEach(function(d){d.verticalPos-=7,f===-8&&(d.note==="f"||d.note==="g")&&d.acc==="sharp"&&(d.verticalPos-=7)})):f>=7&&(c.accidentals.forEach(function(d){d.verticalPos+=7}),c.impliedNaturals&&c.impliedNaturals.forEach(function(d){d.verticalPos+=7}))},Pe.fixKey=function(u,c){var f=Ga.clone(c);return Pe.addPosToKey(u,f),f};var o=function(u){var c=0,f=u[c++];(f==="^"||f==="_")&&(f=u[c++]);var d=s[f];for(d===void 0&&(d=6);c0){d.foundKey=!0;var g="",v="";f[0].token.length>1?f[0].token=f[0].token.substring(1):f.shift();var y=p.token;if(f.length>0){var w=e.getSharpFlat(f[0].token);if(w.len>0&&(f[0].token.length>1?f[0].token=f[0].token.substring(1):f.shift(),y+=w.token,g=w.token),f.length>0){var k=e.getMode(f[0].token);k.len>0&&(f.shift(),y+=k.token,v=k.token)}if(Pe.standardKey(y,p.token,g,0)===void 0)return t("Unsupported key signature: "+y,u,0),d}var b=Pe.deepCopyKey(r.key),m=!c&&r.globalTranspose?-r.globalTranspose:0,C;if(c&&(C=r.globalTransposeOrigKeySig),r.key=Pe.deepCopyKey(Pe.standardKey(y,p.token,g,m)),c&&(r.globalTransposeOrigKeySig=C),r.key.mode=v,b){for(var _,M=0;M0;)switch(f[0].token){case"m":case"middle":if(f.shift(),f.length===0)return t("Expected = after middle",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after middle",u,$.start);break}if(f.length===0)return t("Expected parameter after middle=",u,0),d;var Y=e.getPitchFromTokens(f);Y.warn&&t(Y.warn,u,0),Y.position&&(r.clef.verticalPos=Y.position-6);break;case"transpose":if(f.shift(),f.length===0)return t("Expected = after transpose",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after transpose",u,$.start);break}if(f.length===0)return t("Expected parameter after transpose=",u,0),d;if(f[0].type!=="number"){t("Expected number after transpose",u,f[0].start);break}r.clef.transpose=f[0].intt,f.shift();break;case"stafflines":if(f.shift(),f.length===0)return t("Expected = after stafflines",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after stafflines",u,$.start);break}if(f.length===0)return t("Expected parameter after stafflines=",u,0),d;if(f[0].type!=="number"){t("Expected number after stafflines",u,f[0].start);break}r.clef.stafflines=f[0].intt,f.shift();break;case"staffscale":if(f.shift(),f.length===0)return t("Expected = after staffscale",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after staffscale",u,$.start);break}if(f.length===0)return t("Expected parameter after staffscale=",u,0),d;if(f[0].type!=="number"){t("Expected number after staffscale",u,f[0].start);break}r.clef.staffscale=f[0].floatt,f.shift();break;case"octave":if(f.shift(),f.length===0)return t("Expected = after octave",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after octave",u,$.start);break}if(f.length===0)return t("Expected parameter after octave=",u,0),d;if(f[0].type!=="number"){t("Expected number after octave",u,f[0].start);break}r.octave=f[0].intt,f.shift();break;case"style":if(f.shift(),f.length===0)return t("Expected = after style",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after style",u,$.start);break}if(f.length===0)return t("Expected parameter after style=",u,0),d;switch(f[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":r.style=f[0].token,f.shift();break;default:t("error parsing style element: "+f[0].token,u,f[0].start);break}break;case"clef":if(f.shift(),f.length===0)return t("Expected = after clef",u,0),d;if($=f.shift(),$.token!=="="){t("Expected = after clef",u,$.start);break}if(f.length===0)return t("Expected parameter after clef=",u,0),d;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var x=f.shift();switch(x.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":x.token="alto";break;case"F":x.token="bass";break;case"G":x.token="treble";break;case"c":x.token="alto";break;case"f":x.token="bass";break;case"g":x.token="treble";break;default:t("Expected clef name. Found "+x.token,u,x.start);break}f.length>0&&f[0].type==="number"&&(x.token+=f[0].token,f.shift()),f.length>1&&(f[0].token==="-"||f[0].token==="+"||f[0].token==="^"||f[0].token==="_")&&f[1].token==="8"&&(x.token+=f[0].token+f[1].token,f.shift(),f.shift()),r.clef={type:x.token,verticalPos:i(x.token,0)},r.currentVoice&&r.currentVoice.transpose!==void 0&&(r.clef.transpose=r.currentVoice.transpose),d.foundClef=!0;break;default:t("Unknown parameter: "+f[0].token,u,f[0].start),f.shift()}return d};var h=function(u){r.currentVoice=r.voices[u],a.setCurrentVoice(r.currentVoice.staffNum,r.currentVoice.index)};Pe.parseVoice=function(u,c,f){var d=e.getMeat(u,c,f),p=d.start,g=d.end,v=e.getToken(u,p,g);if(v.length===0){t("Expected a voice id",u,p);return}var y=!1;r.voices[v]===void 0&&(r.voices[v]={},y=!0,r.score_is_present&&t("Can't have an unknown V: id when the %score directive is present",u,p)),p+=v.length,p+=e.eatWhiteSpace(u,p);for(var w={startStaff:y},k=function(Y){var x=e.getVoiceToken(u,p,g);x.warn!==void 0?t("Expected value for "+Y+" in voice: "+x.warn,u,p):x.err!==void 0?t("Expected value for "+Y+" in voice: "+x.err,u,p):x.token.length===0&&u[p]!=='"'?t("Expected value for "+Y+" in voice",u,p):w[Y]=x.token,p+=x.len},b=function(Y,x,T){var S=e.getVoiceToken(u,p,g);S.warn!==void 0?t("Expected value for "+x+" in voice: "+S.warn,u,p):S.err!==void 0?t("Expected value for "+x+" in voice: "+S.err,u,p):S.token.length===0&&u[p]!=='"'?t("Expected value for "+x+" in voice",u,p):(S.token=parseFloat(S.token),r.voices[Y][x]=S.token),p+=S.len},m=function(Y,x){var T=e.getVoiceToken(u,p,g);if(T.warn!==void 0)t("Expected value for "+Y+" in voice: "+T.warn,u,p);else if(T.err!==void 0)t("Expected value for "+Y+" in voice: "+T.err,u,p);else if(T.token.length===0&&u[p]!=='"')t("Expected value for "+Y+" in voice",u,p);else return T.token;p+=T.len},C=function(Y,x){var T={_B:2,_E:9,_b:-10,_e:-3},S=e.getVoiceToken(u,p,g);if(S.warn!==void 0)t("Expected one of (_B, _E, _b, _e) for "+x+" in voice: "+S.warn,u,p);else if(S.token.length===0&&u[p]!=='"')t("Expected one of (_B, _E, _b, _e) for "+x+" in voice",u,p);else{var N=T[S.token];N?r.voices[Y][x]=N:t("Expected one of (_B, _E, _b, _e) for "+x+" in voice",u,p)}p+=S.len};p0&&(r.default_length=f/d,r.havent_set_length=!1)}else c.length===1&&c[0]==="1"&&(r.default_length=1,r.havent_set_length=!1)};var i={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(o,l,h,u){try{var c=e.tokenize(o,l,h);if(c.length===0)throw"Missing parameter in Q: field";var f={startChar:u+l-2,endChar:u+h},d=!0,p=c.shift();if(p.type==="quote"&&(f.preString=p.token,p=c.shift(),c.length===0))return i[f.preString.toLowerCase()]&&(f.bpm=i[f.preString.toLowerCase()],f.suppressBpm=!0),{type:"immediate",tempo:f};if(p.type==="alpha"&&p.token==="C"){if(c.length===0)throw"Missing tempo after C in Q: field";if(p=c.shift(),p.type==="punct"&&p.token==="="){if(c.length===0)throw"Missing tempo after = in Q: field";if(p=c.shift(),p.type!=="number")throw"Expected number after = in Q: field";f.duration=[1],f.bpm=parseInt(p.token)}else if(p.type==="number"){if(f.duration=[parseInt(p.token)],c.length===0)throw"Missing = after duration in Q: field";if(p=c.shift(),p.type!=="punct"||p.token!=="=")throw"Expected = after duration in Q: field";if(c.length===0)throw"Missing tempo after = in Q: field";if(p=c.shift(),p.type!=="number")throw"Expected number after = in Q: field";f.bpm=parseInt(p.token)}else throw"Expected number or equal after C in Q: field"}else if(p.type==="number"){var g=parseInt(p.token);if(c.length===0||c[0].type==="quote")f.duration=[1],f.bpm=g;else{if(d=!1,p=c.shift(),p.type!=="punct"&&p.token!=="/"||(p=c.shift(),p.type!=="number"))throw"Expected fraction in Q: field";var v=parseInt(p.token);for(f.duration=[g/v];c.length>0&&c[0].token!=="="&&c[0].type!=="quote";){if(p=c.shift(),p.type!=="number"||(g=parseInt(p.token),p=c.shift(),p.type!=="punct"&&p.token!=="/")||(p=c.shift(),p.type!=="number"))throw"Expected fraction in Q: field";v=parseInt(p.token),f.duration.push(g/v)}if(p=c.shift(),p.type!=="punct"&&p.token!=="=")throw"Expected = in Q: field";if(p=c.shift(),p.type!=="number")throw"Expected tempo in Q: field";f.bpm=parseInt(p.token)}}else throw"Unknown value in Q: field";if(c.length!==0&&(p=c.shift(),p.type==="quote"&&(f.postString=p.token,p=c.shift()),c.length!==0))throw"Unexpected string at end of Q: field";return r.printTempo===!1&&(f.suppress=!0),{type:d?"delaySet":"immediate",tempo:f}}catch(y){return t(y,o,l),{type:"none"}}},this.letter_to_inline_header=function(o,l,h){var u=e.eatWhiteSpace(o,l);if(l+=u,o.length>=l+5&&o[l]==="["&&o[l+2]===":"){var c=o.indexOf("]",l),f=r.iChar+l,d=r.iChar+c+1;switch(o.substring(l,l+3)){case"[I:":var p=it.addDirective(o.substring(l+3,c));return p&&t(p,o,l),[c-l+1+u];case"[M:":var g=this.setMeter(o.substring(l+3,c));return n.hasBeginMusic()&&g?n.appendStartingElement("meter",f,d,g):r.meter=g,[c-l+1+u];case"[K:":var v=st.parseKey(o.substring(l+3,c),!0);return v.foundClef&&n.hasBeginMusic()&&n.appendStartingElement("clef",f,d,r.clef),v.foundKey&&n.hasBeginMusic()&&n.appendStartingElement("key",f,d,st.fixKey(r.clef,r.key)),[c-l+1+u];case"[P:":var y=it.parseFontChangeLine(o.substring(l+3,c));return h||a.lines.length<=a.lineNum?r.partForNextLine={title:y,startChar:f,endChar:d}:n.appendElement("part",f,d,{title:y}),[c-l+1+u];case"[L:":return this.setDefaultLength(o,l+3,c),[c-l+1+u];case"[Q:":if(c>0){var w=this.setTempo(o,l+3,c,r.iChar);return w.type==="delaySet"?n.hasBeginMusic()?n.appendElement("tempo",f,d,this.calcTempo(w.tempo)):r.tempoForNextLine=["tempo",f,d,this.calcTempo(w.tempo)]:w.type==="immediate"&&(!h&&n.hasBeginMusic()?n.appendElement("tempo",f,d,w.tempo):r.tempoForNextLine=["tempo",f,d,w.tempo]),[c-l+1+u,o[l+1],o.substring(l+3,c)]}break;case"[V:":if(c>0)return st.parseVoice(o,l+3,c),[c-l+1+u,o[l+1],o.substring(l+3,c)];break;case"[r:":return[c-l+1+u]}}return[0]},this.letter_to_body_header=function(o,l){if(o.length>=l+3)switch(o.substring(l,l+2)){case"I:":var h=it.addDirective(o.substring(l+2));return h&&t(h,o,l),[o.length];case"M:":var u=this.setMeter(o.substring(l+2));return n.hasBeginMusic()&&u&&n.appendStartingElement("meter",r.iChar+l,r.iChar+o.length,u),[o.length];case"K:":var c=st.parseKey(o.substring(l+2),n.hasBeginMusic());return c.foundClef&&n.hasBeginMusic()&&n.appendStartingElement("clef",r.iChar+l,r.iChar+o.length,r.clef),c.foundKey&&n.hasBeginMusic()&&n.appendStartingElement("key",r.iChar+l,r.iChar+o.length,st.fixKey(r.clef,r.key)),[o.length];case"P:":return n.hasBeginMusic()&&n.appendElement("part",r.iChar+l,r.iChar+o.length,{title:o.substring(l+2)}),[o.length];case"L:":return this.setDefaultLength(o,l+2,o.length),[o.length];case"Q:":var f=o.indexOf("",l+2);f===-1&&(f=o.length);var d=this.setTempo(o,l+2,f,r.iChar);return d.type==="delaySet"?n.appendElement("tempo",r.iChar+l,r.iChar+o.length,this.calcTempo(d.tempo)):d.type==="immediate"&&n.appendElement("tempo",r.iChar+l,r.iChar+o.length,d.tempo),[f,o[l],U0.strip(o.substring(l+2))];case"V:":return st.parseVoice(o,l+2,o.length),[o.length,o[l],U0.strip(o.substring(l+2))]}return[0]};var s={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){var l=s[o[0]],h=o.length-2,u=e.translateString(e.stripComment(o.substring(2)));if(l==="unalignedWords"||l==="notes")n.addMetaTextArray(l,it.parseFontChangeLine(u),{startChar:r.iChar,endChar:r.iChar+o.length});else if(l!==void 0)n.addMetaText(l,it.parseFontChangeLine(u),{startChar:r.iChar,endChar:r.iChar+o.length});else{var c=r.iChar,f=c+o.length;switch(o[0]){case"H":for(n.addMetaTextArray("history",it.parseFontChangeLine(u),{startChar:r.iChar,endChar:r.iChar+o.length}),o=e.peekLine();o&&o[1]!==":";)e.nextLine(),n.addMetaTextArray("history",it.parseFontChangeLine(e.translateString(e.stripComment(o))),{startChar:r.iChar,endChar:r.iChar+o.length}),o=e.peekLine();break;case"K":this.resolveTempo();var d=st.parseKey(o.substring(2),!1);!r.is_in_header&&n.hasBeginMusic()&&(d.foundClef&&n.appendStartingElement("clef",c,f,r.clef),d.foundKey&&n.appendStartingElement("key",c,f,st.fixKey(r.clef,r.key))),r.is_in_header=!1;break;case"L":this.setDefaultLength(o,2,o.length);break;case"M":r.origMeter=r.meter=this.setMeter(o.substring(2));break;case"P":r.is_in_header?n.addMetaText("partOrder",it.parseFontChangeLine(u),{startChar:r.iChar,endChar:r.iChar+o.length}):r.partForNextLine={title:u,startChar:c,endChar:f};break;case"Q":var p=this.setTempo(o,2,o.length,r.iChar);p.type==="delaySet"?r.tempo=p.tempo:p.type==="immediate"&&(a.metaText.tempo?r.tempoForNextLine=["tempo",c,f,p.tempo]:a.metaText.tempo=p.tempo);break;case"T":r.titlecaps&&(u=u.toUpperCase()),this.setTitle(it.parseFontChangeLine(e.theReverser(u)),h);break;case"U":this.addUserDefinition(o,2,o.length);break;case"V":if(st.parseVoice(o,2,o.length),!r.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{regular:!0}}}return{}}},Qo=Ko,Ue={};Ue.legalAccents=["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","beambr1","beambr2","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","style=triangle","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"];Ue.volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"];Ue.dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)","~(","~)"];Ue.accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]];Ue.accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]];Ue.nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{";Ue.durations=[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875];Ue.pitches={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};Ue.rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"};Ue.accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"};Ue.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2};var Ra=Fe,Wa=la,xi=wi,ue,Te,E,et,ct,w0,{legalAccents:Ua,volumeDecorations:Xa,dynamicDecorations:Va,accentPseudonyms:ja,accentDynamicPseudonyms:Ka,nonDecorations:Jo,durations:Zo,pitches:ec,rests:tc,accMap:Qa,tripletQ:rc}=Ue,fa=function(e,t,r,a,n,i){ue=e,Te=t,E=r,et=a,ct=n,w0=i,this.lineContinuation=!1},Ja=function(e,t,r){if(e.inTie[t]===void 0)return!1;var a=e.currentVoice?e.currentVoice.staffNum*100+e.currentVoice.index:0;return!!(e.inTie[t][a]&&(r.pitches!==void 0||r.rest.type!=="spacer"))},O={};fa.prototype.parseMusic=function(e){w0.resolveTempo(),E.is_in_header=!1;for(var t=0,r=E.iChar;ue.isWhiteSpace(e[t])&&t0&&(t+=i[0],i[1]==="V"&&this.startNewLine());for(var s=0;t0)t+=l[0],l[1]==="V"&&(a=!0);else{(!ct.hasBeginMusic()||a&&!this.lineContinuation)&&(this.startNewLine(),a=!1);for(var h;;)if(h=ue.eatWhiteSpace(e,t),h>0&&(t+=h),t>0&&e[t-1]===""&&(h=w0.letter_to_body_header(e,t),h[0]>0&&(h[1]==="V"&&this.startNewLine(),t=h[0],E.start_new_line=!1)),h=sc(e,t),h[0]>0&&(t+=h[0]),h=ac(e,t),h[0]>0){O.chord||(O.chord=[]);var u=ue.translateString(h[1]);u=u.replace(/;/g,` `);for(var c=!1,f=0;f0&&(O.force_end_beam_last=!0),t+=d}else if(ec.indexOf(e[t])===-1?h=en(e,t):h=[0],h[0]>0)h[1]===null?t+10&&(h[1].indexOf("style=")===0?O.style=h[1].substr(6):(O.decoration===void 0&&(O.decoration=[]),h[1]==="beambr1"?O.beambr=1:h[1]==="beambr2"?O.beambr=2:O.decoration.push(h[1]))),t+=h[0];else if(h=sc(e,t),h[0]>0)O.gracenotes=h[1],t+=h[0];else break;if(h=lc(e,t),h[0]>0){s=0,O.gracenotes!==void 0&&(O.rest={type:"spacer"},O.duration=.125,E.addFormattingOptions(O,et.formatting,"note"),ct.appendElement("note",r+t,r+t+h[0],O),E.measureNotEmpty=!0,O={});var p={type:h[1]};if(p.type.length===0)Te("Unknown bar type",e,t);else{if(E.inEnding&&p.type!=="bar_thin"&&(p.endEnding=!0,E.inEnding=!1),h[2]&&(p.startEnding=h[2],E.inEnding&&(p.endEnding=!0),E.inEnding=!0,h[1]==="bar_right_repeat"?E.restoreStartEndingHoldOvers():E.duplicateStartEndingHoldOvers()),O.decoration!==void 0&&(p.decoration=O.decoration),O.chord!==void 0&&(p.chord=O.chord),p.startEnding&&E.barFirstEndingNum===void 0?E.barFirstEndingNum=E.currBarNumber:p.startEnding&&p.endEnding&&E.barFirstEndingNum?E.currBarNumber=E.barFirstEndingNum:p.endEnding&&(E.barFirstEndingNum=void 0),p.type!=="bar_invisible"&&E.measureNotEmpty){var g=E.currentVoice===void 0||E.currentVoice.staffNum===0&&E.currentVoice.index===0;g&&(E.currBarNumber++,E.barNumbers&&E.currBarNumber%E.barNumbers===0&&(p.barNumber=E.currBarNumber))}E.addFormattingOptions(O,et.formatting,"bar"),ct.appendElement("bar",r+o,r+t+h[0],p),E.measureNotEmpty=!1,O={}}t+=h[0]}else if(e[t]==="&")h=oc(e,t),h[0]>0&&(ct.appendElement("overlay",r,r+1,{}),t+=1,s++);else{if(h=fc(e,t),h.consumed>0&&(h.startSlur!==void 0&&(O.startSlur=h.startSlur),h.dottedSlur&&(O.dottedSlur=!0),h.triplet!==void 0&&(n>0?Te("Can't nest triplets",e,t):(O.startTriplet=h.triplet,O.tripletMultiplier=h.tripletQ/h.triplet,O.tripletR=h.num_notes,n=h.num_notes===void 0?h.triplet:h.num_notes)),t+=h.consumed),e[t]==="["){t++;for(var v=null,y=!1,w=!1;!w;){var k=en(e,t);k[0]>0&&(t+=k[0]);var b=Xr(e,t,{},!1);if(b!==null&&b.pitch!==void 0)k[0]>0&&k[1].indexOf("style=")!==0&&(O.decoration===void 0&&(O.decoration=[]),O.decoration.push(k[1])),b.end_beam&&(O.end_beam=!0,delete b.end_beam),O.pitches===void 0?(O.duration=b.duration,O.pitches=[b]):O.pitches.push(b),delete b.duration,k[0]>0&&k[1].indexOf("style=")===0&&(O.pitches[O.pitches.length-1].style=k[1].substr(6)),E.inTieChord[O.pitches.length]&&(b.endTie=!0,E.inTieChord[O.pitches.length]=void 0),b.startTie&&(E.inTieChord[O.pitches.length]=!0),t=b.endChar,delete b.endChar;else if(e[t]===" ")Te("Spaces are not allowed in chords",e,t),t++;else{if(t0&&!(O.rest&&O.rest.type==="spacer")&&(n--,n===0&&(O.endTriplet=!0));for(var m=!1;t":case"<":var C=Ci(e,t);t+=C[0]-1,E.next_note_duration=C[2],v?v=v*C[1]:v=C[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var _=ue.getFraction(e,t);v=_.value,t=_.index;var M=e[t];M===" "&&(y=!0),M==="-"||M===")"||M===" "||M==="<"||M===">"?t--:m=!0;break;default:m=!0;break}m||t++}}else Te("Expected ']' to end the chords",e,t);O.pitches!==void 0&&(v!==null&&(O.duration=O.duration*v,y&&T0(O)),E.addFormattingOptions(O,et.formatting,"note"),ct.appendElement("note",r+o,r+t,O),E.measureNotEmpty=!0,O={}),w=!0}}}else{var L={},P=Xr(e,t,L,!0);L.endTie!==void 0&&g0(E,s,!0),P!==null&&(P.pitch!==void 0?(O.pitches=[{}],P.accidental!==void 0&&(O.pitches[0].accidental=P.accidental),O.pitches[0].pitch=P.pitch,O.pitches[0].name=P.name,(P.midipitch||P.midipitch===0)&&(O.pitches[0].midipitch=P.midipitch),P.endSlur!==void 0&&(O.pitches[0].endSlur=P.endSlur),P.endTie!==void 0&&(O.pitches[0].endTie=P.endTie),P.startSlur!==void 0&&(O.pitches[0].startSlur=P.startSlur),O.startSlur!==void 0&&(O.pitches[0].startSlur=O.startSlur),O.dottedSlur!==void 0&&(O.pitches[0].dottedSlur=!0),P.startTie!==void 0&&(O.pitches[0].startTie=P.startTie),O.startTie!==void 0&&(O.pitches[0].startTie=O.startTie)):(O.rest=P.rest,P.endSlur!==void 0&&(O.endSlur=P.endSlur),P.endTie!==void 0&&(O.rest.endTie=P.endTie),P.startSlur!==void 0&&(O.startSlur=P.startSlur),P.startTie!==void 0&&(O.rest.startTie=P.startTie),O.startTie!==void 0&&(O.rest.startTie=O.startTie)),P.chord!==void 0&&(O.chord=P.chord),P.duration!==void 0&&(O.duration=P.duration),P.decoration!==void 0&&(O.decoration=P.decoration),P.graceNotes!==void 0&&(O.graceNotes=P.graceNotes),delete O.startSlur,delete O.dottedSlur,Ja(E,s,O)&&(O.pitches!==void 0?O.pitches[0].endTie=!0:O.rest.type!=="spacer"&&(O.rest.endTie=!0),g0(E,s,!1)),(P.startTie||O.startTie)&&g0(E,s,!0),t=P.endChar,n>0&&!(P.rest&&P.rest.type==="spacer")&&(n--,n===0&&(O.endTriplet=!0)),P.end_beam&&T0(O),O.rest&&O.rest.type==="rest"&&O.duration===1&&Za(E)<=1&&(O.rest.type="whole",O.duration=Za(E)),O.duration<1&&tc.indexOf(O.duration)===-1&&O.duration!==0&&(!O.rest||O.rest.type!=="spacer")&&Te("Duration not representable: "+e.substring(o,t),e,t),E.addFormattingOptions(O,et.formatting,"note"),ct.appendElement("note",r+o,r+t,O),E.measureNotEmpty=!0,O={})}t===o&&(e[t]!==" "&&e[t]!=="`"&&Te("Unknown character ignored",e,t),t++)}}}this.lineContinuation=e.indexOf("")>=0||i[0]>0,this.lineContinuation||(O={})}};var g0=function(e,t,r){var a=e.currentVoice?e.currentVoice.staffNum*100+e.currentVoice.index:0;e.inTie[t]===void 0&&(e.inTie[t]=[]),e.inTie[t][a]=r},ic=function(e,t){if(e[t]==='"'){var r=ue.getBrackettedSubstring(e,t,5);if(r[2]||Te("Missing the closing quote while parsing the chord symbol",e,t),r[0]>0&&r[1].length>0&&r[1][0]==="^")r[1]=r[1].substring(1),r[2]="above";else if(r[0]>0&&r[1].length>0&&r[1][0]==="_")r[1]=r[1].substring(1),r[2]="below";else if(r[0]>0&&r[1].length>0&&r[1][0]==="<")r[1]=r[1].substring(1),r[2]="left";else if(r[0]>0&&r[1].length>0&&r[1][0]===">")r[1]=r[1].substring(1),r[2]="right";else if(r[0]>0&&r[1].length>0&&r[1][0]==="@"){r[1]=r[1].substring(1);var a=ue.getFloat(r[1]);a.digits===0&&Te("Missing first position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(a.digits),r[1][0]!==","&&Te("Missing comma absolutely positioned annotation.",e,t),r[1]=r[1].substring(1);var n=ue.getFloat(r[1]);n.digits===0&&Te("Missing second position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(n.digits);var i=ue.skipWhiteSpace(r[1]);r[1]=r[1].substring(i),r[2]=null,r[3]={x:a.value,y:n.value}}else E.freegchord!==!0&&(r[1]=r[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),r[1]=r[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),r[2]="default",r[1]=xi.chordName(E,r[1]);return r}return[0,""]},sc=function(e,t){if(e[t]==="{"){var r=ue.getBrackettedSubstring(e,t,1,"}");r[2]||Te("Missing the closing '}' while parsing grace note",e,t),e[t+r[0]]===")"&&(r[0]++,r[1]+=")");for(var a=[],n=0,i=!1;n0&&(a[a.length-1].endBeam=!0):Te("Unknown character '"+r[1][n]+"' while parsing grace note",e,t),n++)}if(a.length)return[r[0],a]}return[0]};function oc(e,t){if(e[t]==="&"){for(var r=t;e[t]&&e[t]!==":"&&e[t]!=="|";)t++;return[t-r,e.substring(r+1,t)]}return[0]}function Za(e){var t=e.origMeter;return!t||t.type!=="specified"||!t.value||t.value.length===0?1:parseInt(t.value[0].num,10)/parseInt(t.value[0].den,10)}var en=function(e,t){var r=E.macros[e[t]];if(r!==void 0)return(r[0]==="!"||r[0]==="+")&&(r=r.substring(1)),(r[r.length-1]==="!"||r[r.length-1]==="+")&&(r=r.substring(0,r.length-1)),Ua.includes(r)?[1,r]:Xa.includes(r)?(E.volumePosition==="hidden"&&(r=""),[1,r]):Va.includes(r)?(E.dynamicPosition==="hidden"&&(r=""),[1,r]):(E.ignoredDecorations.includes(r)||Te("Unknown macro: "+r,e,t),[1,""]);switch(e[t]){case".":if(e[t+1]==="("||e[t+1]==="-")break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var a=ue.getBrackettedSubstring(e,t,5);if(a[1].length>1&&(a[1][0]==="^"||a[1][0]==="_")&&(a[1]=a[1].substring(1)),Ua.includes(a[1]))return a;if(Xa.includes(a[1]))return E.volumePosition==="hidden"&&(a[1]=""),a;if(Va.includes(a[1]))return E.dynamicPosition==="hidden"&&(a[1]=""),a;var n=ja.findIndex(function(i){return a[1]===i[0]});return n>=0?(a[1]=ja[n][1],a):(n=Ka.findIndex(function(i){return a[1]===i[0]}),n>=0?(a[1]=Ka[n][1],E.dynamicPosition==="hidden"&&(a[1]=""),a):e[t]==="!"&&(a[0]===1||e[t+a[0]-1]!=="!")?[1,null]:(Te("Unknown decoration: "+a[1],e,t),a[1]="",a));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]},cc=function(e,t){for(var r=t;ue.isWhiteSpace(e[t]);)t++;return[t-r]},lc=function(e,t){var r=ue.getBarLine(e,t);if(r.len===0)return[0,""];if(r.warn)return Te(r.warn,e,t),[r.len,""];for(var a=0;a="2"&&e[t+1]<="9"?(r.triplet!==void 0?Te("Can't nest triplets",e,t):(r.triplet=e[t+1]-"0",r.tripletQ=nc[r.triplet],r.num_notes=r.triplet,t+2="1"&&e[t+4]<="9"?(r.num_notes=e[t+4]-"0",t+=3):Te("expected number after the two colons after the triplet to mark the duration",e,t):t+3="1"&&e[t+3]<="9"?(r.tripletQ=e[t+3]-"0",t+4="1"&&e[t+5]<="9"&&(r.num_notes=e[t+5]-"0",t+=4):t+=2):Te("expected number after the triplet to mark the duration",e,t))),t++):r.startSlur===void 0?r.startSlur=1:r.startSlur++),t++;return r.consumed=t-a,r};fa.prototype.startNewLine=function(){var e={startChar:-1,endChar:-1};E.partForNextLine.title&&(e.part=E.partForNextLine),e.clef=E.currentVoice&&E.staves[E.currentVoice.staffNum].clef!==void 0?Ga.clone(E.staves[E.currentVoice.staffNum].clef):Ga.clone(E.clef);var t=E.currentVoice?E.currentVoice.scoreTranspose:0;if(e.key=Wa.standardKey(E.key.root+E.key.acc+E.key.mode,E.key.root,E.key.acc,t),e.key.mode=E.key.mode,E.key.impliedNaturals&&(e.key.impliedNaturals=E.key.impliedNaturals),E.key.explicitAccidentals)for(var r=0;r=0?(r.duration=et.getBarLength(),r.rest.text=1,s="Zduration"):(a&&E.next_note_duration!==0?(r.duration=E.default_length*E.next_note_duration,E.next_note_duration=0,o=!0):r.duration=E.default_length,s="duration");else return n(s)?(r.endChar=t,r):null;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if(s==="octave"||s==="duration"){var h=ue.getFraction(e,t);for(r.duration=r.duration*h.value,r.endChar=h.index;h.index"))t--,s="broken_rhythm";else return r}else return null;break;case">":case"<":if(n(s))if(a){var c=Ci(e,t);t+=c[0]-1,E.next_note_duration=c[2],r.duration=c[1]*r.duration,s="end_slur"}else return r.endChar=t,r;else return null;break;default:return n(s)?(r.endChar=t,r):null}if(t++,t===e.length)return n(s)?(r.endChar=t,r):null}return null},Ci=function(e,t){switch(e[t]){case">":return t"&&e[t+2]===">"?[3,1.875,.125]:t"?[2,1.75,.25]:[1,1.5,.5];case"<":return t=c.length};this.eatWhiteSpace=function(c,f){for(var d=f;d="a"&&g[v]<="z"||g[v]>="A"&&g[v]<="Z");)v++;return v},d=this.skipWhiteSpace(c);if(r(c,d))return{len:0};var p=c.substring(d,d+3).toLowerCase();switch((p.length>1&&p[1]===" "||p[1]==="^"||p[1]==="_"||p[1]==="=")&&(p=p[0]),p){case"mix":return{len:f(c,d),token:"Mix"};case"dor":return{len:f(c,d),token:"Dor"};case"phr":return{len:f(c,d),token:"Phr"};case"lyd":return{len:f(c,d),token:"Lyd"};case"loc":return{len:f(c,d),token:"Loc"};case"aeo":return{len:f(c,d),token:"m"};case"maj":return{len:f(c,d),token:""};case"ion":return{len:f(c,d),token:""};case"min":return{len:f(c,d),token:"m"};case"m":return{len:f(c,d),token:"m"}}return{len:0}},this.getClef=function(c,f){var d=c,p=this.skipWhiteSpace(c);if(r(c,p))return{len:0};var g=!1,v=c.substring(p);if(Ae.startsWith(v,"clef=")&&(g=!0,v=v.substring(5),p+=5),v.length===0&&g)return{len:p+5,warn:"No clef specified: "+d};var y=this.skipWhiteSpace(v);if(r(v,y))return{len:0};y>0&&(p+=y,v=v.substring(y));var w=null;if(Ae.startsWith(v,"treble"))w="treble";else if(Ae.startsWith(v,"bass3"))w="bass3";else if(Ae.startsWith(v,"bass"))w="bass";else if(Ae.startsWith(v,"tenor"))w="tenor";else if(Ae.startsWith(v,"alto2"))w="alto2";else if(Ae.startsWith(v,"alto1"))w="alto1";else if(Ae.startsWith(v,"alto"))w="alto";else if(!f&&g&&Ae.startsWith(v,"none"))w="none";else if(Ae.startsWith(v,"perc"))w="perc";else if(!f&&g&&Ae.startsWith(v,"C"))w="tenor";else if(!f&&g&&Ae.startsWith(v,"F"))w="bass";else if(!f&&g&&Ae.startsWith(v,"G"))w="treble";else return{len:p+5,warn:"Unknown clef specified: "+d};return v=v.substring(w.length),y=this.isMatch(v,"+8"),y>0?w+="+8":(y=this.isMatch(v,"-8"),y>0&&(w+="-8")),{len:p+w.length,token:w,explicit:g}},this.getBarLine=function(c,f){switch(c[f]){case"]":switch(++f,c[f]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++f,c[f]>="1"&&c[f]<="9"||c[f]==='"'?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}case":":switch(++f,c[f]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++f,c[f]){case"]":switch(++f,c[f]){case"|":return++f,c[f]===":"?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}case"|":return++f,c[f]===":"?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}default:return{len:1,warn:"Unknown bar symbol"}}case"[":if(++f,c[f]==="|")switch(++f,c[f]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}else return c[f]>="1"&&c[f]<="9"||c[f]==='"'?{len:1,token:"bar_invisible"}:{len:0};case"|":switch(++f,c[f]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++f,c[f]===":"?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var d=0;c[f+d]===":";)d++;return{len:1+d,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(c,f){for(var d=0;d0;){var d;if(c[0].token==="^"){if(d="sharp",c.shift(),c.length===0)return{accs:f,warn:"Expected note name after "+d};switch(c[0].token){case"^":d="dblsharp",c.shift();break;case"/":d="quartersharp",c.shift();break}}else if(c[0].token==="=")d="natural",c.shift();else if(c[0].token==="_"){if(d="flat",c.shift(),c.length===0)return{accs:f,warn:"Expected note name after "+d};switch(c[0].token){case"_":d="dblflat",c.shift();break;case"/":d="quarterflat",c.shift();break}}else return{accs:f};if(c.length===0)return{accs:f,warn:"Expected note name after "+d};switch(c[0].token[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":f===void 0&&(f=[]),f.push({acc:d,note:c[0].token[0]}),c[0].token.length===1?c.shift():c[0].token=c[0].token.substring(1);break;default:return{accs:f,warn:"Expected note name after "+d+" Found: "+c[0].token}}}return{accs:f}},this.getKeyAccidental=function(c){var f={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},d=this.skipWhiteSpace(c);if(r(c,d))return{len:0};var p=null;switch(c[d]){case"^":case"_":case"=":p=c[d];break;default:return{len:0}}if(d++,r(c,d))return{len:1,warn:"Expected note name after accidental"};switch(c[d]){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:d+1,token:{acc:f[p],note:c[d]}};case"^":case"_":case"/":if(p+=c[d],d++,r(c,d))return{len:2,warn:"Expected note name after accidental"};switch(c[d]){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:d+1,token:{acc:f[p],note:c[d]}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(c){return c===" "||c===" "||c===""},this.getMeat=function(c,f,d){var p=c.indexOf("%",f);for(p>=0&&p="A"&&c<="Z"||c>="a"&&c<="z"},n=function(c){return c>="0"&&c<="9"};this.tokenize=function(c,f,d,p){var g=this.getMeat(c,f,d);f=g.start,d=g.end;for(var v=[],y;f=d?{len:1,err:"Missing close quote"}:{len:g-f+1,token:this.translateString(c.substring(p+1,g))}}else{for(var v=p;v=0?Ae.strip(c.substring(0,f)):Ae.strip(c)},this.getInt=function(c){var f=parseInt(c);if(isNaN(f))return{digits:0};var d=""+f,p=c.indexOf(d);return{value:f,digits:p+d.length}},this.getFloat=function(c){var f=parseFloat(c);if(isNaN(f))return{digits:0};var d=""+f,p=c.indexOf(d);return{value:f,digits:p+d.length}},this.getMeasurement=function(c){if(c.length===0)return{used:0};var f=1,d="";if(c[0].token==="-")c.shift(),d="-",f++;else if(c[0].type!=="number")return{used:0};if(d+=c.shift().token,c.length===0)return{used:1,value:parseInt(d)};var p=c.shift();if(p.token==="."){if(f++,c.length===0)return{used:f,value:parseInt(d)};if(c[0].type==="number"&&(p=c.shift(),d=d+"."+p.token,f++,c.length===0))return{used:f,value:parseFloat(d)};p=c.shift()}switch(p.token){case"pt":return{used:f+1,value:parseFloat(d)};case"px":return{used:f+1,value:parseFloat(d)};case"cm":return{used:f+1,value:parseFloat(d)/2.54*72};case"in":return{used:f+1,value:parseFloat(d)*72};default:return c.unshift(p),{used:f,value:parseFloat(d)}}};var u=function(c){return c=c.replace(/\\n/g,` -`),c=c.replace(/\\"/g,'"'),c};this.getBrackettedSubstring=function(c,f,d,p){for(var g=p||c[f],v=f+1,y=!1;vc.length-1&&(v=c.length-1),[v-f+1,u(c.substring(f+1,v)),!1])}};ha.prototype.peekLine=function(){return this.lines[this.lineIndex]};ha.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex0&&(a[l.line].staff[l.staff].barNumber=s);for(var u=Object.keys(h),c=0;c=0;p--)if(d[p].el_type==="key"){n[l.staff]={root:d[p].root,acc:d[p].acc,mode:d[p].mode,accidentals:d[p].accidentals.filter(function(v){return v.acc!=="natural"})};break}for(p=d.length-1;p>=0;p--)if(d[p].el_type==="stem"){i[l.staff*10+l.voice]={direction:d[p].direction};break}if(r!==void 0&&l.staff===0&&l.voice===0)for(p=0;p0?(r.push(i-1),a.push(Math.round(n-s)),n=s):ii&&ci?(l.push(c-1),o++,s=Math.max(s,i),i=Math.abs(r-t[o]),n.push(a-f),a=f):i=d}n.push(a)}function mc(e,t,r,a){for(var n=Math.ceil(e.total/t),i=Math.floor(e.total/n),s=[],o=0;ot&&(s=!0),o%r===r-1&&(o!==e.length-1&&a.push(o),n.push(Math.round(i)),i=0);return{failed:s,totals:n,lineBreaks:a}}function wc(e,t,r){var a={lineBreaks:e,staffwidth:t};for(var n in r)r.hasOwnProperty(n)&&n!=="wrap"&&n!=="staffwidth"&&(a[n]=r[n]);return{revisedParams:a}}function xc(e,t,r){if(t.length===0||r.staffwidth0&&c.measureWidths.length<25&&(k=mc(c,d,y,v),v.attempts.push({type:"Optimize",failed:k.failed,reason:k.reason,lineBreaks:k.lineBreaks,totals:k.totals}),k.failed||(y=k.lineBreaks))}l.push(y),h.push(v)}var b=r.staffwidth,m=wc(l,b,r);return m.explanation=h,m.reParse=!0,m}var ki={wrapLines:dc,calcLineWraps:xc},mt={};mt.FONTEM=360;mt.FONTSIZE=30;mt.STEP=mt.FONTSIZE*93/720;mt.SPACE=10;mt.TOPNOTE=15;mt.STAVEHEIGHT=100;mt.INDENT=50;var $e=mt,Ti,v0=Fe;(function(){var e=1,t=128;Ti=function(d,p){p=p||{};var g,v=p.program||0,y=p.midiTranspose||0;d.visualTranspose&&(y-=d.visualTranspose);var w=p.channel||0,k=!1,b=p.drum||"",m=p.drumBars||1,C=p.drumIntro||0,_=b!=="",M=!!p.drumOff,L=[],P=50;v=parseInt(v,10),y=parseInt(y,10),w=parseInt(w,10),w===10&&(v=t),b=b.split(" "),m=parseInt(m,10),C=parseInt(C,10);var q=d.formatting.bagpipes;q&&(v=71);var F=[];if(d.formatting.midi){var D=d.formatting.midi;D.program&&D.program.length>0&&(v=D.program[0],D.program.length>1&&(v=D.program[1],w=D.program[0]),k=!0),D.transpose&&(y=D.transpose[0]),D.channel&&(w=D.channel[0],k=!0),D.drum&&(b=D.drum),D.drumbars&&(m=D.drumbars[0]),D.drumon&&(_=!0),w===10&&(v=t),D.beat&&F.push({el_type:"beat",beats:D.beat}),D.nobeataccents&&F.push({el_type:"beataccents",value:!1})}p.qpm?g=parseInt(p.qpm,10):d.metaText.tempo?g=o(d.metaText.tempo,d.getBeatLength()):p.defaultQpm?g=p.defaultQpm:g=180;var $=[];q&&$.push({el_type:"bagpipes"}),$.push({el_type:"instrument",program:v}),w&&$.push({el_type:"channel",channel:w}),y&&$.push({el_type:"transpose",transpose:y}),$.push({el_type:"tempo",qpm:g});for(var R=0;R=0?Le="pppp":we.decoration.indexOf("ppp")>=0?Le="ppp":we.decoration.indexOf("pp")>=0?Le="pp":we.decoration.indexOf("p")>=0?Le="p":we.decoration.indexOf("mp")>=0?Le="mp":we.decoration.indexOf("mf")>=0?Le="mf":we.decoration.indexOf("f")>=0?Le="f":we.decoration.indexOf("ff")>=0?Le="ff":we.decoration.indexOf("fff")>=0?Le="fff":we.decoration.indexOf("ffff")>=0&&(Le="ffff"),Le&&(W=Qe[Le].slice(0),x[G].push({el_type:"beat",beats:W.slice(0)}),T[te]=!1,S[te]=!1),we.decoration.indexOf("crescendo(")>=0){var Yt=r(re,H,"crescendo)"),h0=Math.min(127,W[0]+P),H0=a(re,H+Yt+1,Object.keys(Qe));H0&&(h0=Qe[H0][0]),Yt>0?T[te]=Math.floor((h0-W[0])/Yt):T[te]=!1,S[te]=!1}else if(we.decoration.indexOf("crescendo)")>=0)T[te]=!1;else if(we.decoration.indexOf("diminuendo(")>=0){var qe=r(re,H,"diminuendo)"),Ma=Math.max(15,W[0]-P),Na=a(re,H+qe+1,Object.keys(Qe));Na&&(Ma=Qe[Na][0]),T[te]=!1,qe>0?S[te]=Math.floor((Ma-W[0])/qe):S[te]=!1}else we.decoration.indexOf("diminuendo)")>=0&&(S[te]=!1)};for(var f0=dt,Ie=ee.staff,G=0,pe=0;pe=0?x[G].push({el_type:"transpose",transpose:-12}):K.clef.type.indexOf("+8")>=0&&x[G].push({el_type:"transpose",transpose:12})),d.formatting.midi&&d.formatting.midi.drumoff&&(x[G].push({el_type:"bar"}),x[G].push({el_type:"drum",params:{pattern:"",on:!1}}));var At=0,Be=0,B=0,I=0;W=[105,95,85,1];for(var H=0;H=0?x[G].push({el_type:"transpose",transpose:-12}):A.type.indexOf("+8")>=0&&x[G].push({el_type:"transpose",transpose:12}));break;case"tempo":g=o(A,d.getBeatLength()),x[G].push({el_type:"tempo",qpm:g,timing:N[G]}),Y[""+N[G]]={el_type:"tempo",qpm:g,timing:N[G]};break;case"bar":At>0&&x[G].push({el_type:"bar"}),dt(A),At=0;var ae=A.type==="bar_right_repeat"||A.type==="bar_dbl_repeat",U=A.startEnding==="1",V=A.type==="bar_left_repeat"||A.type==="bar_dbl_repeat"||A.type==="bar_right_repeat";if(ae){var ge=Z[G];ge||(ge=0);var le=j[G];le||(le=x[G].length);for(var J=ge;Jve;)ve++;if(x[ce].length>ve){for(var Q=0;Q0&&x[0].length>0&&(x[0][0].pickupLength=d.getPickupLength()),x};function r(d,p,g){for(var v=0,y=p+1;y=0)return v;return v}function a(d,p,g){for(var v=Math.min(d.length,p+3),y=p;y=0)return d[y].decoration[w]}return null}function n(d,p){if(!(!p||p.length===0))for(var g=Object.keys(p),v=0;v=0&&w!==p[""+b.timing].qpm&&(w=p[""+b.timing].qpm,b.el_type==="tempo"?(b.qpm=p[""+b.timing].qpm,k++):(d[v].splice(k,0,{el_type:"tempo",qpm:p[""+b.timing].qpm,timing:b.timing}),k+=2))}}function i(d){for(var p=0;p=0&&g[v].el_type!=="bar";)g[v].noChordVoice=!0,v--}function s(d,p){if(!(!d||d.length<=p||!d[p].title))return d[p].title.join(" ")}function o(d,p){var g=.25;d.duration&&(g=d.duration[0]);var v=60;return d.bpm&&(v=d.bpm),g*v/p}function l(d){var p;switch(d.type){case"common_time":p={el_type:"meter",num:4,den:4};break;case"cut_time":p={el_type:"meter",num:2,den:2};break;case"specified":p={el_type:"meter",num:d.value[0].num,den:d.value[0].den};break;default:p={el_type:"meter"}}return e=p.num/p.den,p}function h(d){for(var p=[],g=0;g=0;g--)if(d[g].el_type===p.el_type){JSON.stringify(d[g])!==JSON.stringify(p)&&d.push(p);return}d.push(p)}})();var _i=Ti,Cc=Fe,de=function(t,r,a,n){this.chordTrack=[],this.chordTrackFinished=!1,this.chordChannel=t,this.currentChords=[],this.lastChord,this.chordLastBar,this.chordsOff=!!r,this.gChordTacet=this.chordsOff,this.hasRhythmHead=!1,this.transpose=0,this.lastBarTime=0,this.meter=n,this.tempoChangeFactor=1,this.bassInstrument=a.bassprog&&a.bassprog.length===1?a.bassprog[0]:0,this.chordInstrument=a.chordprog&&a.chordprog.length===1?a.chordprog[0]:0,this.boomVolume=a.bassvol&&a.bassvol.length===1?a.bassvol[0]:64,this.chickVolume=a.chordvol&&a.chordvol.length===1?a.chordvol[0]:48,this.overridePattern=a.gchord?Si(a.gchord[0]):void 0};de.prototype.setMeter=function(e){this.meter=e};de.prototype.setTempoChangeFactor=function(e){this.tempoChangeFactor=e};de.prototype.setLastBarTime=function(e){this.lastBarTime=e};de.prototype.setTranspose=function(e){this.transpose=e};de.prototype.setRhythmHead=function(e,t){this.hasRhythmHead=e;var r=[];if(e&&this.lastChord&&this.lastChord.chick)for(var a=0;a0&&!this.chordTrackFinished&&(this.resolveChords(this.lastBarTime,Vr(e.time)),this.currentChords=[]),this.chordLastBar=this.lastChord};de.prototype.gChordOn=function(e){this.chordsOff||(this.gChordTacet=e.tacet)};de.prototype.paramChange=function(e){switch(e.el_type){case"gchord":this.overridePattern=Si(e.param);break;case"bassprog":this.bassInstrument=e.param;break;case"chordprog":this.chordInstrument=e.param;break;case"bassvol":this.boomVolume=e.param;break;case"chordvol":this.chickVolume=e.param;break;default:console.log("unhandled midi param",e)}};de.prototype.finish=function(){this.chordTrackEmpty()||(this.chordTrackFinished=!0)};de.prototype.addTrack=function(e){this.chordTrackEmpty()||e.push(this.chordTrack)};de.prototype.findChord=function(e){if(this.gChordTacet)return"break";if(this.chordTrackFinished||!e.chord||e.chord.length===0)return null;for(var t=0;t=0)return"break"}return null};de.prototype.interpretChord=function(e){if(e.length!==0){if(e==="break")return{chick:[]};var t=e.substring(0,1);if(t==="("){if(e=e.substring(1,e.length-2),e.length===0)return;t=e.substring(0,1)}var r=this.basses[t];if(r){for(var a=this.transpose;a<-8;)a+=12;for(;a>8;)a-=12;r+=a;var n=r-5,i;e.length===1&&(i=this.chordNotes(r,""));var s=e.substring(1),o=s.substring(0,1);o==="b"||o==="♭"?(r--,n--,s=s.substring(1)):(o==="#"||o==="♯")&&(r++,n++,s=s.substring(1));var l=s.split("/");if(i=this.chordNotes(r,l[0]),i.length>=3){var h=i[2]-i[0];n=n+h-7}if(l.length===2){var u=this.basses[l[1].substring(0,1)];if(u){var c=l[1].substring(1),f={"#":1,"♯":1,b:-1,"♭":-1}[c]||0;r=this.basses[l[1].substring(0,1)]+f+a,n=r}}return{boom:r,boom2:n,chick:i}}}};de.prototype.chordNotes=function(e,t){var r=this.chordIntervals[t];r||(t.slice(0,2).toLowerCase()==="ma"||t[0]==="M"?r=this.chordIntervals.M:t[0]==="m"||t[0]==="-"?r=this.chordIntervals.m:r=this.chordIntervals.M),e+=12;for(var a=[],n=0;n0&&l[c-1]&&l[c]&&l[c-1].boom!==l[c].boom&&(f=!0);var p=h[c],g=p.indexOf("boom")>=0,v=!g&&c!==0&&h[0].indexOf("boom")>=0&&(!l[c-1]||l[c-1].boom!==l[c].boom),y=kc(l[c],p,f,v);g&&(f=!1);for(var w=0;w=0?n.push(r?e.boom:e.boom2):a&&n.push(e.boom),t.indexOf("chick")>=0)for(var i=0;i3?n.push(e.chick[2]):n.push(e.chick[0]+12);break;case"TOP":e.chick.length>4?n.push(e.chick[2]):n.push(e.chick[1]+12);break;case"do":n.push(e.chick[0]+12);break;case"mi":n.push(e.chick[1]+12);break;case"sol":n.push(e.chick[2]+12);break;case"ti":e.chick.length>3?n.push(e.chick[2]+12):n.push(e.chick[0]+24);break;case"top":e.chick.length>4?n.push(e.chick[2]+12):n.push(e.chick[1]+24);break}return n}function Si(e){for(var t=[],r=0;r0&&B[0].length>0&&(P=B[0][0].pickupLength),I.bassprog!==void 0&&!A.bassprog&&(A.bassprog=[I.bassprog]),I.bassvol!==void 0&&!A.bassvol&&(A.bassvol=[I.bassvol]),I.chordprog!==void 0&&!A.chordprog&&(A.chordprog=[I.chordprog]),I.chordvol!==void 0&&!A.chordvol&&(A.chordvol=[I.chordvol]),I.gchord!==void 0&&!A.gchord&&(A.gchord=[I.gchord]),c=new Mc(B.length,I.chordsOff,A,f),S(B,I);for(var z=0;z=0)&&(Q=!0);for(var ae=0;ae0&&l[l.length-1].cmd==="program")l[l.length-1].instrument=U.program;else{var V;for(V=l.length-1;V>=0&&l[V].cmd!=="program";V--);(V<0||l[V].instrument!==U.program)&&l.push({cmd:"program",channel:0,instrument:U.program})}break;case"channel":R(U.channel);break;case"drum":M=_e(U.params),He();break;case"gchordOn":c.gChordOn(U);break;case"beat":v=U.beats[0],y=U.beats[1],w=U.beats[2];break;case"vol":b=U.volume;break;case"volinc":m=U.volume;break;case"beataccents":g=U.value;break;case"gchord":case"bassprog":case"chordprog":case"bassvol":case"chordvol":c.paramChange(U);break;default:console.log("MIDI creation. Unknown el_type: "+U.el_type+` -`);break}}l[0].instrument===void 0&&(l[0].instrument=s||0),h&&l.unshift(h),a.push(l),c.finish(),_.length>0}return I.detuneOctave&&Be(a,parseInt(I.detuneOctave,10)),c.addTrack(a),_.length>0&&a.push(_),{tempo:n,instrument:s,tracks:a,totalDuration:u}};function R(B){for(var I=l.length-1;I>=0;I--)if(l[I].cmd==="program"){l[I].channel=B;return}}function x(B){return B/1e6}function T(B){return Math.round(B*i*1e6)/1e6}function S(B,I){for(var H=0;HB)H=w;else{var A=Y(p,N(f),B);A===0?H=v:parseInt(A,10)===A?H=y:H=w}return m&&(H+=m,m=void 0),H<0&&(H=0),H>127&&(H=127),I?0:H}function Z(B,I){var H={};if(B.decoration)for(var A=0;A0;)l.push({cmd:"note",pitch:I.pitch+X,volume:I.volume,start:H,duration:z,gap:0,instrument:o,style:"decoration"}),X=X===1?0:1,A-=z,H+=z;break;case"mordent":l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:H,duration:z,gap:0,instrument:o,style:"decoration"}),A-=z,H+=z,l.push({cmd:"note",pitch:I.pitch+1,volume:I.volume,start:H,duration:z,gap:0,instrument:o,style:"decoration"}),A-=z,H+=z,l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:H,duration:A,gap:0,instrument:o});break;case"lowermordent":l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:H,duration:z,gap:0,instrument:o,style:"decoration"}),A-=z,H+=z,l.push({cmd:"note",pitch:I.pitch-1,volume:I.volume,start:H,duration:z,gap:0,instrument:o,style:"decoration"}),A-=z,H+=z,l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:H,duration:A,gap:0,instrument:o});break;case"turn":z=I.duration/5,l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:H,duration:z,gap:0,instrument:o,style:"decoration"}),l.push({cmd:"note",pitch:I.pitch+1,volume:I.volume,start:H+z,duration:z,gap:0,instrument:o,style:"decoration"}),l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:H+z*2,duration:z,gap:0,instrument:o,style:"decoration"}),l.push({cmd:"note",pitch:I.pitch+1,volume:I.volume,start:H+z*3,duration:z,gap:0,instrument:o,style:"decoration"}),l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:H+z*4,duration:z,gap:0,instrument:o});break;case"roll":for(;A>0;)l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:H,duration:z,gap:0,instrument:o,style:"decoration"}),A-=z*2,H+=z*2;break}}function ie(B,I){var H=W(x(B.time),I);c.processChord(B);var A;if(B.gracenotes&&B.pitches&&B.pitches.length>0&&B.pitches[0]&&(A=G(B.gracenotes,B.pitches[0].duration),B.elem&&(B.elem.midiGraceNotePitches=pe(A,x(B.time),H*2/3,o))),B.elem){var z=x(B.time),X=z/k/n*60*1e3;if(B.elem.currentTrackMilliseconds===void 0)B.elem.currentTrackMilliseconds=X,B.elem.currentTrackWholeNotes=z;else if(B.elem.currentTrackMilliseconds.length===void 0)B.elem.currentTrackMilliseconds!==X&&(B.elem.currentTrackMilliseconds=[B.elem.currentTrackMilliseconds,X],B.elem.currentTrackWholeNotes=[B.elem.currentTrackWholeNotes,z]);else{for(var Q=!1,ae=0;ae0?oe.endType="tenuto":U&&(oe.endType=U),oe.endType){case"tenuto":oe.gap=D;break;case"staccato":var ce=oe.duration*$;oe.gap=n/60*ce;break;default:oe.gap=F;break}l.push(oe)}}}l.length-1}var ve=ne(B);u=Math.max(u,x(B.time)+T(ve))}function ne(B){return B.pitches&&B.pitches.length>0&&B.pitches[0]?B.pitches[0].duration:B.elem?B.elem.duration:B.duration}var Ce=[0,2,4,5,7,9,11];function ee(B){if(B.midipitch!==void 0)return B.midipitch;var I=B.pitch;if(B.accidental)switch(B.accidental){case"sharp":e[I]=1;break;case"flat":e[I]=-1;break;case"natural":e[I]=0;break;case"dblsharp":e[I]=2;break;case"dblflat":e[I]=-2;break;case"quartersharp":e[I]=.25;break;case"quarterflat":e[I]=-.25;break}var H=te(I)*12+Ce[re(I)]+60;return e[I]!==void 0?H+=e[I]:H+=t[re(I)],H+=r,H}function Ie(B){var I=[0,0,0,0,0,0,0];if(!B.accidentals)return I;for(var H=0;H=0?(B.pitch=Math.round(B.pitch),B.cents=-50):I.indexOf(".25")>=0&&(B.pitch=Math.round(B.pitch),B.cents=50),B}function te(B){return Math.floor(B/7)}function re(B){return B=B%7,B<0&&(B+=7),B}function _e(B){if(B.pattern.length===0||B.on===!1)return{on:!1};for(var I=B.pattern[0],H=[],A="",z=0,X=0;X1){ae=ae.sort(function(J,fe){return J.pitch-fe.pitch});var U=ae[ae.length-1],V=U.pitch%12,ge=!1;for(z=0;!ge&&z=o&&(l-=o),f[p].el_type==="bar")return l}return l}this.getPickupLength=function(){var s=this.getBarLength(),o=t(this.lines,s);return o<1e-8||s-o<1e-8?0:o},this.getBarLength=function(){var s=this.getMeterFraction();return s.num/s.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(s){var o;if(s)o=s;else{var l=this.metaText?this.metaText.tempo:null;o=this.getBpm(l)}o<=0&&(o=1);var h=this.getBeatsPerMeasure(),u=h/o;return u*6e4},this.getBeatsPerMeasure=function(){var s=this.getBeatLength(),o=this.getBarLength();return o/s},this.getMeter=function(){for(var s=0;ss)return p}}return null};function r(s){for(var o,l,h,u,c=s.length-1;c>=0;c--){var f=s[c];f.type==="bar"?(f.top=h,f.nextTop=o,o=h,f.bottom=u,f.nextBottom=l,l=u):f.type==="event"&&(h=f.top,u=f.top+f.height)}}function a(s){var o=[];for(var l in s)s.hasOwnProperty(l)&&o.push(s[l]);return o=o.sort(function(h,u){var c=h.milliseconds-u.milliseconds;return c!==0?c:h.type==="bar"?-1:1}),o}this.addElementToEvents=function(s,o,l,h,u,c,f,d,p,g){if(o.hint)return{isTiedState:void 0,duration:0};var v=o.durationClass?o.durationClass:o.duration;if(o.abcelem.rest&&o.abcelem.rest.type==="spacer"&&(v=0),v>0){for(var y=[],w=0;w0){var c=u.staffs[0],f=c.absoluteY,d=f-c.top*sn.STEP,p=u.staffs[u.staffs.length-1];f=p.absoluteY;for(var g=f-p.bottom*sn.STEP,v=g-d,y=u.voices,w=0;w0&&c["event"+k]&&(D="event"+k),k=Math.round(w*1e3),q.type==="bar"){var $=q.abcelem.type,R=$==="bar_right_repeat"||$==="bar_dbl_repeat",x=q.abcelem.startEnding==="1",T=$==="bar_left_repeat"||$==="bar_dbl_repeat"||$==="bar_right_repeat";if(R){L>0&&(c[D].endX=q.x),m===-1&&(m=L);var S=0;M=-1;for(var N=b;Nh.left&&(h.endX=Math.min(h.endX,c)):h.endX=c}}var f=o[o.length-1];f.endX=s[f.line].staffGroup.w}}this.getBpm=function(s){var o;if(s){o=s.bpm;var l=this.getBeatLength(),h=s.duration&&s.duration.length>0?s.duration[0]:l;o=o*h/l}if(!o){o=180;var u=this.getMeterFraction();u&&u.num!==3&&u.num%3===0&&(o=120)}return o},this.setTiming=function(s,o){if(o=o||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var l=this.metaText?this.metaText.tempo:null,h=this.getBpm(l),u=1;s?l&&(u=s/h):s=h;var c=this.getBeatLength(),f=s/60,d=this.getBarLength(),p=d/c*o/f;p&&(p-=this.getPickupLength()/c/f);var g=c*f;return this.noteTimings=this.setupEvents(p,g,s,u),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*f):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(s){s||(s={});var o=Ic(this,s);return Oc(o,s,this.formatting.percmap,this.formatting.midi)},this.deline=function(s){return zc(this.lines,s)},this.findSelectableElement=function(s){return this.engraver&&this.engraver.selectables?this.engraver.findSelectableElement(s):null},this.getSelectableArray=function(){return this.engraver&&this.engraver.selectables?this.engraver.selectables:[]}},qc=Hc,Yc=la,Bt=Fe,Rc=function(e){var t=this;this.setVisualTranspose=function(n){n&&(e.visualTranspose=n)},this.resolveOverlays=function(){for(var n=!1,i=[],s=0;s=e.lines[w].staff[0].voices.length&&e.lines[w].staff[0].voices.push([{el_type:"note",duration:i[w],rest:{type:"invisible"},startChar:y.startChar,endChar:y.endChar}])}else y.el_type==="bar"?(p?(p=!1,u[c].snip.push({start:g,len:v-g}),u[c].voice.push(y)):(d>0&&u[c].voice.push({el_type:"note",duration:d,rest:{type:"invisible"},startChar:y.startChar,endChar:y.endChar}),u[c].voice.push(y)),d=0):y.el_type==="note"?p?u[c].voice.push(y):(d+=y.duration,i[s]+=y.duration):(y.el_type==="scale"||y.el_type==="stem"||y.el_type==="overlay"||y.el_type==="style"||y.el_type==="transpose"||y.el_type==="color")&&u[c].voice.push(y)}u[c].hasOverlay&&u[c].snip.length===0&&u[c].snip.push({start:g,len:f.length-g})}for(c=0;c=0;b--){var m=k.snip[b];h.voices[c].splice(m.start,m.len),h.voices[c].splice(m.start+1,0,{el_type:"stem",direction:"auto"});var C=r(h.voices[c],m.start);h.voices[c].splice(C,0,{el_type:"stem",direction:"up"})}for(b=0;b0&&n[s].el_type!=="bar";s--);return s}function a(n){for(var i=!0,s=0;s=C&&PC;){if(m[C].staff)return m[C];C++}return null}for(e.lineNum=0;e.lineNum0&&w[w.length-1].barNumber){var b=v(e.lines,e.lineNum);b&&(b.staff[0].barNumber=w[w.length-1].barNumber),delete w[w.length-1].barNumber}}}return delete e.staffNum,delete e.voiceNum,delete e.lineNum,delete e.potentialStartBeam,delete e.potentialEndBeam,delete e.vskipPending,s},e.reset(),this.getLastNote=function(){if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff&&e.lines[e.lineNum].staff[e.staffNum]&&e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum])for(var n=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum].length-1;n>=0;n--){var i=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum][n];if(i.el_type==="note")return i}return null},this.addTieToLastNote=function(n){var i=this.getLastNote();return i&&i.pitches&&i.pitches.length>0?(i.pitches[0].startTie={},n&&(i.pitches[0].startTie.style="dotted"),!0):!1},this.getDuration=function(n){return n.duration?n.duration:0},this.closeLine=function(){e.potentialStartBeam&&e.potentialEndBeam&&(e.potentialStartBeam.startBeam=!0,e.potentialEndBeam.endBeam=!0),delete e.potentialStartBeam,delete e.potentialEndBeam},this.appendElement=function(n,i,s,o){var l=e,h=function(d){var p=l.lines[l.lineNum].staff[l.staffNum];if(p){if(d.pitches!==void 0){var g=p.workingClef.verticalPos;d.pitches.forEach(function(y){y.verticalPos=y.pitch-g})}if(d.gracenotes!==void 0){var v=p.workingClef.verticalPos;d.gracenotes.forEach(function(y){y.verticalPos=y.pitch-v})}p.voices[l.voiceNum].push(d)}};o.el_type=n,i!==null&&(o.startChar=i),s!==null&&(o.endChar=s);var u=function(){l.potentialStartBeam.startBeam=!0,o.endBeam=!0,delete l.potentialStartBeam,delete l.potentialEndBeam},c=function(){l.potentialStartBeam!==void 0&&l.potentialEndBeam!==void 0&&(l.potentialStartBeam.startBeam=!0,l.potentialEndBeam.endBeam=!0),delete l.potentialStartBeam,delete l.potentialEndBeam};if(n==="note"){var f=t.getDuration(o);f>=.25||o.force_end_beam_last&&l.potentialStartBeam!==void 0?c():o.end_beam&&l.potentialStartBeam!==void 0?o.rest===void 0?u():c():o.rest===void 0&&(l.potentialStartBeam===void 0?o.end_beam||(l.potentialStartBeam=o,delete l.potentialEndBeam):l.potentialEndBeam=o)}else c();delete o.end_beam,delete o.force_end_beam_last,h(o)},this.appendStartingElement=function(n,i,s,o){this.closeLine();var l;n==="key"&&(l=o.impliedNaturals,delete o.impliedNaturals,delete o.explicitAccidentals);var h=Bt.clone(o);if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff){e.lines[e.lineNum].staff.length<=e.staffNum&&(e.lines[e.lineNum].staff[e.staffNum]={},e.lines[e.lineNum].staff[e.staffNum].clef=Bt.clone(e.lines[e.lineNum].staff[0].clef),e.lines[e.lineNum].staff[e.staffNum].key=Bt.clone(e.lines[e.lineNum].staff[0].key),e.lines[e.lineNum].staff[0].meter&&(e.lines[e.lineNum].staff[e.staffNum].meter=Bt.clone(e.lines[e.lineNum].staff[0].meter)),e.lines[e.lineNum].staff[e.staffNum].workingClef=Bt.clone(e.lines[e.lineNum].staff[0].workingClef),e.lines[e.lineNum].staff[e.staffNum].voices=[[]]),n==="clef"&&(e.lines[e.lineNum].staff[e.staffNum].workingClef=h);for(var u=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum],c=0;c0){if(u.voices[0]!==void 0){for(var c=!1,f=0;f0){var s=i[i.length-1];if(s.el_type==="bar")s.barNumber!==void 0&&(s.barNumber=n);else return n-1}return n},this.hasBeginMusic=function(){for(var n=0;n=0;i--)if(e.lines[i].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var n=e.lines[e.lineNum];if(!n)return null;var i=n.staff[e.staffNum];return i&&i.voices[e.voiceNum]!==void 0?i.voices[e.voiceNum]:null},this.setCurrentVoice=function(n,i){e.staffNum=n,e.voiceNum=i;for(var s=0;s0&&(O.force_end_beam_last=!0),t+=d}else if(Jo.indexOf(e[t])===-1?h=en(e,t):h=[0],h[0]>0)h[1]===null?t+10&&(h[1].indexOf("style=")===0?O.style=h[1].substr(6):(O.decoration===void 0&&(O.decoration=[]),h[1]==="beambr1"?O.beambr=1:h[1]==="beambr2"?O.beambr=2:O.decoration.push(h[1]))),t+=h[0];else if(h=nc(e,t),h[0]>0)O.gracenotes=h[1],t+=h[0];else break;if(h=oc(e,t),h[0]>0){s=0,O.gracenotes!==void 0&&(O.rest={type:"spacer"},O.duration=.125,E.addFormattingOptions(O,et.formatting,"note"),ct.appendElement("note",r+t,r+t+h[0],O),E.measureNotEmpty=!0,O={});var p={type:h[1]};if(p.type.length===0)Te("Unknown bar type",e,t);else{if(E.inEnding&&p.type!=="bar_thin"&&(p.endEnding=!0,E.inEnding=!1),h[2]&&(p.startEnding=h[2],E.inEnding&&(p.endEnding=!0),E.inEnding=!0,h[1]==="bar_right_repeat"?E.restoreStartEndingHoldOvers():E.duplicateStartEndingHoldOvers()),O.decoration!==void 0&&(p.decoration=O.decoration),O.chord!==void 0&&(p.chord=O.chord),p.startEnding&&E.barFirstEndingNum===void 0?E.barFirstEndingNum=E.currBarNumber:p.startEnding&&p.endEnding&&E.barFirstEndingNum?E.currBarNumber=E.barFirstEndingNum:p.endEnding&&(E.barFirstEndingNum=void 0),p.type!=="bar_invisible"&&E.measureNotEmpty){var g=E.currentVoice===void 0||E.currentVoice.staffNum===0&&E.currentVoice.index===0;g&&(E.currBarNumber++,E.barNumbers&&E.currBarNumber%E.barNumbers===0&&(p.barNumber=E.currBarNumber))}E.addFormattingOptions(O,et.formatting,"bar"),ct.appendElement("bar",r+o,r+t+h[0],p),E.measureNotEmpty=!1,O={}}t+=h[0]}else if(e[t]==="&")h=ic(e,t),h[0]>0&&(ct.appendElement("overlay",r,r+1,{}),t+=1,s++);else{if(h=cc(e,t),h.consumed>0&&(h.startSlur!==void 0&&(O.startSlur=h.startSlur),h.dottedSlur&&(O.dottedSlur=!0),h.triplet!==void 0&&(n>0?Te("Can't nest triplets",e,t):(O.startTriplet=h.triplet,O.tripletMultiplier=h.tripletQ/h.triplet,O.tripletR=h.num_notes,n=h.num_notes===void 0?h.triplet:h.num_notes)),t+=h.consumed),e[t]==="["){t++;for(var v=null,y=!1,w=!1;!w;){var k=en(e,t);k[0]>0&&(t+=k[0]);var b=Xr(e,t,{},!1);if(b!==null&&b.pitch!==void 0)k[0]>0&&k[1].indexOf("style=")!==0&&(O.decoration===void 0&&(O.decoration=[]),O.decoration.push(k[1])),b.end_beam&&(O.end_beam=!0,delete b.end_beam),O.pitches===void 0?(O.duration=b.duration,O.pitches=[b]):O.pitches.push(b),delete b.duration,k[0]>0&&k[1].indexOf("style=")===0&&(O.pitches[O.pitches.length-1].style=k[1].substr(6)),E.inTieChord[O.pitches.length]&&(b.endTie=!0,E.inTieChord[O.pitches.length]=void 0),b.startTie&&(E.inTieChord[O.pitches.length]=!0),t=b.endChar,delete b.endChar;else if(e[t]===" ")Te("Spaces are not allowed in chords",e,t),t++;else{if(t0&&!(O.rest&&O.rest.type==="spacer")&&(n--,n===0&&(O.endTriplet=!0));for(var m=!1;t":case"<":var C=Ci(e,t);t+=C[0]-1,E.next_note_duration=C[2],v?v=v*C[1]:v=C[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var _=ue.getFraction(e,t);v=_.value,t=_.index;var M=e[t];M===" "&&(y=!0),M==="-"||M===")"||M===" "||M==="<"||M===">"?t--:m=!0;break;default:m=!0;break}m||t++}}else Te("Expected ']' to end the chords",e,t);O.pitches!==void 0&&(v!==null&&(O.duration=O.duration*v,y&&C0(O)),E.addFormattingOptions(O,et.formatting,"note"),ct.appendElement("note",r+o,r+t,O),E.measureNotEmpty=!0,O={}),w=!0}}}else{var L={},P=Xr(e,t,L,!0);L.endTie!==void 0&&d0(E,s,!0),P!==null&&(P.pitch!==void 0?(O.pitches=[{}],P.accidental!==void 0&&(O.pitches[0].accidental=P.accidental),O.pitches[0].pitch=P.pitch,O.pitches[0].name=P.name,(P.midipitch||P.midipitch===0)&&(O.pitches[0].midipitch=P.midipitch),P.endSlur!==void 0&&(O.pitches[0].endSlur=P.endSlur),P.endTie!==void 0&&(O.pitches[0].endTie=P.endTie),P.startSlur!==void 0&&(O.pitches[0].startSlur=P.startSlur),O.startSlur!==void 0&&(O.pitches[0].startSlur=O.startSlur),O.dottedSlur!==void 0&&(O.pitches[0].dottedSlur=!0),P.startTie!==void 0&&(O.pitches[0].startTie=P.startTie),O.startTie!==void 0&&(O.pitches[0].startTie=O.startTie)):(O.rest=P.rest,P.endSlur!==void 0&&(O.endSlur=P.endSlur),P.endTie!==void 0&&(O.rest.endTie=P.endTie),P.startSlur!==void 0&&(O.startSlur=P.startSlur),P.startTie!==void 0&&(O.rest.startTie=P.startTie),O.startTie!==void 0&&(O.rest.startTie=O.startTie)),P.chord!==void 0&&(O.chord=P.chord),P.duration!==void 0&&(O.duration=P.duration),P.decoration!==void 0&&(O.decoration=P.decoration),P.graceNotes!==void 0&&(O.graceNotes=P.graceNotes),delete O.startSlur,delete O.dottedSlur,Ja(E,s,O)&&(O.pitches!==void 0?O.pitches[0].endTie=!0:O.rest.type!=="spacer"&&(O.rest.endTie=!0),d0(E,s,!1)),(P.startTie||O.startTie)&&d0(E,s,!0),t=P.endChar,n>0&&!(P.rest&&P.rest.type==="spacer")&&(n--,n===0&&(O.endTriplet=!0)),P.end_beam&&C0(O),O.rest&&O.rest.type==="rest"&&O.duration===1&&Za(E)<=1&&(O.rest.type="whole",O.duration=Za(E)),O.duration<1&&Zo.indexOf(O.duration)===-1&&O.duration!==0&&(!O.rest||O.rest.type!=="spacer")&&Te("Duration not representable: "+e.substring(o,t),e,t),E.addFormattingOptions(O,et.formatting,"note"),ct.appendElement("note",r+o,r+t,O),E.measureNotEmpty=!0,O={})}t===o&&(e[t]!==" "&&e[t]!=="`"&&Te("Unknown character ignored",e,t),t++)}}}this.lineContinuation=e.indexOf("")>=0||i[0]>0,this.lineContinuation||(O={})}};var d0=function(e,t,r){var a=e.currentVoice?e.currentVoice.staffNum*100+e.currentVoice.index:0;e.inTie[t]===void 0&&(e.inTie[t]=[]),e.inTie[t][a]=r},ac=function(e,t){if(e[t]==='"'){var r=ue.getBrackettedSubstring(e,t,5);if(r[2]||Te("Missing the closing quote while parsing the chord symbol",e,t),r[0]>0&&r[1].length>0&&r[1][0]==="^")r[1]=r[1].substring(1),r[2]="above";else if(r[0]>0&&r[1].length>0&&r[1][0]==="_")r[1]=r[1].substring(1),r[2]="below";else if(r[0]>0&&r[1].length>0&&r[1][0]==="<")r[1]=r[1].substring(1),r[2]="left";else if(r[0]>0&&r[1].length>0&&r[1][0]===">")r[1]=r[1].substring(1),r[2]="right";else if(r[0]>0&&r[1].length>0&&r[1][0]==="@"){r[1]=r[1].substring(1);var a=ue.getFloat(r[1]);a.digits===0&&Te("Missing first position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(a.digits),r[1][0]!==","&&Te("Missing comma absolutely positioned annotation.",e,t),r[1]=r[1].substring(1);var n=ue.getFloat(r[1]);n.digits===0&&Te("Missing second position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(n.digits);var i=ue.skipWhiteSpace(r[1]);r[1]=r[1].substring(i),r[2]=null,r[3]={x:a.value,y:n.value}}else E.freegchord!==!0&&(r[1]=r[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),r[1]=r[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),r[2]="default",r[1]=xi.chordName(E,r[1]);return r}return[0,""]},nc=function(e,t){if(e[t]==="{"){var r=ue.getBrackettedSubstring(e,t,1,"}");r[2]||Te("Missing the closing '}' while parsing grace note",e,t),e[t+r[0]]===")"&&(r[0]++,r[1]+=")");for(var a=[],n=0,i=!1;n0&&(a[a.length-1].endBeam=!0):Te("Unknown character '"+r[1][n]+"' while parsing grace note",e,t),n++)}if(a.length)return[r[0],a]}return[0]};function ic(e,t){if(e[t]==="&"){for(var r=t;e[t]&&e[t]!==":"&&e[t]!=="|";)t++;return[t-r,e.substring(r+1,t)]}return[0]}function Za(e){var t=e.origMeter;return!t||t.type!=="specified"||!t.value||t.value.length===0?1:parseInt(t.value[0].num,10)/parseInt(t.value[0].den,10)}var en=function(e,t){var r=E.macros[e[t]];if(r!==void 0)return(r[0]==="!"||r[0]==="+")&&(r=r.substring(1)),(r[r.length-1]==="!"||r[r.length-1]==="+")&&(r=r.substring(0,r.length-1)),Ua.includes(r)?[1,r]:Xa.includes(r)?(E.volumePosition==="hidden"&&(r=""),[1,r]):Va.includes(r)?(E.dynamicPosition==="hidden"&&(r=""),[1,r]):(E.ignoredDecorations.includes(r)||Te("Unknown macro: "+r,e,t),[1,""]);switch(e[t]){case".":if(e[t+1]==="("||e[t+1]==="-")break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var a=ue.getBrackettedSubstring(e,t,5);if(a[1].length>1&&(a[1][0]==="^"||a[1][0]==="_")&&(a[1]=a[1].substring(1)),Ua.includes(a[1]))return a;if(Xa.includes(a[1]))return E.volumePosition==="hidden"&&(a[1]=""),a;if(Va.includes(a[1]))return E.dynamicPosition==="hidden"&&(a[1]=""),a;var n=ja.findIndex(function(i){return a[1]===i[0]});return n>=0?(a[1]=ja[n][1],a):(n=Ka.findIndex(function(i){return a[1]===i[0]}),n>=0?(a[1]=Ka[n][1],E.dynamicPosition==="hidden"&&(a[1]=""),a):e[t]==="!"&&(a[0]===1||e[t+a[0]-1]!=="!")?[1,null]:(Te("Unknown decoration: "+a[1],e,t),a[1]="",a));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]},sc=function(e,t){for(var r=t;ue.isWhiteSpace(e[t]);)t++;return[t-r]},oc=function(e,t){var r=ue.getBarLine(e,t);if(r.len===0)return[0,""];if(r.warn)return Te(r.warn,e,t),[r.len,""];for(var a=0;a="2"&&e[t+1]<="9"?(r.triplet!==void 0?Te("Can't nest triplets",e,t):(r.triplet=e[t+1]-"0",r.tripletQ=rc[r.triplet],r.num_notes=r.triplet,t+2="1"&&e[t+4]<="9"?(r.num_notes=e[t+4]-"0",t+=3):Te("expected number after the two colons after the triplet to mark the duration",e,t):t+3="1"&&e[t+3]<="9"?(r.tripletQ=e[t+3]-"0",t+4="1"&&e[t+5]<="9"&&(r.num_notes=e[t+5]-"0",t+=4):t+=2):Te("expected number after the triplet to mark the duration",e,t))),t++):r.startSlur===void 0?r.startSlur=1:r.startSlur++),t++;return r.consumed=t-a,r};fa.prototype.startNewLine=function(){var e={startChar:-1,endChar:-1};E.partForNextLine.title&&(e.part=E.partForNextLine),e.clef=E.currentVoice&&E.staves[E.currentVoice.staffNum].clef!==void 0?Ra.clone(E.staves[E.currentVoice.staffNum].clef):Ra.clone(E.clef);var t=E.currentVoice?E.currentVoice.scoreTranspose:0;if(e.key=Wa.standardKey(E.key.root+E.key.acc+E.key.mode,E.key.root,E.key.acc,t),e.key.mode=E.key.mode,E.key.impliedNaturals&&(e.key.impliedNaturals=E.key.impliedNaturals),E.key.explicitAccidentals)for(var r=0;r=0?(r.duration=et.getBarLength(),r.rest.text=1,s="Zduration"):(a&&E.next_note_duration!==0?(r.duration=E.default_length*E.next_note_duration,E.next_note_duration=0,o=!0):r.duration=E.default_length,s="duration");else return n(s)?(r.endChar=t,r):null;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if(s==="octave"||s==="duration"){var h=ue.getFraction(e,t);for(r.duration=r.duration*h.value,r.endChar=h.index;h.index"))t--,s="broken_rhythm";else return r}else return null;break;case">":case"<":if(n(s))if(a){var c=Ci(e,t);t+=c[0]-1,E.next_note_duration=c[2],r.duration=c[1]*r.duration,s="end_slur"}else return r.endChar=t,r;else return null;break;default:return n(s)?(r.endChar=t,r):null}if(t++,t===e.length)return n(s)?(r.endChar=t,r):null}return null},Ci=function(e,t){switch(e[t]){case">":return t"&&e[t+2]===">"?[3,1.875,.125]:t"?[2,1.75,.25]:[1,1.5,.5];case"<":return t=c.length};this.eatWhiteSpace=function(c,f){for(var d=f;d="a"&&g[v]<="z"||g[v]>="A"&&g[v]<="Z");)v++;return v},d=this.skipWhiteSpace(c);if(r(c,d))return{len:0};var p=c.substring(d,d+3).toLowerCase();switch((p.length>1&&p[1]===" "||p[1]==="^"||p[1]==="_"||p[1]==="=")&&(p=p[0]),p){case"mix":return{len:f(c,d),token:"Mix"};case"dor":return{len:f(c,d),token:"Dor"};case"phr":return{len:f(c,d),token:"Phr"};case"lyd":return{len:f(c,d),token:"Lyd"};case"loc":return{len:f(c,d),token:"Loc"};case"aeo":return{len:f(c,d),token:"m"};case"maj":return{len:f(c,d),token:""};case"ion":return{len:f(c,d),token:""};case"min":return{len:f(c,d),token:"m"};case"m":return{len:f(c,d),token:"m"}}return{len:0}},this.getClef=function(c,f){var d=c,p=this.skipWhiteSpace(c);if(r(c,p))return{len:0};var g=!1,v=c.substring(p);if(Ae.startsWith(v,"clef=")&&(g=!0,v=v.substring(5),p+=5),v.length===0&&g)return{len:p+5,warn:"No clef specified: "+d};var y=this.skipWhiteSpace(v);if(r(v,y))return{len:0};y>0&&(p+=y,v=v.substring(y));var w=null;if(Ae.startsWith(v,"treble"))w="treble";else if(Ae.startsWith(v,"bass3"))w="bass3";else if(Ae.startsWith(v,"bass"))w="bass";else if(Ae.startsWith(v,"tenor"))w="tenor";else if(Ae.startsWith(v,"alto2"))w="alto2";else if(Ae.startsWith(v,"alto1"))w="alto1";else if(Ae.startsWith(v,"alto"))w="alto";else if(!f&&g&&Ae.startsWith(v,"none"))w="none";else if(Ae.startsWith(v,"perc"))w="perc";else if(!f&&g&&Ae.startsWith(v,"C"))w="tenor";else if(!f&&g&&Ae.startsWith(v,"F"))w="bass";else if(!f&&g&&Ae.startsWith(v,"G"))w="treble";else return{len:p+5,warn:"Unknown clef specified: "+d};return v=v.substring(w.length),y=this.isMatch(v,"+8"),y>0?w+="+8":(y=this.isMatch(v,"-8"),y>0&&(w+="-8")),{len:p+w.length,token:w,explicit:g}},this.getBarLine=function(c,f){switch(c[f]){case"]":switch(++f,c[f]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++f,c[f]>="1"&&c[f]<="9"||c[f]==='"'?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}case":":switch(++f,c[f]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++f,c[f]){case"]":switch(++f,c[f]){case"|":return++f,c[f]===":"?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}case"|":return++f,c[f]===":"?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}default:return{len:1,warn:"Unknown bar symbol"}}case"[":if(++f,c[f]==="|")switch(++f,c[f]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}else return c[f]>="1"&&c[f]<="9"||c[f]==='"'?{len:1,token:"bar_invisible"}:{len:0};case"|":switch(++f,c[f]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++f,c[f]===":"?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var d=0;c[f+d]===":";)d++;return{len:1+d,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(c,f){for(var d=0;d0;){var d;if(c[0].token==="^"){if(d="sharp",c.shift(),c.length===0)return{accs:f,warn:"Expected note name after "+d};switch(c[0].token){case"^":d="dblsharp",c.shift();break;case"/":d="quartersharp",c.shift();break}}else if(c[0].token==="=")d="natural",c.shift();else if(c[0].token==="_"){if(d="flat",c.shift(),c.length===0)return{accs:f,warn:"Expected note name after "+d};switch(c[0].token){case"_":d="dblflat",c.shift();break;case"/":d="quarterflat",c.shift();break}}else return{accs:f};if(c.length===0)return{accs:f,warn:"Expected note name after "+d};switch(c[0].token[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":f===void 0&&(f=[]),f.push({acc:d,note:c[0].token[0]}),c[0].token.length===1?c.shift():c[0].token=c[0].token.substring(1);break;default:return{accs:f,warn:"Expected note name after "+d+" Found: "+c[0].token}}}return{accs:f}},this.getKeyAccidental=function(c){var f={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},d=this.skipWhiteSpace(c);if(r(c,d))return{len:0};var p=null;switch(c[d]){case"^":case"_":case"=":p=c[d];break;default:return{len:0}}if(d++,r(c,d))return{len:1,warn:"Expected note name after accidental"};switch(c[d]){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:d+1,token:{acc:f[p],note:c[d]}};case"^":case"_":case"/":if(p+=c[d],d++,r(c,d))return{len:2,warn:"Expected note name after accidental"};switch(c[d]){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:d+1,token:{acc:f[p],note:c[d]}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(c){return c===" "||c===" "||c===""},this.getMeat=function(c,f,d){var p=c.indexOf("%",f);for(p>=0&&p="A"&&c<="Z"||c>="a"&&c<="z"},n=function(c){return c>="0"&&c<="9"};this.tokenize=function(c,f,d,p){var g=this.getMeat(c,f,d);f=g.start,d=g.end;for(var v=[],y;f=d?{len:1,err:"Missing close quote"}:{len:g-f+1,token:this.translateString(c.substring(p+1,g))}}else{for(var v=p;v=0?Ae.strip(c.substring(0,f)):Ae.strip(c)},this.getInt=function(c){var f=parseInt(c);if(isNaN(f))return{digits:0};var d=""+f,p=c.indexOf(d);return{value:f,digits:p+d.length}},this.getFloat=function(c){var f=parseFloat(c);if(isNaN(f))return{digits:0};var d=""+f,p=c.indexOf(d);return{value:f,digits:p+d.length}},this.getMeasurement=function(c){if(c.length===0)return{used:0};var f=1,d="";if(c[0].token==="-")c.shift(),d="-",f++;else if(c[0].type!=="number")return{used:0};if(d+=c.shift().token,c.length===0)return{used:1,value:parseInt(d)};var p=c.shift();if(p.token==="."){if(f++,c.length===0)return{used:f,value:parseInt(d)};if(c[0].type==="number"&&(p=c.shift(),d=d+"."+p.token,f++,c.length===0))return{used:f,value:parseFloat(d)};p=c.shift()}switch(p.token){case"pt":return{used:f+1,value:parseFloat(d)};case"px":return{used:f+1,value:parseFloat(d)};case"cm":return{used:f+1,value:parseFloat(d)/2.54*72};case"in":return{used:f+1,value:parseFloat(d)*72};default:return c.unshift(p),{used:f,value:parseFloat(d)}}};var u=function(c){return c=c.replace(/\\n/g,` +`),c=c.replace(/\\"/g,'"'),c};this.getBrackettedSubstring=function(c,f,d,p){for(var g=p||c[f],v=f+1,y=!1;vc.length-1&&(v=c.length-1),[v-f+1,u(c.substring(f+1,v)),!1])}};ha.prototype.peekLine=function(){return this.lines[this.lineIndex]};ha.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex0&&(a[l.line].staff[l.staff].barNumber=s);for(var u=Object.keys(h),c=0;c=0;p--)if(d[p].el_type==="key"){n[l.staff]={root:d[p].root,acc:d[p].acc,mode:d[p].mode,accidentals:d[p].accidentals.filter(function(v){return v.acc!=="natural"})};break}for(p=d.length-1;p>=0;p--)if(d[p].el_type==="stem"){i[l.staff*10+l.voice]={direction:d[p].direction};break}if(r!==void 0&&l.staff===0&&l.voice===0)for(p=0;p0?(r.push(i-1),a.push(Math.round(n-s)),n=s):ii&&ci?(l.push(c-1),o++,s=Math.max(s,i),i=Math.abs(r-t[o]),n.push(a-f),a=f):i=d}n.push(a)}function vc(e,t,r,a){for(var n=Math.ceil(e.total/t),i=Math.floor(e.total/n),s=[],o=0;ot&&(s=!0),o%r===r-1&&(o!==e.length-1&&a.push(o),n.push(Math.round(i)),i=0);return{failed:s,totals:n,lineBreaks:a}}function mc(e,t,r){var a={lineBreaks:e,staffwidth:t};for(var n in r)r.hasOwnProperty(n)&&n!=="wrap"&&n!=="staffwidth"&&(a[n]=r[n]);return{revisedParams:a}}function yc(e,t,r){if(t.length===0||r.staffwidth0&&c.measureWidths.length<25&&(k=vc(c,d,y,v),v.attempts.push({type:"Optimize",failed:k.failed,reason:k.reason,lineBreaks:k.lineBreaks,totals:k.totals}),k.failed||(y=k.lineBreaks))}l.push(y),h.push(v)}var b=r.staffwidth,m=mc(l,b,r);return m.explanation=h,m.reParse=!0,m}var ki={wrapLines:hc,calcLineWraps:yc},mt={};mt.FONTEM=360;mt.FONTSIZE=30;mt.STEP=mt.FONTSIZE*93/720;mt.SPACE=10;mt.TOPNOTE=15;mt.STAVEHEIGHT=100;mt.INDENT=50;var $e=mt,Ti,p0=Fe;(function(){var e=1,t=128;Ti=function(d,p){p=p||{};var g,v=p.program||0,y=p.midiTranspose||0;d.visualTranspose&&(y-=d.visualTranspose);var w=p.channel||0,k=!1,b=p.drum||"",m=p.drumBars||1,C=p.drumIntro||0,_=b!=="",M=!!p.drumOff,L=[],P=50;v=parseInt(v,10),y=parseInt(y,10),w=parseInt(w,10),w===10&&(v=t),b=b.split(" "),m=parseInt(m,10),C=parseInt(C,10);var q=d.formatting.bagpipes;q&&(v=71);var F=[];if(d.formatting.midi){var D=d.formatting.midi;D.program&&D.program.length>0&&(v=D.program[0],D.program.length>1&&(v=D.program[1],w=D.program[0]),k=!0),D.transpose&&(y=D.transpose[0]),D.channel&&(w=D.channel[0],k=!0),D.drum&&(b=D.drum),D.drumbars&&(m=D.drumbars[0]),D.drumon&&(_=!0),w===10&&(v=t),D.beat&&F.push({el_type:"beat",beats:D.beat}),D.nobeataccents&&F.push({el_type:"beataccents",value:!1})}p.qpm?g=parseInt(p.qpm,10):d.metaText.tempo?g=o(d.metaText.tempo,d.getBeatLength()):p.defaultQpm?g=p.defaultQpm:g=180;var $=[];q&&$.push({el_type:"bagpipes"}),$.push({el_type:"instrument",program:v}),w&&$.push({el_type:"channel",channel:w}),y&&$.push({el_type:"transpose",transpose:y}),$.push({el_type:"tempo",qpm:g});for(var Y=0;Y=0?Le="pppp":we.decoration.indexOf("ppp")>=0?Le="ppp":we.decoration.indexOf("pp")>=0?Le="pp":we.decoration.indexOf("p")>=0?Le="p":we.decoration.indexOf("mp")>=0?Le="mp":we.decoration.indexOf("mf")>=0?Le="mf":we.decoration.indexOf("f")>=0?Le="f":we.decoration.indexOf("ff")>=0?Le="ff":we.decoration.indexOf("fff")>=0?Le="fff":we.decoration.indexOf("ffff")>=0&&(Le="ffff"),Le&&(W=Qe[Le].slice(0),x[R].push({el_type:"beat",beats:W.slice(0)}),T[te]=!1,S[te]=!1),we.decoration.indexOf("crescendo(")>=0){var Gt=r(re,z,"crescendo)"),l0=Math.min(127,W[0]+P),H0=a(re,z+Gt+1,Object.keys(Qe));H0&&(l0=Qe[H0][0]),Gt>0?T[te]=Math.floor((l0-W[0])/Gt):T[te]=!1,S[te]=!1}else if(we.decoration.indexOf("crescendo)")>=0)T[te]=!1;else if(we.decoration.indexOf("diminuendo(")>=0){var qe=r(re,z,"diminuendo)"),Ma=Math.max(15,W[0]-P),Na=a(re,z+qe+1,Object.keys(Qe));Na&&(Ma=Qe[Na][0]),T[te]=!1,qe>0?S[te]=Math.floor((Ma-W[0])/qe):S[te]=!1}else we.decoration.indexOf("diminuendo)")>=0&&(S[te]=!1)};for(var c0=ut,Ie=ee.staff,R=0,pe=0;pe=0?x[R].push({el_type:"transpose",transpose:-12}):K.clef.type.indexOf("+8")>=0&&x[R].push({el_type:"transpose",transpose:12})),d.formatting.midi&&d.formatting.midi.drumoff&&(x[R].push({el_type:"bar"}),x[R].push({el_type:"drum",params:{pattern:"",on:!1}}));var At=0,Be=0,B=0,I=0;W=[105,95,85,1];for(var z=0;z=0?x[R].push({el_type:"transpose",transpose:-12}):A.type.indexOf("+8")>=0&&x[R].push({el_type:"transpose",transpose:12}));break;case"tempo":g=o(A,d.getBeatLength()),x[R].push({el_type:"tempo",qpm:g,timing:N[R]}),G[""+N[R]]={el_type:"tempo",qpm:g,timing:N[R]};break;case"bar":At>0&&x[R].push({el_type:"bar"}),ut(A),At=0;var ae=A.type==="bar_right_repeat"||A.type==="bar_dbl_repeat",U=A.startEnding==="1",V=A.type==="bar_left_repeat"||A.type==="bar_dbl_repeat"||A.type==="bar_right_repeat";if(ae){var ge=Z[R];ge||(ge=0);var le=j[R];le||(le=x[R].length);for(var J=ge;Jve;)ve++;if(x[ce].length>ve){for(var Q=0;Q0&&x[0].length>0&&(x[0][0].pickupLength=d.getPickupLength()),x};function r(d,p,g){for(var v=0,y=p+1;y=0)return v;return v}function a(d,p,g){for(var v=Math.min(d.length,p+3),y=p;y=0)return d[y].decoration[w]}return null}function n(d,p){if(!(!p||p.length===0))for(var g=Object.keys(p),v=0;v=0&&w!==p[""+b.timing].qpm&&(w=p[""+b.timing].qpm,b.el_type==="tempo"?(b.qpm=p[""+b.timing].qpm,k++):(d[v].splice(k,0,{el_type:"tempo",qpm:p[""+b.timing].qpm,timing:b.timing}),k+=2))}}function i(d){for(var p=0;p=0&&g[v].el_type!=="bar";)g[v].noChordVoice=!0,v--}function s(d,p){if(!(!d||d.length<=p||!d[p].title))return d[p].title.join(" ")}function o(d,p){var g=.25;d.duration&&(g=d.duration[0]);var v=60;return d.bpm&&(v=d.bpm),g*v/p}function l(d){var p;switch(d.type){case"common_time":p={el_type:"meter",num:4,den:4};break;case"cut_time":p={el_type:"meter",num:2,den:2};break;case"specified":p={el_type:"meter",num:d.value[0].num,den:d.value[0].den};break;default:p={el_type:"meter"}}return e=p.num/p.den,p}function h(d){for(var p=[],g=0;g=0;g--)if(d[g].el_type===p.el_type){JSON.stringify(d[g])!==JSON.stringify(p)&&d.push(p);return}d.push(p)}})();var _i=Ti,wc=Fe,de=function(t,r,a,n){this.chordTrack=[],this.chordTrackFinished=!1,this.chordChannel=t,this.currentChords=[],this.lastChord,this.chordLastBar,this.chordsOff=!!r,this.gChordTacet=this.chordsOff,this.hasRhythmHead=!1,this.transpose=0,this.lastBarTime=0,this.meter=n,this.tempoChangeFactor=1,this.bassInstrument=a.bassprog&&a.bassprog.length===1?a.bassprog[0]:0,this.chordInstrument=a.chordprog&&a.chordprog.length===1?a.chordprog[0]:0,this.boomVolume=a.bassvol&&a.bassvol.length===1?a.bassvol[0]:64,this.chickVolume=a.chordvol&&a.chordvol.length===1?a.chordvol[0]:48,this.overridePattern=a.gchord?Si(a.gchord[0]):void 0};de.prototype.setMeter=function(e){this.meter=e};de.prototype.setTempoChangeFactor=function(e){this.tempoChangeFactor=e};de.prototype.setLastBarTime=function(e){this.lastBarTime=e};de.prototype.setTranspose=function(e){this.transpose=e};de.prototype.setRhythmHead=function(e,t){this.hasRhythmHead=e;var r=[];if(e&&this.lastChord&&this.lastChord.chick)for(var a=0;a0&&!this.chordTrackFinished&&(this.resolveChords(this.lastBarTime,Vr(e.time)),this.currentChords=[]),this.chordLastBar=this.lastChord};de.prototype.gChordOn=function(e){this.chordsOff||(this.gChordTacet=e.tacet)};de.prototype.paramChange=function(e){switch(e.el_type){case"gchord":this.overridePattern=Si(e.param);break;case"bassprog":this.bassInstrument=e.param;break;case"chordprog":this.chordInstrument=e.param;break;case"bassvol":this.boomVolume=e.param;break;case"chordvol":this.chickVolume=e.param;break;default:console.log("unhandled midi param",e)}};de.prototype.finish=function(){this.chordTrackEmpty()||(this.chordTrackFinished=!0)};de.prototype.addTrack=function(e){this.chordTrackEmpty()||e.push(this.chordTrack)};de.prototype.findChord=function(e){if(this.gChordTacet)return"break";if(this.chordTrackFinished||!e.chord||e.chord.length===0)return null;for(var t=0;t=0)return"break"}return null};de.prototype.interpretChord=function(e){if(e.length!==0){if(e==="break")return{chick:[]};var t=e.substring(0,1);if(t==="("){if(e=e.substring(1,e.length-2),e.length===0)return;t=e.substring(0,1)}var r=this.basses[t];if(r){for(var a=this.transpose;a<-8;)a+=12;for(;a>8;)a-=12;r+=a;var n=r-5,i;e.length===1&&(i=this.chordNotes(r,""));var s=e.substring(1),o=s.substring(0,1);o==="b"||o==="♭"?(r--,n--,s=s.substring(1)):(o==="#"||o==="♯")&&(r++,n++,s=s.substring(1));var l=s.split("/");if(i=this.chordNotes(r,l[0]),i.length>=3){var h=i[2]-i[0];n=n+h-7}if(l.length===2){var u=this.basses[l[1].substring(0,1)];if(u){var c=l[1].substring(1),f={"#":1,"♯":1,b:-1,"♭":-1}[c]||0;r=this.basses[l[1].substring(0,1)]+f+a,n=r}}return{boom:r,boom2:n,chick:i}}}};de.prototype.chordNotes=function(e,t){var r=this.chordIntervals[t];r||(t.slice(0,2).toLowerCase()==="ma"||t[0]==="M"?r=this.chordIntervals.M:t[0]==="m"||t[0]==="-"?r=this.chordIntervals.m:r=this.chordIntervals.M),e+=12;for(var a=[],n=0;n0&&l[c-1]&&l[c]&&l[c-1].boom!==l[c].boom&&(f=!0);var p=h[c],g=p.indexOf("boom")>=0,v=!g&&c!==0&&h[0].indexOf("boom")>=0&&(!l[c-1]||l[c-1].boom!==l[c].boom),y=xc(l[c],p,f,v);g&&(f=!1);for(var w=0;w=0?n.push(r?e.boom:e.boom2):a&&n.push(e.boom),t.indexOf("chick")>=0)for(var i=0;i3?n.push(e.chick[2]):n.push(e.chick[0]+12);break;case"TOP":e.chick.length>4?n.push(e.chick[2]):n.push(e.chick[1]+12);break;case"do":n.push(e.chick[0]+12);break;case"mi":n.push(e.chick[1]+12);break;case"sol":n.push(e.chick[2]+12);break;case"ti":e.chick.length>3?n.push(e.chick[2]+12):n.push(e.chick[0]+24);break;case"top":e.chick.length>4?n.push(e.chick[2]+12):n.push(e.chick[1]+24);break}return n}function Si(e){for(var t=[],r=0;r0&&B[0].length>0&&(P=B[0][0].pickupLength),I.bassprog!==void 0&&!A.bassprog&&(A.bassprog=[I.bassprog]),I.bassvol!==void 0&&!A.bassvol&&(A.bassvol=[I.bassvol]),I.chordprog!==void 0&&!A.chordprog&&(A.chordprog=[I.chordprog]),I.chordvol!==void 0&&!A.chordvol&&(A.chordvol=[I.chordvol]),I.gchord!==void 0&&!A.gchord&&(A.gchord=[I.gchord]),c=new Ec(B.length,I.chordsOff,A,f),S(B,I);for(var H=0;H=0)&&(Q=!0);for(var ae=0;ae0&&l[l.length-1].cmd==="program")l[l.length-1].instrument=U.program;else{var V;for(V=l.length-1;V>=0&&l[V].cmd!=="program";V--);(V<0||l[V].instrument!==U.program)&&l.push({cmd:"program",channel:0,instrument:U.program})}break;case"channel":Y(U.channel);break;case"drum":M=_e(U.params),ze();break;case"gchordOn":c.gChordOn(U);break;case"beat":v=U.beats[0],y=U.beats[1],w=U.beats[2];break;case"vol":b=U.volume;break;case"volinc":m=U.volume;break;case"beataccents":g=U.value;break;case"gchord":case"bassprog":case"chordprog":case"bassvol":case"chordvol":c.paramChange(U);break;default:console.log("MIDI creation. Unknown el_type: "+U.el_type+` +`);break}}l[0].instrument===void 0&&(l[0].instrument=s||0),h&&l.unshift(h),a.push(l),c.finish(),_.length>0}return I.detuneOctave&&Be(a,parseInt(I.detuneOctave,10)),c.addTrack(a),_.length>0&&a.push(_),{tempo:n,instrument:s,tracks:a,totalDuration:u}};function Y(B){for(var I=l.length-1;I>=0;I--)if(l[I].cmd==="program"){l[I].channel=B;return}}function x(B){return B/1e6}function T(B){return Math.round(B*i*1e6)/1e6}function S(B,I){for(var z=0;zB)z=w;else{var A=G(p,N(f),B);A===0?z=v:parseInt(A,10)===A?z=y:z=w}return m&&(z+=m,m=void 0),z<0&&(z=0),z>127&&(z=127),I?0:z}function Z(B,I){var z={};if(B.decoration)for(var A=0;A0;)l.push({cmd:"note",pitch:I.pitch+X,volume:I.volume,start:z,duration:H,gap:0,instrument:o,style:"decoration"}),X=X===1?0:1,A-=H,z+=H;break;case"mordent":l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:z,duration:H,gap:0,instrument:o,style:"decoration"}),A-=H,z+=H,l.push({cmd:"note",pitch:I.pitch+1,volume:I.volume,start:z,duration:H,gap:0,instrument:o,style:"decoration"}),A-=H,z+=H,l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:z,duration:A,gap:0,instrument:o});break;case"lowermordent":l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:z,duration:H,gap:0,instrument:o,style:"decoration"}),A-=H,z+=H,l.push({cmd:"note",pitch:I.pitch-1,volume:I.volume,start:z,duration:H,gap:0,instrument:o,style:"decoration"}),A-=H,z+=H,l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:z,duration:A,gap:0,instrument:o});break;case"turn":H=I.duration/5,l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:z,duration:H,gap:0,instrument:o,style:"decoration"}),l.push({cmd:"note",pitch:I.pitch+1,volume:I.volume,start:z+H,duration:H,gap:0,instrument:o,style:"decoration"}),l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:z+H*2,duration:H,gap:0,instrument:o,style:"decoration"}),l.push({cmd:"note",pitch:I.pitch+1,volume:I.volume,start:z+H*3,duration:H,gap:0,instrument:o,style:"decoration"}),l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:z+H*4,duration:H,gap:0,instrument:o});break;case"roll":for(;A>0;)l.push({cmd:"note",pitch:I.pitch,volume:I.volume,start:z,duration:H,gap:0,instrument:o,style:"decoration"}),A-=H*2,z+=H*2;break}}function ie(B,I){var z=W(x(B.time),I);c.processChord(B);var A;if(B.gracenotes&&B.pitches&&B.pitches.length>0&&B.pitches[0]&&(A=R(B.gracenotes,B.pitches[0].duration),B.elem&&(B.elem.midiGraceNotePitches=pe(A,x(B.time),z*2/3,o))),B.elem){var H=x(B.time),X=H/k/n*60*1e3;if(B.elem.currentTrackMilliseconds===void 0)B.elem.currentTrackMilliseconds=X,B.elem.currentTrackWholeNotes=H;else if(B.elem.currentTrackMilliseconds.length===void 0)B.elem.currentTrackMilliseconds!==X&&(B.elem.currentTrackMilliseconds=[B.elem.currentTrackMilliseconds,X],B.elem.currentTrackWholeNotes=[B.elem.currentTrackWholeNotes,H]);else{for(var Q=!1,ae=0;ae0?oe.endType="tenuto":U&&(oe.endType=U),oe.endType){case"tenuto":oe.gap=D;break;case"staccato":var ce=oe.duration*$;oe.gap=n/60*ce;break;default:oe.gap=F;break}l.push(oe)}}}l.length-1}var ve=ne(B);u=Math.max(u,x(B.time)+T(ve))}function ne(B){return B.pitches&&B.pitches.length>0&&B.pitches[0]?B.pitches[0].duration:B.elem?B.elem.duration:B.duration}var Ce=[0,2,4,5,7,9,11];function ee(B){if(B.midipitch!==void 0)return B.midipitch;var I=B.pitch;if(B.accidental)switch(B.accidental){case"sharp":e[I]=1;break;case"flat":e[I]=-1;break;case"natural":e[I]=0;break;case"dblsharp":e[I]=2;break;case"dblflat":e[I]=-2;break;case"quartersharp":e[I]=.25;break;case"quarterflat":e[I]=-.25;break}var z=te(I)*12+Ce[re(I)]+60;return e[I]!==void 0?z+=e[I]:z+=t[re(I)],z+=r,z}function Ie(B){var I=[0,0,0,0,0,0,0];if(!B.accidentals)return I;for(var z=0;z=0?(B.pitch=Math.round(B.pitch),B.cents=-50):I.indexOf(".25")>=0&&(B.pitch=Math.round(B.pitch),B.cents=50),B}function te(B){return Math.floor(B/7)}function re(B){return B=B%7,B<0&&(B+=7),B}function _e(B){if(B.pattern.length===0||B.on===!1)return{on:!1};for(var I=B.pattern[0],z=[],A="",H=0,X=0;X1){ae=ae.sort(function(J,fe){return J.pitch-fe.pitch});var U=ae[ae.length-1],V=U.pitch%12,ge=!1;for(H=0;!ge&&H=o&&(l-=o),f[p].el_type==="bar")return l}return l}this.getPickupLength=function(){var s=this.getBarLength(),o=t(this.lines,s);return o<1e-8||s-o<1e-8?0:o},this.getBarLength=function(){var s=this.getMeterFraction();return s.num/s.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(s){var o;if(s)o=s;else{var l=this.metaText?this.metaText.tempo:null;o=this.getBpm(l)}o<=0&&(o=1);var h=this.getBeatsPerMeasure(),u=h/o;return u*6e4},this.getBeatsPerMeasure=function(){var s=this.getBeatLength(),o=this.getBarLength();return o/s},this.getMeter=function(){for(var s=0;ss)return p}}return null};function r(s){for(var o,l,h,u,c=s.length-1;c>=0;c--){var f=s[c];f.type==="bar"?(f.top=h,f.nextTop=o,o=h,f.bottom=u,f.nextBottom=l,l=u):f.type==="event"&&(h=f.top,u=f.top+f.height)}}function a(s){var o=[];for(var l in s)s.hasOwnProperty(l)&&o.push(s[l]);return o=o.sort(function(h,u){var c=h.milliseconds-u.milliseconds;return c!==0?c:h.type==="bar"?-1:1}),o}this.addElementToEvents=function(s,o,l,h,u,c,f,d,p,g){if(o.hint)return{isTiedState:void 0,duration:0};var v=o.durationClass?o.durationClass:o.duration;if(o.abcelem.rest&&o.abcelem.rest.type==="spacer"&&(v=0),v>0){for(var y=[],w=0;w0){var c=u.staffs[0],f=c.absoluteY,d=f-c.top*sn.STEP,p=u.staffs[u.staffs.length-1];f=p.absoluteY;for(var g=f-p.bottom*sn.STEP,v=g-d,y=u.voices,w=0;w0&&c["event"+k]&&(D="event"+k),k=Math.round(w*1e3),q.type==="bar"){var $=q.abcelem.type,Y=$==="bar_right_repeat"||$==="bar_dbl_repeat",x=q.abcelem.startEnding==="1",T=$==="bar_left_repeat"||$==="bar_dbl_repeat"||$==="bar_right_repeat";if(Y){L>0&&(c[D].endX=q.x),m===-1&&(m=L);var S=0;M=-1;for(var N=b;Nh.left&&(h.endX=Math.min(h.endX,c)):h.endX=c}}var f=o[o.length-1];f.endX=s[f.line].staffGroup.w}}this.getBpm=function(s){var o;if(s){o=s.bpm;var l=this.getBeatLength(),h=s.duration&&s.duration.length>0?s.duration[0]:l;o=o*h/l}if(!o){o=180;var u=this.getMeterFraction();u&&u.num!==3&&u.num%3===0&&(o=120)}return o},this.setTiming=function(s,o){if(o=o||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var l=this.metaText?this.metaText.tempo:null,h=this.getBpm(l),u=1;s?l&&(u=s/h):s=h;var c=this.getBeatLength(),f=s/60,d=this.getBarLength(),p=d/c*o/f;p&&(p-=this.getPickupLength()/c/f);var g=c*f;return this.noteTimings=this.setupEvents(p,g,s,u),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*f):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(s){s||(s={});var o=Fc(this,s);return $c(o,s,this.formatting.percmap,this.formatting.midi)},this.deline=function(s){return Ic(this.lines,s)},this.findSelectableElement=function(s){return this.engraver&&this.engraver.selectables?this.engraver.findSelectableElement(s):null},this.getSelectableArray=function(){return this.engraver&&this.engraver.selectables?this.engraver.selectables:[]}},Hc=Oc,zc=la,Bt=Fe,qc=function(e){var t=this;this.setVisualTranspose=function(n){n&&(e.visualTranspose=n)},this.resolveOverlays=function(){for(var n=!1,i=[],s=0;s=e.lines[w].staff[0].voices.length&&e.lines[w].staff[0].voices.push([{el_type:"note",duration:i[w],rest:{type:"invisible"},startChar:y.startChar,endChar:y.endChar}])}else y.el_type==="bar"?(p?(p=!1,u[c].snip.push({start:g,len:v-g}),u[c].voice.push(y)):(d>0&&u[c].voice.push({el_type:"note",duration:d,rest:{type:"invisible"},startChar:y.startChar,endChar:y.endChar}),u[c].voice.push(y)),d=0):y.el_type==="note"?p?u[c].voice.push(y):(d+=y.duration,i[s]+=y.duration):(y.el_type==="scale"||y.el_type==="stem"||y.el_type==="overlay"||y.el_type==="style"||y.el_type==="transpose"||y.el_type==="color")&&u[c].voice.push(y)}u[c].hasOverlay&&u[c].snip.length===0&&u[c].snip.push({start:g,len:f.length-g})}for(c=0;c=0;b--){var m=k.snip[b];h.voices[c].splice(m.start,m.len),h.voices[c].splice(m.start+1,0,{el_type:"stem",direction:"auto"});var C=r(h.voices[c],m.start);h.voices[c].splice(C,0,{el_type:"stem",direction:"up"})}for(b=0;b0&&n[s].el_type!=="bar";s--);return s}function a(n){for(var i=!0,s=0;s=C&&PC;){if(m[C].staff)return m[C];C++}return null}for(e.lineNum=0;e.lineNum0&&w[w.length-1].barNumber){var b=v(e.lines,e.lineNum);b&&(b.staff[0].barNumber=w[w.length-1].barNumber),delete w[w.length-1].barNumber}}}return delete e.staffNum,delete e.voiceNum,delete e.lineNum,delete e.potentialStartBeam,delete e.potentialEndBeam,delete e.vskipPending,s},e.reset(),this.getLastNote=function(){if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff&&e.lines[e.lineNum].staff[e.staffNum]&&e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum])for(var n=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum].length-1;n>=0;n--){var i=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum][n];if(i.el_type==="note")return i}return null},this.addTieToLastNote=function(n){var i=this.getLastNote();return i&&i.pitches&&i.pitches.length>0?(i.pitches[0].startTie={},n&&(i.pitches[0].startTie.style="dotted"),!0):!1},this.getDuration=function(n){return n.duration?n.duration:0},this.closeLine=function(){e.potentialStartBeam&&e.potentialEndBeam&&(e.potentialStartBeam.startBeam=!0,e.potentialEndBeam.endBeam=!0),delete e.potentialStartBeam,delete e.potentialEndBeam},this.appendElement=function(n,i,s,o){var l=e,h=function(d){var p=l.lines[l.lineNum].staff[l.staffNum];if(p){if(d.pitches!==void 0){var g=p.workingClef.verticalPos;d.pitches.forEach(function(y){y.verticalPos=y.pitch-g})}if(d.gracenotes!==void 0){var v=p.workingClef.verticalPos;d.gracenotes.forEach(function(y){y.verticalPos=y.pitch-v})}p.voices[l.voiceNum].push(d)}};o.el_type=n,i!==null&&(o.startChar=i),s!==null&&(o.endChar=s);var u=function(){l.potentialStartBeam.startBeam=!0,o.endBeam=!0,delete l.potentialStartBeam,delete l.potentialEndBeam},c=function(){l.potentialStartBeam!==void 0&&l.potentialEndBeam!==void 0&&(l.potentialStartBeam.startBeam=!0,l.potentialEndBeam.endBeam=!0),delete l.potentialStartBeam,delete l.potentialEndBeam};if(n==="note"){var f=t.getDuration(o);f>=.25||o.force_end_beam_last&&l.potentialStartBeam!==void 0?c():o.end_beam&&l.potentialStartBeam!==void 0?o.rest===void 0?u():c():o.rest===void 0&&(l.potentialStartBeam===void 0?o.end_beam||(l.potentialStartBeam=o,delete l.potentialEndBeam):l.potentialEndBeam=o)}else c();delete o.end_beam,delete o.force_end_beam_last,h(o)},this.appendStartingElement=function(n,i,s,o){this.closeLine();var l;n==="key"&&(l=o.impliedNaturals,delete o.impliedNaturals,delete o.explicitAccidentals);var h=Bt.clone(o);if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff){e.lines[e.lineNum].staff.length<=e.staffNum&&(e.lines[e.lineNum].staff[e.staffNum]={},e.lines[e.lineNum].staff[e.staffNum].clef=Bt.clone(e.lines[e.lineNum].staff[0].clef),e.lines[e.lineNum].staff[e.staffNum].key=Bt.clone(e.lines[e.lineNum].staff[0].key),e.lines[e.lineNum].staff[0].meter&&(e.lines[e.lineNum].staff[e.staffNum].meter=Bt.clone(e.lines[e.lineNum].staff[0].meter)),e.lines[e.lineNum].staff[e.staffNum].workingClef=Bt.clone(e.lines[e.lineNum].staff[0].workingClef),e.lines[e.lineNum].staff[e.staffNum].voices=[[]]),n==="clef"&&(e.lines[e.lineNum].staff[e.staffNum].workingClef=h);for(var u=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum],c=0;c0){if(u.voices[0]!==void 0){for(var c=!1,f=0;f0){var s=i[i.length-1];if(s.el_type==="bar")s.barNumber!==void 0&&(s.barNumber=n);else return n-1}return n},this.hasBeginMusic=function(){for(var n=0;n=0;i--)if(e.lines[i].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var n=e.lines[e.lineNum];if(!n)return null;var i=n.staff[e.staffNum];return i&&i.voices[e.voiceNum]!==void 0?i.voices[e.voiceNum]:null},this.setCurrentVoice=function(n,i){e.staffNum=n,e.voiceNum=i;for(var s=0;s/g,">")},c=function(b,m,C){m||(m=" ");var _=m[C];(_===" "||!_)&&(_="SPACE");var M=u(m.substring(C-64,C))+''+_+""+u(m.substring(C+1).substring(0,64));l("Music Line:"+r.lineIndex+":"+(C+1)+": "+b+": "+M),h({message:b,line:m,startChar:o.iChar+C,column:C})},f,d;this.getWarnings=function(){return o.warnings},this.getWarningObjects=function(){return o.warningObjects};var p=function(b,m){if(m.indexOf("")>=0){a+=m;return}if(m=a+m,a="",!b){c("Can't add words before the first line of music",b,0);return}m=pt.strip(m),m[m.length-1]!=="-"&&(m=m+" ");for(var C=[],_=0,M=!1,L=function(D){var $=pt.strip(m.substring(_,D));if($=$.replace(/\\([-_*|~])/g,"$1"),_=D+1,$.length>0){M&&($=$.replace(/~/g," "));var R=m[D];return R!=="_"&&R!=="-"&&(R=" "),C.push({syllable:r.translateString($),divider:R}),M=!1,!0}return!1},P=!1,q=0;q0&&(pt.last(C).divider="-",C.push({skip:!0,to:"next"}));break;case"_":P||(L(q),C.push({skip:!0,to:"slur"}));break;case"*":P||(L(q),C.push({skip:!0,to:"next"}));break;case"|":P||(L(q),C.push({skip:!0,to:"bar"}));break;case"~":P||(M=!0);break}P=m[q]==="\\"}var F=!1;b.forEach(function(D){if(C.length!==0){if(C[0].skip){switch(C[0].to){case"next":D.el_type==="note"&&D.pitches!==null&&!F&&C.shift();break;case"slur":D.el_type==="note"&&D.pitches!==null&&C.shift();break;case"bar":D.el_type==="bar"&&C.shift();break}D.el_type!=="bar"&&(D.lyric===void 0?D.lyric=[{syllable:"",divider:" "}]:D.lyric.push({syllable:"",divider:" "}))}else if(D.el_type==="note"&&D.rest===void 0&&!F){var $=C.shift();$.syllable&&($.syllable=$.syllable.replace(/ +/g," ")),D.lyric===void 0?D.lyric=[$]:D.lyric.push($)}}})},g=function(b,m){if(m.indexOf("")>=0){n+=m;return}if(m=n+m,n="",!b){c("Can't add symbols before the first line of music",b,0);return}m=pt.strip(m),m[m.length-1]!=="-"&&(m=m+" ");for(var C=[],_=0,M=!1,L=function(F){var D=pt.strip(m.substring(_,F));if(_=F+1,D.length>0){M&&(D=D.replace(/~/g," "));var $=m[F];return $!=="_"&&$!=="-"&&($=" "),C.push({syllable:r.translateString(D),divider:$}),M=!1,!0}return!1},P=0;P0&&(pt.last(C).divider="-",C.push({skip:!0,to:"next"}));break;case"_":L(P),C.push({skip:!0,to:"slur"});break;case"*":L(P),C.push({skip:!0,to:"next"});break;case"|":L(P),C.push({skip:!0,to:"bar"});break;case"~":M=!0;break}var q=!1;b.forEach(function(F){if(C.length!==0){if(C[0].skip)switch(C[0].to){case"next":F.el_type==="note"&&F.pitches!==null&&!q&&C.shift();break;case"slur":F.el_type==="note"&&F.pitches!==null&&C.shift();break;case"bar":F.el_type==="bar"&&C.shift();break}else if(F.el_type==="note"&&F.rest===void 0&&!q){var D=C.shift();F.lyric===void 0?F.lyric=[D]:F.lyric.push(D)}}})},v=function(b){if(pt.startsWith(b,"%%")){var m=cn.addDirective(b.substring(2));m&&c(m,b,2);return}var C=b.indexOf("%");if(C>=0&&(b=b.substring(0,C)),b=b.replace(/\s+$/,""),b.length!==0){if(a){p(t.getCurrentVoice(),b.substring(2));return}if(n){g(t.getCurrentVoice(),b.substring(2));return}if(b.length<2||b[1]!==":"||d.lineContinuation){d.parseMusic(b);return}var _=f.parseHeader(b);_.regular&&d.parseMusic(b),_.newline&&d.startNewLine(),_.words&&p(t.getCurrentVoice(),b.substring(2)),_.symbols&&g(t.getCurrentVoice(),b.substring(2))}};function y(b,m){b.push({el_type:"hint"});for(var C=0;C/g,">")},c=function(b,m,C){m||(m=" ");var _=m[C];(_===" "||!_)&&(_="SPACE");var M=u(m.substring(C-64,C))+''+_+""+u(m.substring(C+1).substring(0,64));l("Music Line:"+r.lineIndex+":"+(C+1)+": "+b+": "+M),h({message:b,line:m,startChar:o.iChar+C,column:C})},f,d;this.getWarnings=function(){return o.warnings},this.getWarningObjects=function(){return o.warningObjects};var p=function(b,m){if(m.indexOf("")>=0){a+=m;return}if(m=a+m,a="",!b){c("Can't add words before the first line of music",b,0);return}m=dt.strip(m),m[m.length-1]!=="-"&&(m=m+" ");for(var C=[],_=0,M=!1,L=function(D){var $=dt.strip(m.substring(_,D));if($=$.replace(/\\([-_*|~])/g,"$1"),_=D+1,$.length>0){M&&($=$.replace(/~/g," "));var Y=m[D];return Y!=="_"&&Y!=="-"&&(Y=" "),C.push({syllable:r.translateString($),divider:Y}),M=!1,!0}return!1},P=!1,q=0;q0&&(dt.last(C).divider="-",C.push({skip:!0,to:"next"}));break;case"_":P||(L(q),C.push({skip:!0,to:"slur"}));break;case"*":P||(L(q),C.push({skip:!0,to:"next"}));break;case"|":P||(L(q),C.push({skip:!0,to:"bar"}));break;case"~":P||(M=!0);break}P=m[q]==="\\"}var F=!1;b.forEach(function(D){if(C.length!==0){if(C[0].skip){switch(C[0].to){case"next":D.el_type==="note"&&D.pitches!==null&&!F&&C.shift();break;case"slur":D.el_type==="note"&&D.pitches!==null&&C.shift();break;case"bar":D.el_type==="bar"&&C.shift();break}D.el_type!=="bar"&&(D.lyric===void 0?D.lyric=[{syllable:"",divider:" "}]:D.lyric.push({syllable:"",divider:" "}))}else if(D.el_type==="note"&&D.rest===void 0&&!F){var $=C.shift();$.syllable&&($.syllable=$.syllable.replace(/ +/g," ")),D.lyric===void 0?D.lyric=[$]:D.lyric.push($)}}})},g=function(b,m){if(m.indexOf("")>=0){n+=m;return}if(m=n+m,n="",!b){c("Can't add symbols before the first line of music",b,0);return}m=dt.strip(m),m[m.length-1]!=="-"&&(m=m+" ");for(var C=[],_=0,M=!1,L=function(F){var D=dt.strip(m.substring(_,F));if(_=F+1,D.length>0){M&&(D=D.replace(/~/g," "));var $=m[F];return $!=="_"&&$!=="-"&&($=" "),C.push({syllable:r.translateString(D),divider:$}),M=!1,!0}return!1},P=0;P0&&(dt.last(C).divider="-",C.push({skip:!0,to:"next"}));break;case"_":L(P),C.push({skip:!0,to:"slur"});break;case"*":L(P),C.push({skip:!0,to:"next"});break;case"|":L(P),C.push({skip:!0,to:"bar"});break;case"~":M=!0;break}var q=!1;b.forEach(function(F){if(C.length!==0){if(C[0].skip)switch(C[0].to){case"next":F.el_type==="note"&&F.pitches!==null&&!q&&C.shift();break;case"slur":F.el_type==="note"&&F.pitches!==null&&C.shift();break;case"bar":F.el_type==="bar"&&C.shift();break}else if(F.el_type==="note"&&F.rest===void 0&&!q){var D=C.shift();F.lyric===void 0?F.lyric=[D]:F.lyric.push(D)}}})},v=function(b){if(dt.startsWith(b,"%%")){var m=cn.addDirective(b.substring(2));m&&c(m,b,2);return}var C=b.indexOf("%");if(C>=0&&(b=b.substring(0,C)),b=b.replace(/\s+$/,""),b.length!==0){if(a){p(t.getCurrentVoice(),b.substring(2));return}if(n){g(t.getCurrentVoice(),b.substring(2));return}if(b.length<2||b[1]!==":"||d.lineContinuation){d.parseMusic(b);return}var _=f.parseHeader(b);_.regular&&d.parseMusic(b),_.newline&&d.startNewLine(),_.words&&p(t.getCurrentVoice(),b.substring(2)),_.symbols&&g(t.getCurrentVoice(),b.substring(2))}};function y(b,m){b.push({el_type:"hint"});for(var C=0;C1){for(var M=1;M<_.length;M++)for(;_[M].length>0&&_[M][0]!==` -`;)_[M]=_[M].substr(1),_[M-1]+=" ";b=_.join(" ")}b=b.replace(/\\([ \t]*)(%.*)*\n/g,function(R,x,T){var S=T?Array(T.length+1).join(" "):"";return x+""+S+` +`;)_[M]=_[M].substr(1),_[M-1]+=" ";b=_.join(" ")}b=b.replace(/\\([ \t]*)(%.*)*\n/g,function(Y,x,T){var S=T?Array(T.length+1).join(" "):"";return x+""+S+` `});var L=b.split(` -`);pt.last(L).length===0&&L.pop(),r=new Vc(L,o),f=new Uc(r,c,o,e,t),d=new Xc(r,c,o,e,t,f),m.print&&(e.media="print"),o.reset(),o.iChar=C,m.visualTranspose?(o.globalTranspose=parseInt(m.visualTranspose),o.globalTranspose===0?o.globalTranspose=void 0:t.setVisualTranspose(m.visualTranspose)):o.globalTranspose=void 0,m.lineBreaks&&(o.lineBreaks=m.lineBreaks),f.reset(r,c,o,e);try{m.format&&cn.globalFormatting(m.format);for(var P=r.nextLine();P;){if(m.header_only&&o.is_in_header===!1||m.stop_on_warning&&o.warnings)throw"normal_abort";var q=o.is_in_header;v(P),q&&!o.is_in_header&&(t.setRunningFont("annotationfont",o.annotationfont),t.setRunningFont("gchordfont",o.gchordfont),t.setRunningFont("tripletfont",o.tripletfont),t.setRunningFont("vocalfont",o.vocalfont)),P=r.nextLine()}a&&p(t.getCurrentVoice(),""),n&&g(t.getCurrentVoice(),""),o.openSlurs=t.cleanUp(o.barsperstaff,o.staffnonote,o.openSlurs)}catch(R){if(R!=="normal_abort")throw R}var F=11*72,D=8.5*72;switch(o.papersize){case"legal":F=14*72,D=8.5*72;break;case"A4":F=11.7*72,D=8.3*72;break}if(o.landscape){var $=F;F=D,D=$}e.formatting.pagewidth||(e.formatting.pagewidth=D),e.formatting.pageheight||(e.formatting.pageheight=F),m.hint_measures&&k(),jc.wrapLines(e,o.lineBreaks,o.barNumbers)}},Mi=Jc,b0=Fe,Zc=function(e){var t="",r=e.match(/(\s*)/);e=b0.strip(e);for(var a=e.split(` -X:`),n=1;n1&&!b0.startsWith(s[0].abc,"X:")){var o=s.shift(),l=o.abc.split(` -`);l.forEach(function(u){b0.startsWith(u,"%%")&&(t+=u+` +`);dt.last(L).length===0&&L.pop(),r=new Uc(L,o),f=new Rc(r,c,o,e,t),d=new Wc(r,c,o,e,t,f),m.print&&(e.media="print"),o.reset(),o.iChar=C,m.visualTranspose?(o.globalTranspose=parseInt(m.visualTranspose),o.globalTranspose===0?o.globalTranspose=void 0:t.setVisualTranspose(m.visualTranspose)):o.globalTranspose=void 0,m.lineBreaks&&(o.lineBreaks=m.lineBreaks),f.reset(r,c,o,e);try{m.format&&cn.globalFormatting(m.format);for(var P=r.nextLine();P;){if(m.header_only&&o.is_in_header===!1||m.stop_on_warning&&o.warnings)throw"normal_abort";var q=o.is_in_header;v(P),q&&!o.is_in_header&&(t.setRunningFont("annotationfont",o.annotationfont),t.setRunningFont("gchordfont",o.gchordfont),t.setRunningFont("tripletfont",o.tripletfont),t.setRunningFont("vocalfont",o.vocalfont)),P=r.nextLine()}a&&p(t.getCurrentVoice(),""),n&&g(t.getCurrentVoice(),""),o.openSlurs=t.cleanUp(o.barsperstaff,o.staffnonote,o.openSlurs)}catch(Y){if(Y!=="normal_abort")throw Y}var F=11*72,D=8.5*72;switch(o.papersize){case"legal":F=14*72,D=8.5*72;break;case"A4":F=11.7*72,D=8.3*72;break}if(o.landscape){var $=F;F=D,D=$}e.formatting.pagewidth||(e.formatting.pagewidth=D),e.formatting.pageheight||(e.formatting.pageheight=F),m.hint_measures&&k(),Xc.wrapLines(e,o.lineBreaks,o.barNumbers)}},Mi=Kc,g0=Fe,Qc=function(e){var t="",r=e.match(/(\s*)/);e=g0.strip(e);for(var a=e.split(` +X:`),n=1;n1&&!g0.startsWith(s[0].abc,"X:")){var o=s.shift(),l=o.abc.split(` +`);l.forEach(function(u){g0.startsWith(u,"%%")&&(t+=u+` `)})}var h=t;return s.forEach(function(u){var c=u.abc.indexOf(` `);c>0&&(u.abc=u.abc.substring(0,c)),u.pure=u.abc,u.abc=t+u.abc,u.title="";var f=u.pure.split("T:");f.length>1&&(f=f[1].split(` -`),u.title=b0.strip(f[0]));var d=u.pure.substring(2,u.pure.indexOf(` -`));u.id=b0.strip(d)}),{header:h,tunes:s}},e1=Zc;function ua(e,t){this.numLines=e,this.lineSpace=t,this.verticalSize=this.numLines*this.lineSpace;var r=3;this.bar={pitch:r,pitch2:t*e,height:5}}ua.prototype.bypass=function(e){var t=e.staffGroup.voices;return!!(t.length>0&&t[0].isPercussion)};ua.prototype.setRelative=function(e,t,r){switch(e.type){case"bar":t.pitch=this.bar.pitch,t.pitch2=this.bar.pitch2,t.height=this.height;break;case"symbol":var a=this.bar.pitch2/2;if(e.name=="dots.dot")return r?(t.pitch=a,!1):(t.pitch=a+this.lineSpace,!0);break}return r};var t1=ua;function Ni(e,t,r){this.tune=e,this.params=r,this.tuneNumber=t,this.inError=!1}Ni.prototype.setError=function(e){var t=this.tune;e&&(this.error=e,this.inError=!0,t.warnings?t.warnings.push(e):t.warnings=[e])};var r1=Ni,Tt=function(t,r){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=t,this.voicetotal=r,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}};Tt.prototype.addChild=function(e){if(e.type==="bar"){for(var t=!0,r=0;t&&r0&&(o.length>0&&o[o.length-1]!==" "&&(o+=" "),o+=t),i.setAttribute("class",o)}},da=a1,n1=da,i1=function(e,t){e===void 0&&(e="abcjs-note_selected"),t===void 0&&(t="#ff0000"),n1(this.elemset,e,"",t)},Li=i1,s1=da,o1=function(e,t){e===void 0&&(e="abcjs-note_selected"),t===void 0&&(t="#000000"),s1(this.elemset,"",e,t)},Pi=o1,c1=Li,l1=Pi,Se=function(t,r,a,n,i,s){s||(s={}),this.tuneNumber=i,this.abcelem=t,this.duration=r,this.durationClass=s.durationClassOveride?s.durationClassOveride:this.duration,this.minspacing=a||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.fixed={w:0,t:void 0,b:void 0},this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};Se.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}};Se.prototype.addExtra=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),this.fixed.t===void 0?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top),this.fixed.b===void 0?this.fixed.b=e.bottom:this.fixed.b=Math.min(this.fixed.b,e.bottom),e.dxthis.w&&(this.w=e.dx+e.w),this.right[this.right.length]=e,this._addChild(e)};Se.prototype.addFixed=function(e){this._addChild(e)};Se.prototype.addFixedX=function(e){this._addChild(e)};Se.prototype.addCentered=function(e){var t=e.w/2;-tthis.w&&(this.w=e.dx+t),this.right[this.right.length]=e,this._addChild(e)};Se.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])};Se.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)};Se.prototype.pushTop=function(e){e!==void 0&&(this.top===void 0?this.top=e:this.top=Math.max(e,this.top))};Se.prototype.pushBottom=function(e){e!==void 0&&(this.bottom===void 0?this.bottom=e:this.bottom=Math.min(e,this.bottom))};Se.prototype.setX=function(e){this.x=e;for(var t=0;tthis.top&&(this.top=this.pitch2),this.bottom=n,this.pitch2!==void 0&&this.pitch20?this.top+=i.stemHeight:this.bottom+=i.stemHeight),i.dim&&(this.dim=i.dim),i.position&&(this.position=i.position),this.height=i.height?i.height:4,i.top&&(this.top=i.top),i.bottom&&(this.bottom=i.bottom),i.name?this.name=i.name:this.c?this.name=this.c:this.name=this.type,i.realWidth?this.realWidth=i.realWidth:this.realWidth=this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":i.position&&i.position==="below"?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":i.position&&i.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":this.pitch===void 0?i.position&&i.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height;break}};i0.prototype.getChordDim=function(){if(this.type==="debug"||!this.chordHeightAbove&&!this.chordHeightBelow)return null;var e=0,t=this.type==="chord"?this.realWidth/2:0,r=this.x-t-e,a=r+this.realWidth+e;return{left:r,right:a}};i0.prototype.invertLane=function(e){this.lane===void 0&&(this.lane=0),this.lane=e-this.lane-1};i0.prototype.putChordInLane=function(e){this.lane=e,this.chordHeightAbove?this.chordHeightAbove=this.height*1.25*this.lane:this.chordHeightBelow=this.height*1.25*this.lane};i0.prototype.getLane=function(){return this.lane===void 0?0:this.lane};i0.prototype.setX=function(e){this.x=e+this.dx};var ft=i0,Di=n0,pa=ft;function f1(e){return e!=null&&e.constructor===Object}function jr(e,t){for(var r in t)t.hasOwnProperty(r)&&(Array.isArray(t[r])||f1(t[r])||(e[r]=t[r]))}function Fi(e){var t=new Di("",0,0,"",0);return jr(t,e),t.top=0,t.bottom=-1,e.abcelem&&(t.abcelem={},jr(t.abcelem,e.abcelem),t.abcelem.el_type==="note"&&(t.abcelem.el_type="tabNumber")),e.cloned=t,t}function h1(e,t){var r=Fi(e);if(t)for(var a=e.children,n=!0,i=0;i=0){if(r===t)return e.extra[a].x+e.extra[a].w/2;r++}}return-1}function g1(e){if(e.abcelem){var t=e.abcelem;if(t.rest)return t.gracenotes}return null}function ln(e,t,r){var a=e.semantics.notesToNumber(t,r);if(a.error)return e._super.setError(a.error),a;if(a.graces&&a.notes){var n=a.notes.length-1;a.notes[n].graces=a.graces}return a}function v1(e,t,r,a,n){for(var i=0;i=0&&(e.semantics.strings.clefTranspose=-12),f.abcelem.type.indexOf("+8")>=0&&(e.semantics.strings.clefTranspose=12)),f.type){case"staff-extra key-signature":this.accidentals=f.abcelem.accidentals,e.semantics.strings.accidentals=this.accidentals;break;case"bar":e.semantics.strings.measureAccidentals={};var g=!1;c===o.children.length-1&&(g=!0);var v=h1(f,e);if(v.abcelem.barNumber){delete v.abcelem.barNumber;for(var y=0;y0&&(u.abselem=k,r.push(u),l.children.push(k));break}}};var b1=$i,m1=Bi,y1=b1,w1=$e;function x1(){return{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}}function C1(e){for(var t=0,r=0;rt&&(t=a.specialY.lyricHeightBelow)}return t}function k1(e,t){var r=e.plugin.semantics.strings,a=e.renderer.controller,n=a.getTextSize,i=r.tabInfos(e.plugin),s=r.suppress(e.plugin),o=!0;if(s&&(o=!1),o){var l=n.calc(i,"tablabelfont","text instrumentname");return t.tabNameInfos={textSize:{height:l.height,width:l.width},name:i},l.height}return 0}function Oi(e,t,r,a){this.renderer=t,this.plugin=e,this.line=r,this.absolutes=new y1,this.staffIndex=a,this.tabStaff={clef:{type:"TAB"}},this.tabSize=e.linePitch*e.nbLines}function T1(e,t){return t[e].isTabStaff?e===t.length-1?!0:!t[e+1].isTabStaff:!1}function _1(e){for(var t=0,r=0;r=0;r--)if(!e[r].isTabStaff)return r;return-1}function E1(e){for(var t=0;t1}function M1(e,t){for(var r=e.staffIndex,a=0,n=0,i=!0,s=0;i;){if(!t[a])return-1;if(t[a].isTabStaff||(s=t[a].voices.length),t[a].isTabStaff){if(n++,T1(a,t)&&n=r&&(a+1==t.length||!t[a+1].isTabStaff))return a+1;if(a++,a>t.length)return-1}}function N1(e,t){for(var r=t;r>=0;r--)if(!e[r].isTabStaff)return e[r];return null}function B1(e,t){var r=e[t],a=r.children[0].abcelem;return a.el_type==="clef"?null:t==0?"none":e[t-1].children[0]}Oi.prototype.doLayout=function(){var e=this.line.staff;if(e){var t=e[0];if(t&&t.clef&&t.clef.stafflines==0){this.plugin._super.setError("No tablatures when stafflines=0");return}e.splice(e.length,0,this.tabStaff)}var r=this.line.staffGroup,a=r.voices,n=a[0],i=C1(n),s=3,o=this.staffIndex,l=r.staffs[o],h=this.tabSize+s-l.bottom-i;l.isTabStaff&&(h=l.top);var u={bottom:-1,isTabStaff:!0,specialY:x1(),lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:h},c=M1(this,r.staffs);if(c!==-1){u.parentIndex=c-1,r.staffs.splice(c,0,u),r.height+=this.tabSize+s;var f=N1(r.staffs,c),d=1;A1(r.staffs,f)&&(d=f.voices.length),this.tabStaff.voices=[];for(var p=0;p0&&(g.duplicate=!0);var v=k1(this,g)/w1.STEP;v=Math.max(v,1),r.staffs[this.staffIndex].top+=1,r.height+=v,g.staff=u;var y=a.length;a.splice(a.length,0,g);var w=B1(a,p+this.staffIndex);this.tabStaff.voices[p]=[],this.absolutes.build(this.plugin,a,this.tabStaff.voices[p],p,this.staffIndex,w,y)}E1(r.staffs)}};var L1=Oi,P1={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},Qr=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];function D1(e){var t=e.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(t&&t.length===5){var r=P1[t[1]],a=Qr.indexOf(t[2]),n=t[4].length-t[3].length;return 48+a+r+n*12}return 0}function F1(e){e=parseInt(e,10);var t=Math.floor(e/12),r=e%12,a=Qr[r];if(a==="-"&&(a="^"+Qr[r-1]),t>4)for(a=a.toLowerCase(),t-=5;t>0;)a+="'",t--;else for(;t<4;)a+=",",t++;return a}var zi={noteToMidi:D1,midiToNote:F1},{noteToMidi:$1,midiToNote:ga}=zi,I1=["A","B","C","D","E","F","G"];function We(e,t){var r=$1(e);t&&(r+=t);var a=ga(r),n=!1,i=!1,s=!1,o=null,l=null,h=!1,u=0;e.startsWith("_")?(n=!0,u=-1,e[1]=="/"?(n=!1,l="v",u=0):e[1]=="_"&&(h=!0,u-=1)):e.startsWith("^")?(i=!0,u=1,e[1]=="/"?(i=!1,l="^",u=0):e[1]=="^"&&(h=!0,u+=1)):e.startsWith("=")&&(o=!0,u=0),s=n||i||l!=null,(s||o)&&(l!=null||h?a=e.slice(2):a=e.slice(1));var c=(a.match(/,/g)||[]).length,f=(a.match(/'/g)||[]).length;this.pitch=r,this.pitchAltered=0,this.name=a,this.acc=u,this.isSharp=i,this.isKeySharp=!1,this.isDouble=h,this.isAltered=s,this.isFlat=n,this.isKeyFlat=!1,this.natural=o,this.quarter=l,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=c,this.isQuoted=f}function O1(e){var t=e.name,r=new We(t);return r.pitch=e.pitch,r.hasComma=e.hasComma,r.isLower=e.isLower,r.isQuoted=e.isQuoted,r.isSharp=e.isSharp,r.isKeySharp=e.isKeySharp,r.isFlat=e.isFlat,r.isKeyFlat=e.isKeyFlat,r}We.prototype.sameNoteAs=function(e){return e.pitch===this.pitch};We.prototype.isLowerThan=function(e){return e.pitch>this.pitch};We.prototype.checkKeyAccidentals=function(e,t){if(!(this.isAltered||this.natural)){if(t[this.name.toUpperCase()])switch(t[this.name.toUpperCase()]){case"__":this.acc=-2,this.pitchAltered=-2;return;case"_":this.acc=-1,this.pitchAltered=-1;return;case"=":this.acc=0,this.pitchAltered=0;return;case"^":this.acc=1,this.pitchAltered=1;return;case"^^":this.acc=2,this.pitchAltered=2;return}else if(e)for(var r=this.name,a=0;a0){t=[];for(var a=0;a0&&(r=e.capoTuning);for(var a=r.length-1,n=0;n=0;a--)if(t.pitch+t.pitchAltered>=e.stringPitches[a]){var n=t.pitch+t.pitchAltered-e.stringPitches[a];return t.quarter==="^"?n-=.5:t.quarter==="v"&&(n+=.5),{num:Math.round(n),str:e.stringPitches.length-1-a,note:t}}return{num:"?",str:e.stringPitches.length-1,note:t}}s0.prototype.stringToPitch=function(e){var t=5.3,r=this.strings.length-1;return t+(r-e)*this.linePitch};function un(e,t){var r={num:"?",str:0,note:t};e.push(r),e.error=t.emit()+": unexpected note for instrument"}s0.prototype.notesToNumber=function(e,t){var r,a,n=null,i=null;if(e&&(i=[],e.length>1?(i=U1(this,e),i.error&&(n=i.error)):e[0].endTie||(r=new hr.TabNote(e[0].name,this.clefTranspose),r.checkKeyAccidentals(this.accidentals,this.measureAccidentals),a=Zr(this,r),a?i.push(a):(un(i,r),n=i.error))),n)return i;var s=null;if(t){s=[];for(var o=0;o0&&(n+=" capo:"+e.capo),r=r.replace("%T",n)),r}return""};s0.prototype.suppress=function(e){var t=e._super,r=t.params.suppress;return!!r};function s0(e){var t=e.tuning,r=e.capo,a=e._super.params.highestNote;this.linePitch=e.linePitch,this.highestNote="a'",a&&(this.highestNote=a),this.measureAccidentals={},this.capo=0,r&&(this.capo=parseInt(r,10)),this.transpose=e.transpose?e.transpose:0,this.tuning=t,this.stringPitches=[];for(var n=0;n0&&(this.capoTuning=Y1(this)),this.strings=R1(this),this.strings.error){e._super.setError(this.strings.error),e.inError=!0;return}this.secondPos=G1(this)}var X1=s0,V1=X1;function va(e,t){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=t),e.tuning=this.tuning,this.strings=new V1(e)}va.prototype.notesToNumber=function(e,t){var r=this.strings;return r.notesToNumber(e,t)};va.prototype.stringToPitch=function(e){var t=this.strings;return t.stringToPitch(e)};var j1=va,K1=t1,Q1=r1,J1=L1,Z1=j1;ba.prototype.init=function(e,t,r,a,n){var i=new Q1(e,t,r);this.abcTune=e,this._super=i,this.linePitch=3,this.nbLines=n.defaultTuning.length,this.isTabBig=n.isTabBig,this.tabSymbolOffset=n.tabSymbolOffset,this.capo=r.capo,this.transpose=r.visualTranspose,this.hideTabSymbol=r.hideTabSymbol,this.tablature=new K1(this.nbLines,this.linePitch);var s=new Z1(this,n.defaultTuning);this.semantics=s};ba.prototype.render=function(e,t,r){if(!this._super.inError&&!this.tablature.bypass(t)){var a=new J1(this,e,t,r);a.doLayout()}};function ba(){}var el=function(){return{name:"StringTab",tablature:ba}},tl=el,rl=tl,al={violin:{name:"StringTab",defaultTuning:["G,","D","A","e"],isTabBig:!1,tabSymbolOffset:0},fiddle:{name:"StringTab",defaultTuning:["G,","D","A","e"],isTabBig:!1,tabSymbolOffset:0},mandolin:{name:"StringTab",defaultTuning:["G,","D","A","e"],isTabBig:!1,tabSymbolOffset:0},guitar:{name:"StringTab",defaultTuning:["E,","A,","D","G","B","e"],isTabBig:!0,tabSymbolOffset:0},fiveString:{name:"StringTab",defaultTuning:["C,","G,","D","A","e"],isTabBig:!1,tabSymbolOffset:-.95}},nl={inited:!1,plugins:{},register:function(e){var t=e.name,r=e.tablature;this.plugins[t]=r},setError:function(e,t){e.warnings?e.warning.push(t):e.warnings=[t]},preparePlugins:function(e,t,r){var a=null;if(r.tablature){var n=r.tablature;a=[];for(var i=0;i0)for(var i=a.length,s=0;s1&&a&&a.length>0)for(var i=a.length,s=0;s=0&&o0&&t[0].isPercussion)};ua.prototype.setRelative=function(e,t,r){switch(e.type){case"bar":t.pitch=this.bar.pitch,t.pitch2=this.bar.pitch2,t.height=this.height;break;case"symbol":var a=this.bar.pitch2/2;if(e.name=="dots.dot")return r?(t.pitch=a,!1):(t.pitch=a+this.lineSpace,!0);break}return r};var Zc=ua;function Ni(e,t,r){this.tune=e,this.params=r,this.tuneNumber=t,this.inError=!1}Ni.prototype.setError=function(e){var t=this.tune;e&&(this.error=e,this.inError=!0,t.warnings?t.warnings.push(e):t.warnings=[e])};var e1=Ni,Tt=function(t,r){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=t,this.voicetotal=r,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}};Tt.prototype.addChild=function(e){if(e.type==="bar"){for(var t=!0,r=0;t&&r0&&(o.length>0&&o[o.length-1]!==" "&&(o+=" "),o+=t),i.setAttribute("class",o)}},da=t1,r1=da,a1=function(e,t){e===void 0&&(e="abcjs-note_selected"),t===void 0&&(t="#ff0000"),r1(this.elemset,e,"",t)},Li=a1,n1=da,i1=function(e,t){e===void 0&&(e="abcjs-note_selected"),t===void 0&&(t="#000000"),n1(this.elemset,"",e,t)},Pi=i1,s1=Li,o1=Pi,Se=function(t,r,a,n,i,s){s||(s={}),this.tuneNumber=i,this.abcelem=t,this.duration=r,this.durationClass=s.durationClassOveride?s.durationClassOveride:this.duration,this.minspacing=a||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.fixed={w:0,t:void 0,b:void 0},this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};Se.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}};Se.prototype.addExtra=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),this.fixed.t===void 0?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top),this.fixed.b===void 0?this.fixed.b=e.bottom:this.fixed.b=Math.min(this.fixed.b,e.bottom),e.dxthis.w&&(this.w=e.dx+e.w),this.right[this.right.length]=e,this._addChild(e)};Se.prototype.addFixed=function(e){this._addChild(e)};Se.prototype.addFixedX=function(e){this._addChild(e)};Se.prototype.addCentered=function(e){var t=e.w/2;-tthis.w&&(this.w=e.dx+t),this.right[this.right.length]=e,this._addChild(e)};Se.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])};Se.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)};Se.prototype.pushTop=function(e){e!==void 0&&(this.top===void 0?this.top=e:this.top=Math.max(e,this.top))};Se.prototype.pushBottom=function(e){e!==void 0&&(this.bottom===void 0?this.bottom=e:this.bottom=Math.min(e,this.bottom))};Se.prototype.setX=function(e){this.x=e;for(var t=0;tthis.top&&(this.top=this.pitch2),this.bottom=n,this.pitch2!==void 0&&this.pitch20?this.top+=i.stemHeight:this.bottom+=i.stemHeight),i.dim&&(this.dim=i.dim),i.position&&(this.position=i.position),this.height=i.height?i.height:4,i.top&&(this.top=i.top),i.bottom&&(this.bottom=i.bottom),i.name?this.name=i.name:this.c?this.name=this.c:this.name=this.type,i.realWidth?this.realWidth=i.realWidth:this.realWidth=this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":i.position&&i.position==="below"?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":i.position&&i.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":this.pitch===void 0?i.position&&i.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height;break}};a0.prototype.getChordDim=function(){if(this.type==="debug"||!this.chordHeightAbove&&!this.chordHeightBelow)return null;var e=0,t=this.type==="chord"?this.realWidth/2:0,r=this.x-t-e,a=r+this.realWidth+e;return{left:r,right:a}};a0.prototype.invertLane=function(e){this.lane===void 0&&(this.lane=0),this.lane=e-this.lane-1};a0.prototype.putChordInLane=function(e){this.lane=e,this.chordHeightAbove?this.chordHeightAbove=this.height*1.25*this.lane:this.chordHeightBelow=this.height*1.25*this.lane};a0.prototype.getLane=function(){return this.lane===void 0?0:this.lane};a0.prototype.setX=function(e){this.x=e+this.dx};var lt=a0,Di=r0,pa=lt;function c1(e){return e!=null&&e.constructor===Object}function jr(e,t){for(var r in t)t.hasOwnProperty(r)&&(Array.isArray(t[r])||c1(t[r])||(e[r]=t[r]))}function Fi(e){var t=new Di("",0,0,"",0);return jr(t,e),t.top=0,t.bottom=-1,e.abcelem&&(t.abcelem={},jr(t.abcelem,e.abcelem),t.abcelem.el_type==="note"&&(t.abcelem.el_type="tabNumber")),e.cloned=t,t}function l1(e,t){var r=Fi(e);if(t)for(var a=e.children,n=!0,i=0;i=0){if(r===t)return e.extra[a].x+e.extra[a].w/2;r++}}return-1}function d1(e){if(e.abcelem){var t=e.abcelem;if(t.rest)return t.gracenotes}return null}function ln(e,t,r){var a=e.semantics.notesToNumber(t,r);if(a.error)return e._super.setError(a.error),a;if(a.graces&&a.notes){var n=a.notes.length-1;a.notes[n].graces=a.graces}return a}function p1(e,t,r,a,n){for(var i=0;i=0&&(e.semantics.strings.clefTranspose=-12),f.abcelem.type.indexOf("+8")>=0&&(e.semantics.strings.clefTranspose=12)),f.type){case"staff-extra key-signature":this.accidentals=f.abcelem.accidentals,e.semantics.strings.accidentals=this.accidentals;break;case"bar":e.semantics.strings.measureAccidentals={};var g=!1;c===o.children.length-1&&(g=!0);var v=l1(f,e);if(v.abcelem.barNumber){delete v.abcelem.barNumber;for(var y=0;y0&&(u.abselem=k,r.push(u),l.children.push(k));break}}};var g1=$i,v1=Bi,b1=g1,m1=$e;function y1(){return{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}}function w1(e){for(var t=0,r=0;rt&&(t=a.specialY.lyricHeightBelow)}return t}function x1(e,t){var r=e.plugin.semantics.strings,a=e.renderer.controller,n=a.getTextSize,i=r.tabInfos(e.plugin),s=r.suppress(e.plugin),o=!0;if(s&&(o=!1),o){var l=n.calc(i,"tablabelfont","text instrumentname");return t.tabNameInfos={textSize:{height:l.height,width:l.width},name:i},l.height}return 0}function Oi(e,t,r,a){this.renderer=t,this.plugin=e,this.line=r,this.absolutes=new b1,this.staffIndex=a,this.tabStaff={clef:{type:"TAB"}},this.tabSize=e.linePitch*e.nbLines}function C1(e,t){return t[e].isTabStaff?e===t.length-1?!0:!t[e+1].isTabStaff:!1}function k1(e){for(var t=0,r=0;r=0;r--)if(!e[r].isTabStaff)return r;return-1}function _1(e){for(var t=0;t1}function E1(e,t){for(var r=e.staffIndex,a=0,n=0,i=!0,s=0;i;){if(!t[a])return-1;if(t[a].isTabStaff||(s=t[a].voices.length),t[a].isTabStaff){if(n++,C1(a,t)&&n=r&&(a+1==t.length||!t[a+1].isTabStaff))return a+1;if(a++,a>t.length)return-1}}function A1(e,t){for(var r=t;r>=0;r--)if(!e[r].isTabStaff)return e[r];return null}function M1(e,t){var r=e[t],a=r.children[0].abcelem;return a.el_type==="clef"?null:t==0?"none":e[t-1].children[0]}Oi.prototype.doLayout=function(){var e=this.line.staff;if(e){var t=e[0];if(t&&t.clef&&t.clef.stafflines==0){this.plugin._super.setError("No tablatures when stafflines=0");return}e.splice(e.length,0,this.tabStaff)}var r=this.line.staffGroup,a=r.voices,n=a[0],i=w1(n),s=3,o=this.staffIndex,l=r.staffs[o],h=this.tabSize+s-l.bottom-i;l.isTabStaff&&(h=l.top);var u={bottom:-1,isTabStaff:!0,specialY:y1(),lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:h},c=E1(this,r.staffs);if(c!==-1){u.parentIndex=c-1,r.staffs.splice(c,0,u),r.height+=this.tabSize+s;var f=A1(r.staffs,c),d=1;S1(r.staffs,f)&&(d=f.voices.length),this.tabStaff.voices=[];for(var p=0;p0&&(g.duplicate=!0);var v=x1(this,g)/m1.STEP;v=Math.max(v,1),r.staffs[this.staffIndex].top+=1,r.height+=v,g.staff=u;var y=a.length;a.splice(a.length,0,g);var w=M1(a,p+this.staffIndex);this.tabStaff.voices[p]=[],this.absolutes.build(this.plugin,a,this.tabStaff.voices[p],p,this.staffIndex,w,y)}_1(r.staffs)}};var N1=Oi,B1={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},Qr=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];function L1(e){var t=e.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(t&&t.length===5){var r=B1[t[1]],a=Qr.indexOf(t[2]),n=t[4].length-t[3].length;return 48+a+r+n*12}return 0}function P1(e){e=parseInt(e,10);var t=Math.floor(e/12),r=e%12,a=Qr[r];if(a==="-"&&(a="^"+Qr[r-1]),t>4)for(a=a.toLowerCase(),t-=5;t>0;)a+="'",t--;else for(;t<4;)a+=",",t++;return a}var Hi={noteToMidi:L1,midiToNote:P1},{noteToMidi:D1,midiToNote:ga}=Hi,F1=["A","B","C","D","E","F","G"];function We(e,t){var r=D1(e);t&&(r+=t);var a=ga(r),n=!1,i=!1,s=!1,o=null,l=null,h=!1,u=0;e.startsWith("_")?(n=!0,u=-1,e[1]=="/"?(n=!1,l="v",u=0):e[1]=="_"&&(h=!0,u-=1)):e.startsWith("^")?(i=!0,u=1,e[1]=="/"?(i=!1,l="^",u=0):e[1]=="^"&&(h=!0,u+=1)):e.startsWith("=")&&(o=!0,u=0),s=n||i||l!=null,(s||o)&&(l!=null||h?a=e.slice(2):a=e.slice(1));var c=(a.match(/,/g)||[]).length,f=(a.match(/'/g)||[]).length;this.pitch=r,this.pitchAltered=0,this.name=a,this.acc=u,this.isSharp=i,this.isKeySharp=!1,this.isDouble=h,this.isAltered=s,this.isFlat=n,this.isKeyFlat=!1,this.natural=o,this.quarter=l,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=c,this.isQuoted=f}function $1(e){var t=e.name,r=new We(t);return r.pitch=e.pitch,r.hasComma=e.hasComma,r.isLower=e.isLower,r.isQuoted=e.isQuoted,r.isSharp=e.isSharp,r.isKeySharp=e.isKeySharp,r.isFlat=e.isFlat,r.isKeyFlat=e.isKeyFlat,r}We.prototype.sameNoteAs=function(e){return e.pitch===this.pitch};We.prototype.isLowerThan=function(e){return e.pitch>this.pitch};We.prototype.checkKeyAccidentals=function(e,t){if(!(this.isAltered||this.natural)){if(t[this.name.toUpperCase()])switch(t[this.name.toUpperCase()]){case"__":this.acc=-2,this.pitchAltered=-2;return;case"_":this.acc=-1,this.pitchAltered=-1;return;case"=":this.acc=0,this.pitchAltered=0;return;case"^":this.acc=1,this.pitchAltered=1;return;case"^^":this.acc=2,this.pitchAltered=2;return}else if(e)for(var r=this.name,a=0;a0){t=[];for(var a=0;a0&&(r=e.capoTuning);for(var a=r.length-1,n=0;n=0;a--)if(t.pitch+t.pitchAltered>=e.stringPitches[a]){var n=t.pitch+t.pitchAltered-e.stringPitches[a];return t.quarter==="^"?n-=.5:t.quarter==="v"&&(n+=.5),{num:Math.round(n),str:e.stringPitches.length-1-a,note:t}}return{num:"?",str:e.stringPitches.length-1,note:t}}n0.prototype.stringToPitch=function(e){var t=5.3,r=this.strings.length-1;return t+(r-e)*this.linePitch};function un(e,t){var r={num:"?",str:0,note:t};e.push(r),e.error=t.emit()+": unexpected note for instrument"}n0.prototype.notesToNumber=function(e,t){var r,a,n=null,i=null;if(e&&(i=[],e.length>1?(i=R1(this,e),i.error&&(n=i.error)):e[0].endTie||(r=new hr.TabNote(e[0].name,this.clefTranspose),r.checkKeyAccidentals(this.accidentals,this.measureAccidentals),a=Zr(this,r),a?i.push(a):(un(i,r),n=i.error))),n)return i;var s=null;if(t){s=[];for(var o=0;o0&&(n+=" capo:"+e.capo),r=r.replace("%T",n)),r}return""};n0.prototype.suppress=function(e){var t=e._super,r=t.params.suppress;return!!r};function n0(e){var t=e.tuning,r=e.capo,a=e._super.params.highestNote;this.linePitch=e.linePitch,this.highestNote="a'",a&&(this.highestNote=a),this.measureAccidentals={},this.capo=0,r&&(this.capo=parseInt(r,10)),this.transpose=e.transpose?e.transpose:0,this.tuning=t,this.stringPitches=[];for(var n=0;n0&&(this.capoTuning=z1(this)),this.strings=q1(this),this.strings.error){e._super.setError(this.strings.error),e.inError=!0;return}this.secondPos=G1(this)}var W1=n0,U1=W1;function va(e,t){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=t),e.tuning=this.tuning,this.strings=new U1(e)}va.prototype.notesToNumber=function(e,t){var r=this.strings;return r.notesToNumber(e,t)};va.prototype.stringToPitch=function(e){var t=this.strings;return t.stringToPitch(e)};var X1=va,V1=Zc,j1=e1,K1=N1,Q1=X1;ba.prototype.init=function(e,t,r,a,n){var i=new j1(e,t,r);this.abcTune=e,this._super=i,this.linePitch=3,this.nbLines=n.defaultTuning.length,this.isTabBig=n.isTabBig,this.tabSymbolOffset=n.tabSymbolOffset,this.capo=r.capo,this.transpose=r.visualTranspose,this.hideTabSymbol=r.hideTabSymbol,this.tablature=new V1(this.nbLines,this.linePitch);var s=new Q1(this,n.defaultTuning);this.semantics=s};ba.prototype.render=function(e,t,r){if(!this._super.inError&&!this.tablature.bypass(t)){var a=new K1(this,e,t,r);a.doLayout()}};function ba(){}var J1=function(){return{name:"StringTab",tablature:ba}},Z1=J1,el=Z1,tl={violin:{name:"StringTab",defaultTuning:["G,","D","A","e"],isTabBig:!1,tabSymbolOffset:0},fiddle:{name:"StringTab",defaultTuning:["G,","D","A","e"],isTabBig:!1,tabSymbolOffset:0},mandolin:{name:"StringTab",defaultTuning:["G,","D","A","e"],isTabBig:!1,tabSymbolOffset:0},guitar:{name:"StringTab",defaultTuning:["E,","A,","D","G","B","e"],isTabBig:!0,tabSymbolOffset:0},fiveString:{name:"StringTab",defaultTuning:["C,","G,","D","A","e"],isTabBig:!1,tabSymbolOffset:-.95}},rl={inited:!1,plugins:{},register:function(e){var t=e.name,r=e.tablature;this.plugins[t]=r},setError:function(e,t){e.warnings?e.warning.push(t):e.warnings=[t]},preparePlugins:function(e,t,r){var a=null;if(r.tablature){var n=r.tablature;a=[];for(var i=0;i0)for(var i=a.length,s=0;s1&&a&&a.length>0)for(var i=a.length,s=0;s=0&&o0,v=0;v=0&&(c=_.startChar,_.chord===void 0?u=h:u=null),_.chord&&(h=_),_.el_type==="bar"){if(d){var M=i.abc.substring(c,_.endChar),L={abc:M};h=u&&u.chord&&u.chord.length>0?u.chord[0].name:null,h&&(L.lastChord=h),_.startEnding&&(L.startEnding=_.startEnding),_.endEnding&&(L.endEnding=_.endEnding),f.push(L),c=null,d=!1}}else _.el_type==="note"&&(d=!0)}}r.push({header:l,measures:f,hasPickup:g})}return r}})();var br=vt,pn=yi,{relativeMajor:gn,transposeKey:Mr,relativeMode:vn}=mi,bn=bi,Ri;(function(){Ri=function(k,b,m){if(b==="TEST")return{keyAccidentals:pn,relativeMajor:gn,transposeKey:Mr,relativeMode:vn,transposeChordName:bn};m=parseInt(m,10);var C=[],_;for(_=0;_2?C+=7:m===-12&&(C-=7):m>0&&C<0?C+=7:m<0&&C>0&&(C-=7),m>12?C+=7:m<-12&&(C-=7),C}function i(k,b,m,C,_,M){for(var L=[],P=n(_,m,M),q={},F={},D=0;D1?_[1]:"",accidentals:M}}function h(k,b,m,C){for(var _=k.pitch,M=s.indexOf(k.name),L=s.indexOf(b.root),P=(L+_)%7,q=M+m,F=k.oct;q>6;)F++,q-=7;for(;q<0;)F--,q+=7;for(var D=s[P],$="",R=k.adj,x="=",T=0;T4&&(D=D.toLowerCase()),{acc:$,name:D,upper:D.toUpperCase()}}var u=/([_^=]*)([A-Ga-g])([,']*)/,c=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,f=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,d=/(\s*)$/;function p(k,b,m,C){var _=b==="none"?0:s.indexOf(b),M=k.match(u),L=M[2].toUpperCase(),P=s.indexOf(L)-_;P<0&&(P+=7);var q=o.indexOf(M[3]);L===M[2]&&q--;var F=C[L]||m[L]||"=";return{acc:M[1],name:L,pitch:P,oct:q,adj:w(M[1],m[L],C[L]),courtesy:M[1]===F}}function g(k,b,m,C,_){var M=k.substring(b,m),L=M.match(new RegExp(c.source+d.source),"");if(L){var P=L[1].length,q=L[2].length+L[3].length+L[4].length,F=m-b-P-q;b+=F,m-=q}else{var D=/([^\[]*)/,$=/\[/,R=/\-?](\d*\/*\d*)?([\>\<\-\)]*)/;if(L=M.match(new RegExp(D.source+$.source+f.source+f.source+f.source+f.source+f.source+f.source+f.source+f.source+R.source+d.source)),L){for(var x=1+L[1].length,T=0;T<_;T++)L[T*3+2]&&(x+=L[T*3+2].length),L[T*3+3]&&(x+=L[T*3+3].length),L[T*3+4]&&(x+=L[T*3+4].length);b+=x;var S=L[_*3+2]?L[_*3+2].length:0;m=b+S}}return{start:b,end:m,note:C}}function v(k,b,m,C,_){var M=k.substring(b,m),L=/\{/,P=/\}/,q=/([^\{]*)/,F=/(\/*)/,D=M.match(new RegExp(q.source+L.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+P.source));if(D){for(var $=1+D[1].length,R=0;R<_;R++)D[R*3+2]&&($+=D[R*3+2].length),D[R*3+3]&&($+=D[R*3+3].length),D[R*3+4]&&($+=D[R*3+4].length),D[R*3+5]&&($+=D[R*3+5].length);D[_*3+2]&&($+=D[R*3+2].length),b+=$;var x=D[_*3+3]?D[_*3+3].length:0;x+=D[_*3+4]?D[_*3+4].length:0,x+=D[_*3+5]?D[_*3+5].length:0,m=b+x}return{start:b,end:m,note:C}}function y(k,b,m,C){var _=k.substring(b,m).match(/([^"]+)?(".+")+/);return _[1]&&(b+=_[1].length),m=b+_[2].length,{start:b+1,end:m-1,note:C}}function w(k,b,m){if(!k&&m&&(k=m),!k)return 0;switch(b){case void 0:switch(k){case"__":return-2;case"_":return-1;case"=":return 0;case"^":return 1;case"^^":return 2;default:return 0}case"_":switch(k){case"__":return-1;case"_":return 0;case"=":return 1;case"^":return 2;case"^^":return 3;default:return 0}case"^":switch(k){case"__":return-3;case"_":return-2;case"=":return-1;case"^":return 0;case"^^":return 1;default:return 0}}return 0}})();var ol=Ri,Ht=function(t,r,a,n){this.type="BeamElem",this.isflat=!!a,this.isgrace=!!(r&&r==="grace"),this.forceup=!!(this.isgrace||r&&r==="up"),this.forcedown=!!(r&&r==="down"),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=t,this.beams=[],n&&n.duration?(this.duration=n.duration,n.startTriplet&&(this.duration*=n.tripletMultiplier),this.duration=Math.round(this.duration*1e3)/1e3):this.duration=0};Ht.prototype.setHint=function(){this.hint=!0};Ht.prototype.runningDirection=function(e){var t=e.averagepitch;t!==void 0&&(this.total=Math.round(this.total+t),this.count||(this.count=0),this.count++)};Ht.prototype.add=function(e){var t=e.abcelem.averagepitch;t!==void 0&&(e.abcelem.rest||(this.allrests=!1),e.beam=this,this.elems.push(e),this.total=Math.round(this.total+t),(this.min===void 0||e.abcelem.minpitchthis.max)&&(this.max=e.abcelem.maxpitch))};Ht.prototype.addBeam=function(e){this.beams.push(e)};Ht.prototype.setStemDirection=function(){if(this.average=Gi(this.total,this.count),this.forceup)this.stemsUp=!0;else if(this.forcedown)this.stemsUp=!1;else{var e=6;this.stemsUp=this.average0&&this.startVoice.staff.voices[0]===e)};var ll=D0,fl=$e,ze={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,.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"],["m",3,-11],["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:12.1,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:21,h:14.97},"tab.big":{d:[["M",20.16,-21.66],["c",.24,-.09,.66,.09,.78,.36],["c",.09,.21,.09,.24,-.18,.54],["c",-.78,.81,-1.86,1.44,-2.94,1.71],["c",-.87,.24,-1.71,.24,-2.55,.03],["l",-.06,-.03],["l",-.18,.99],["c",-.33,1.98,-.75,4.26,-.96,5.04],["c",-.42,1.65,-1.26,3.18,-2.28,4.14],["c",-.57,.57,-1.17,.9,-1.86,1.08],["c",-.18,.06,-.33,.06,-.66,.06],["c",-.54,0,-.78,-.03,-1.23,-.27],["c",-.39,-.18,-.66,-.39,-1.38,-.99],["c",-.3,-.24,-.66,-.51,-.75,-.57],["c",-.21,-.15,-.27,-.24,-.24,-.45],["c",.06,-.27,.36,-.6,.6,-.66],["c",.18,-.03,.33,.06,.9,.57],["c",.48,.42,.72,.57,.93,.69],["c",.66,.33,1.38,.21,1.95,-.36],["c",.63,-.6,1.05,-1.62,1.23,-3],["c",.03,-.18,.09,-.66,.09,-1.11],["c",.09,-1.56,.33,-3.81,.57,-5.49],["c",.06,-.33,.09,-.63,.09,-.63],["c",-.03,-.03,-.81,-.12,-1.02,-.12],["c",-.57,0,-1.32,.12,-1.8,.33],["c",-.87,.3,-1.35,.78,-1.5,1.41],["c",-.18,.63,.09,1.26,.66,1.65],["c",.12,.06,.15,.12,.18,.24],["c",.09,.27,.06,.57,-.09,.75],["c",-.03,.06,-.12,.09,-.27,.15],["c",-.72,.21,-1.44,.15,-2.1,-.18],["c",-.54,-.27,-.96,-.66,-1.2,-1.14],["c",-.39,-.75,-.33,-1.74,.15,-2.52],["c",.27,-.42,.84,-.93,1.41,-1.23],["c",1.17,-.57,2.88,-.9,4.8,-.9],["c",.69,0,.78,0,1.08,.06],["c",.45,.09,1.11,.3,2.07,.6],["c",1.47,.48,1.83,.57,2.55,.54],["c",1.02,-.06,2.04,-.45,2.94,-1.11],["c",.12,-.09,.24,-.18,.27,-.18],["z"],["m",-5.88,13.05],["c",.21,-.03,.81,0,1.08,.06],["c",.48,.12,.9,.42,.99,.69],["c",.03,.09,.03,.15,0,.27],["c",0,.09,-.03,.57,-.06,1.08],["c",-.09,2.19,-.24,5.76,-.39,8.28],["c",-.06,1.53,-.06,1.77,.03,2.01],["c",.09,.18,.15,.24,.3,.3],["c",.24,.12,.54,.06,1.23,-.27],["c",.57,-.27,.66,-.3,.75,-.24],["c",.09,.06,.18,.3,.18,.45],["c",0,.33,-.15,.51,-.45,.63],["c",-.12,.03,-.39,.15,-.6,.27],["c",-1.17,.6,-1.38,.69,-1.8,.72],["c",-.45,.03,-.78,-.09,-1.08,-.39],["c",-.39,-.42,-.66,-1.2,-1.02,-3.12],["c",-.24,-1.23,-.36,-2.07,-.54,-3.75],["l",0,-.18],["l",-.36,.45],["c",-.6,.75,-1.32,1.59,-1.95,2.25],["c",-.15,.18,-.27,.3,-.27,.33],["c",0,0,.06,.09,.15,.18],["c",.24,.33,.6,.57,1.05,.69],["c",.18,.06,.3,.06,.69,.06],["l",.48,.03],["l",.06,.12],["c",.15,.27,.03,.72,-.21,.9],["c",-.18,.12,-.93,.27,-1.41,.27],["c",-.84,0,-1.59,-.3,-1.98,-.84],["l",-.12,-.15],["l",-.45,.42],["c",-.99,.87,-1.53,1.32,-2.16,1.74],["c",-.78,.51,-1.5,.84,-2.1,.93],["c",-.69,.12,-1.2,.03,-1.95,-.42],["c",-.21,-.12,-.51,-.27,-.66,-.36],["c",-.24,-.12,-.3,-.18,-.33,-.24],["c",-.12,-.27,.15,-.78,.45,-.93],["c",.24,-.12,.33,-.09,.9,.18],["c",.6,.3,.84,.39,1.2,.36],["c",.87,-.09,1.77,-.69,3.24,-2.31],["c",2.67,-2.85,4.59,-5.94,5.7,-9.15],["c",.15,-.45,.24,-.63,.42,-.81],["c",.21,-.24,.6,-.45,.99,-.51],["z"],["m",-3.99,16.05],["c",.18,0,.69,-.03,1.17,0],["c",3.27,.03,5.37,.75,6,2.07],["c",.45,.99,.12,2.4,-.81,3.42],["c",-.24,.27,-.57,.57,-.84,.75],["c",-.09,.06,-.18,.09,-.18,.12],["c",0,0,.18,.03,.42,.09],["c",1.23,.3,2.01,.81,2.37,1.59],["c",.27,.54,.3,1.32,.09,2.1],["c",-.12,.36,-.45,1.05,-.69,1.35],["c",-.87,1.17,-2.1,1.92,-3.54,2.25],["c",-.36,.06,-.48,.06,-.96,.06],["c",-.45,0,-.66,0,-.84,-.03],["c",-.84,-.18,-1.47,-.51,-2.07,-1.11],["c",-.33,-.33,-.45,-.51,-.45,-.63],["c",0,-.06,.03,-.15,.06,-.24],["c",.18,-.33,.69,-.6,.93,-.48],["c",.03,.03,.15,.12,.27,.24],["c",.39,.42,.99,.57,1.62,.45],["c",1.05,-.21,1.98,-1.02,2.31,-2.01],["c",.48,-1.53,-.48,-2.55,-2.58,-2.67],["c",-.21,0,-.36,-.03,-.42,-.06],["c",-.15,-.09,-.21,-.51,-.06,-.78],["c",.12,-.27,.24,-.33,.6,-.36],["c",.57,-.06,1.11,-.42,1.5,-.99],["c",.48,-.72,.54,-1.59,.18,-2.31],["c",-.12,-.21,-.45,-.54,-.69,-.69],["c",-.33,-.21,-.93,-.45,-1.35,-.51],["l",-.12,-.03],["l",-.06,.48],["c",-.54,2.94,-1.14,6.24,-1.29,6.75],["c",-.33,1.35,-.93,2.61,-1.65,3.6],["c",-.3,.36,-.81,.9,-1.14,1.14],["c",-.3,.24,-.84,.48,-1.14,.57],["c",-.33,.09,-.96,.09,-1.26,.03],["c",-.45,-.12,-.87,-.39,-1.53,-.96],["c",-.24,-.15,-.51,-.39,-.63,-.48],["c",-.3,-.21,-.33,-.33,-.21,-.63],["c",.12,-.18,.27,-.36,.42,-.45],["c",.27,-.12,.36,-.09,.87,.33],["c",.78,.6,1.08,.75,1.65,.72],["c",.45,-.03,.81,-.21,1.17,-.54],["c",.87,-.9,1.38,-2.85,1.38,-5.37],["c",0,-.6,.03,-1.11,.12,-2.04],["c",.06,-.69,.24,-2.01,.33,-2.58],["c",.06,-.24,.06,-.42,.06,-.42],["c",0,0,-.12,.03,-.21,.09],["c",-1.44,.57,-2.16,1.65,-1.74,2.55],["c",.09,.15,.18,.24,.27,.33],["c",.24,.21,.3,.27,.33,.39],["c",.06,.24,0,.63,-.15,.78],["c",-.09,.12,-.54,.21,-.96,.24],["c",-1.02,.03,-2.01,-.48,-2.43,-1.32],["c",-.21,-.45,-.27,-.9,-.15,-1.44],["c",.06,-.27,.21,-.66,.39,-.93],["c",.87,-1.29,3,-2.22,5.64,-2.43],["z"]],w:19.643,h:43.325},"tab.tiny":{d:[["M",16.02,-17.25],["c",.12,-.09,.15,-.09,.27,-.09],["c",.21,.03,.51,.3,.51,.45],["c",0,.06,-.12,.18,-.3,.36],["c",-1.11,1.08,-2.55,1.59,-3.84,1.41],["c",-.15,-.03,-.33,-.06,-.39,-.09],["c",-.06,-.03,-.09,-.03,-.12,-.03],["c",0,0,-.06,.42,-.15,.93],["c",-.33,2.01,-.66,3.69,-.84,4.26],["c",-.42,1.41,-1.23,2.67,-2.16,3.33],["c",-.27,.18,-.75,.42,-.99,.48],["c",-.3,.09,-.72,.09,-1.02,.06],["c",-.45,-.09,-.84,-.33,-1.53,-.9],["c",-.21,-.18,-.51,-.39,-.63,-.48],["c",-.27,-.21,-.3,-.24,-.3,-.36],["c",0,-.12,.09,-.36,.18,-.45],["c",.09,-.09,.27,-.18,.36,-.18],["c",.12,0,.3,.12,.66,.45],["c",.57,.51,.87,.69,1.23,.72],["c",.93,.06,1.68,-.78,1.98,-2.37],["c",.09,-.39,.15,-.75,.18,-1.53],["c",.06,-.99,.24,-2.79,.42,-4.05],["c",.03,-.3,.06,-.57,.06,-.6],["c",0,-.06,-.03,-.09,-.15,-.12],["c",-.9,-.18,-2.13,.06,-2.76,.57],["c",-.36,.3,-.51,.6,-.51,1.02],["c",0,.45,.15,.75,.48,.99],["c",.06,.06,.15,.18,.18,.24],["c",.12,.24,.03,.63,-.15,.69],["c",-.24,.12,-.6,.15,-.9,.15],["c",-.36,-.03,-.57,-.09,-.87,-.24],["c",-.78,-.36,-1.23,-1.11,-1.2,-1.92],["c",.12,-1.53,1.74,-2.49,4.62,-2.7],["c",1.2,-.09,1.47,-.03,3.33,.57],["c",.9,.3,1.14,.36,1.56,.39],["c",.45,0,.93,-.06,1.38,-.21],["c",.51,-.18,.81,-.33,1.41,-.75],["z"],["m",-4.68,10.38],["c",.39,-.06,.84,0,1.2,.15],["c",.24,.12,.36,.21,.45,.36],["l",.09,.09],["l",-.06,1.41],["c",-.09,2.19,-.18,3.96,-.27,5.49],["c",-.03,.78,-.06,1.59,-.06,1.86],["c",0,.42,0,.48,.06,.57],["c",.06,.18,.18,.24,.36,.27],["c",.18,0,.39,-.06,.84,-.27],["c",.45,-.21,.54,-.24,.63,-.18],["c",.12,.12,.15,.54,.03,.69],["c",-.03,.03,-.15,.12,-.27,.18],["c",-.15,.03,-.3,.12,-.36,.15],["c",-.87,.45,-1.02,.51,-1.26,.57],["c",-.33,.09,-.6,.06,-.84,-.06],["c",-.42,-.18,-.63,-.6,-.87,-1.44],["c",-.3,-1.23,-.57,-2.97,-.66,-4.08],["c",0,-.18,-.03,-.3,-.03,-.33],["l",-.06,.06],["c",-.18,.27,-1.11,1.38,-1.68,2.01],["l",-.33,.33],["l",.06,.09],["c",.06,.15,.27,.33,.48,.42],["c",.27,.18,.51,.24,.96,.27],["l",.39,0],["l",.03,.12],["c",.12,.21,.03,.57,-.15,.69],["c",-.03,.03,-.21,.09,-.36,.15],["c",-.27,.06,-.39,.06,-.75,.06],["c",-.48,0,-.75,-.03,-1.08,-.21],["c",-.21,-.12,-.51,-.36,-.57,-.48],["l",-.03,-.09],["l",-.39,.36],["c",-1.47,1.35,-2.49,1.98,-3.42,2.13],["c",-.54,.09,-.96,-.03,-1.62,-.39],["c",-.21,-.15,-.45,-.27,-.54,-.3],["c",-.18,-.09,-.21,-.21,-.12,-.45],["c",.06,-.27,.33,-.48,.54,-.48],["c",.03,0,.27,.09,.48,.21],["c",.48,.24,.69,.27,.99,.27],["c",.6,-.06,1.17,-.42,2.1,-1.35],["c",2.22,-2.22,4.02,-4.98,4.95,-7.59],["c",.21,-.57,.3,-.78,.48,-.93],["c",.15,-.15,.42,-.27,.66,-.33],["z"],["m",-3.06,12.84],["c",.27,-.03,1.68,0,2.01,.03],["c",1.92,.18,3.15,.69,3.63,1.5],["c",.18,.33,.24,.51,.21,.93],["c",0,.45,-.06,.72,-.24,1.11],["c",-.24,.51,-.69,1.02,-1.17,1.35],["c",-.21,.15,-.21,.15,-.12,.18],["c",.72,.15,1.11,.3,1.5,.57],["c",.39,.24,.63,.57,.75,.96],["c",.09,.3,.09,.96,0,1.29],["c",-.15,.57,-.39,1.05,-.78,1.5],["c",-.66,.75,-1.62,1.32,-2.61,1.53],["c",-.27,.06,-.42,.06,-.84,.06],["c",-.48,0,-.57,0,-.81,-.06],["c",-.6,-.18,-1.05,-.42,-1.47,-.81],["c",-.36,-.39,-.42,-.51,-.3,-.75],["c",.12,-.21,.39,-.39,.6,-.39],["c",.09,0,.15,.03,.33,.18],["c",.12,.12,.27,.24,.36,.27],["c",.96,.48,2.46,-.33,2.82,-1.5],["c",.24,-.81,-.03,-1.44,-.69,-1.77],["c",-.39,-.21,-1.02,-.33,-1.53,-.33],["c",-.18,0,-.21,0,-.27,-.09],["c",-.06,-.09,-.06,-.3,-.03,-.48],["c",.06,-.18,.18,-.36,.33,-.36],["c",.39,-.06,.51,-.09,.72,-.18],["c",.69,-.36,1.11,-1.23,.99,-2.01],["c",-.09,-.51,-.42,-.9,-.93,-1.17],["c",-.24,-.12,-.6,-.27,-.87,-.3],["c",-.09,-.03,-.09,-.03,-.12,.12],["c",0,.09,-.21,1.11,-.42,2.25],["c",-.66,3.75,-.72,3.99,-1.26,5.07],["c",-.9,1.89,-2.25,2.85,-3.48,2.61],["c",-.39,-.09,-.69,-.27,-1.38,-.84],["c",-.63,-.51,-.63,-.48,-.63,-.6],["c",0,-.18,.18,-.48,.39,-.57],["c",.21,-.12,.3,-.09,.81,.33],["c",.15,.15,.39,.3,.54,.36],["c",.18,.12,.27,.12,.48,.15],["c",.99,.06,1.71,-.78,2.04,-2.46],["c",.12,-.66,.18,-1.14,.21,-2.22],["c",.03,-1.23,.12,-2.25,.36,-3.63],["c",.03,-.24,.06,-.45,.06,-.48],["c",-.06,-.03,-.66,.27,-.9,.42],["c",-.06,.06,-.21,.18,-.33,.3],["c",-.57,.57,-.6,1.35,-.06,1.74],["c",.18,.12,.24,.24,.21,.51],["c",-.03,.3,-.15,.42,-.57,.48],["c",-1.11,.24,-2.22,-.42,-2.43,-1.38],["c",-.09,-.45,.03,-1.02,.3,-1.47],["c",.18,-.24,.6,-.63,.9,-.84],["c",.9,-.6,2.28,-1.02,3.69,-1.11],["z"]],w:15.709,h:34.656},"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.85,-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}};ze["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};ze["noteheads.slash.quarter"]={d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9};ze["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};ze["noteheads.triangle.quarter"]={d:[["M",0,4],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9};var mn=function(e){for(var t=[],r=0,a=e.length;r0?n.top+3:n.bottom-1,c=a>0?n.top+3:n.bottom-3,f=c-2;e.type==="bass-8"&&(u=3,h=0),n.addRight(new Nr("8",i+h,m0.getSymbolWidth("8")*l,u,{scalex:l,scaley:l,top:c,bottom:f}))}}return n};function gl(e){switch(e){case"clefs.G":return-5;case"clefs.C":return-4;case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}var vl=pl,bl=n0,K0=_t,ml=ft,yl=function(e,t){if(e.el_type="keySignature",!e.accidentals||e.accidentals.length===0)return null;var r=new bl(e,0,10,"staff-extra key-signature",t);r.isKeySig=!0;var a=0;return e.accidentals.forEach(function(n){var i,s=0;switch(n.acc){case"sharp":i="accidentals.sharp",s=-3;break;case"natural":i="accidentals.nat";break;case"flat":i="accidentals.flat",s=-1.2;break;case"quartersharp":i="accidentals.halfsharp",s=-2.5;break;case"quarterflat":i="accidentals.halfflat",s=-1.2;break;default:i="accidentals.flat"}r.addRight(new ml(i,a,K0.getSymbolWidth(i),n.verticalPos,{thickness:K0.symbolHeightInPitches(i),top:n.verticalPos+K0.symbolHeightInPitches(i)+s,bottom:n.verticalPos+s})),a+=K0.getSymbolWidth(i)+2},this),r},wl=yl,Je=_t,Wt=ft,xl=function(e,t,r,a){a||(a={});var n=a.dir!==void 0?a.dir:null,i=a.headx!==void 0?a.headx:0,s=a.extrax!==void 0?a.extrax:0,o=a.flag!==void 0?a.flag:null,l=a.dot!==void 0?a.dot:0,h=a.dotshiftx!==void 0?a.dotshiftx:0,u=a.scale!==void 0?a.scale:1,c=a.accidentalSlot!==void 0?a.accidentalSlot:[],f=a.shouldExtendStem!==void 0?a.shouldExtendStem:!1,d=a.printAccidentals!==void 0?a.printAccidentals:!0,p=r.verticalPos,g,v=0,y=0,w=0;if(t===void 0)e.addFixed(new Wt("pitch is undefined",0,0,0,{type:"debug"}));else if(t==="")g=new Wt(null,0,0,p);else{var k=i;if(r.printer_shift){var b=r.printer_shift==="same"?1:0;k=n==="down"?-Je.getSymbolWidth(t)*u+b:Je.getSymbolWidth(t)*u-b}var m={scalex:u,scaley:u,thickness:Je.symbolHeightInPitches(t)*u,name:r.name};if(g=new Wt(t,k,Je.getSymbolWidth(t)*u,p,m),g.stemDir=n,o){var C=p+(n==="down"?-7:7)*u;f&&(n==="down"&&C>6&&(C=6),n==="up"&&C<6&&(C=6));var _=n==="down"?i:i+g.w-.6;e.addRight(new Wt(o,_,Je.getSymbolWidth(o)*u,C,{scalex:u,scaley:u}))}for(y=g.w+h-2+5*l;l>0;l--){var M=1-Math.abs(p)%2;e.addRight(new Wt("dots.dot",g.w+h-2+5*l,Je.getSymbolWidth("dots.dot"),p+M))}}if(g&&(g.highestVert=r.highestVert),d&&r.accidental){var L;switch(r.accidental){case"quartersharp":L="accidentals.halfsharp";break;case"dblsharp":L="accidentals.dblsharp";break;case"sharp":L="accidentals.sharp";break;case"quarterflat":L="accidentals.halfflat";break;case"flat":L="accidentals.flat";break;case"dblflat":L="accidentals.dblflat";break;case"natural":L="accidentals.nat"}for(var P=!1,q=s,F=0;F=6){c[F][0]=p,q=c[F][1],P=!0;break}P===!1&&(q-=Je.getSymbolWidth(L)*u+2,c.push([p,q]),v=Je.getSymbolWidth(L)*u+2);var D=Je.symbolHeightInPitches(L);e.addExtra(new Wt(L,q,Je.getSymbolWidth(L),p,{scalex:u,scaley:u,top:p+D/2,bottom:p-D/2})),w=Je.getSymbolWidth(L)/2}return{notehead:g,accidentalshiftx:v,dotshiftx:y,extraLeft:w}},Cl=xl,kl=n0,be=_t,ot=ft,Tl=function(e,t){e.el_type="timeSignature";var r=new kl(e,0,10,"staff-extra time-signature",t);if(e.type==="specified")for(var a=0,n=0;n0)this.above=!1;else{var e;this.anchor1?e=this.anchor1.pitch:this.anchor2?e=this.anchor2.pitch:e=14,this.anchor1&&this.anchor1.stemDir==="down"&&this.anchor2&&this.anchor2.stemDir==="down"?this.above=!0:this.anchor1&&this.anchor1.stemDir==="up"&&this.anchor2&&this.anchor2.stemDir==="up"?this.above=!1:this.anchor1&&this.anchor2?this.above=e>=6:this.anchor1?this.above=this.anchor1.stemDir==="down":this.anchor2?this.above=this.anchor2.stemDir==="down":this.above=e>=6}};Xe.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(this.voiceNumber===0)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e=!1;this.anchor1&&this.anchor1.stemDir==="down"&&(e=!0),this.anchor2&&this.anchor2.stemDir==="down"&&(e=!0);for(var t=0;te&&(e=this.internalNotes[t].highestVert);e>this.startY&&e>this.endY&&(this.startY=this.endY=e-1)}};var Wi=Xe,Ll=El,yn=Ml,Pl=Bl,rt=_t,zt=ft,Dl=Wi,ma=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},Fl=function(e,t,r,a,n,i,s,o,l){for(var h,u=0;u9&&h++;var f=a/2;rt.getSymbolAlign(c)!=="center"&&(f-=rt.getSymbolWidth(c)/2),n.addFixedX(new zt(c,f,rt.getSymbolWidth(c),h))}if(t[u]==="slide"&&n.heads[0]){var d=n.heads[0].pitch;d-=2;var p=new zt("",-i-15,0,d-1),g=new zt("",-i-5,0,d+1);n.addFixedX(p),n.addFixedX(g),e.addOther(new Dl({anchor1:p,anchor2:g,fixedY:!0}))}}return h===void 0&&(h=r),{above:h,below:n.bottom}},$l=function(e,t,r,a){for(var n=0;ns&&(v=s)),v}function u(g,v,y){var w=h(v),k=2,b=5;r.addFixedX(new zt(g,t/2,0,w+k,{type:"decoration",klass:"ornament",thickness:3,anchor:y})),l(v,b)}function c(g,v){var y=t/2;rt.getSymbolAlign(g)!=="center"&&(y-=rt.getSymbolWidth(g)/2);var w=rt.symbolHeightInPitches(g)+1,k=h(v);k=v==="above"?k+w/2:k-w/2,r.addFixedX(new zt(g,y,rt.getSymbolWidth(g),k,{klass:"ornament",thickness:rt.symbolHeightInPitches(g),position:v})),l(v,w)}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"},d=!1,p=0;p",a)),i&&e.addOther(new yn(i.start,i.stop,"<",a)),s&&e.addOther(new Pl(s.start,s.stop))};ma.prototype.createDecoration=function(e,t,r,a,n,i,s,o,l,h,u){l||(l={ornamentPosition:"above",volumePosition:h?"above":"below",dynamicPosition:h?"above":"below"}),$l(e,t,n,l.volumePosition),this.dynamicDecoration(e,t,n,l.dynamicPosition),Il(t,r,a,n,s);var c=Fl(e,t,r,a,n,i,s,o,u);c.above=Math.max(c.above,this.minTop),c.below=Math.min(c.below,o),Ol(t,a,n,c,l.ornamentPosition,this.minTop,o,u),zl(t,n,i)};var Hl=ma,ql=function(t,r,a){this.type="EndingElem",this.text=t,this.anchor1=r,this.anchor2=a,this.endingHeightAbove=5,this.pitch=void 0},Yl=ql,Rl=function(e){for(var t=0,r=0;r0,v=0;v=0&&(c=_.startChar,_.chord===void 0?u=h:u=null),_.chord&&(h=_),_.el_type==="bar"){if(d){var M=i.abc.substring(c,_.endChar),L={abc:M};h=u&&u.chord&&u.chord.length>0?u.chord[0].name:null,h&&(L.lastChord=h),_.startEnding&&(L.startEnding=_.startEnding),_.endEnding&&(L.endEnding=_.endEnding),f.push(L),c=null,d=!1}}else _.el_type==="note"&&(d=!0)}}r.push({header:l,measures:f,hasPickup:g})}return r}})();var br=gt,pn=yi,{relativeMajor:gn,transposeKey:Mr,relativeMode:vn}=mi,bn=bi,Yi;(function(){Yi=function(k,b,m){if(b==="TEST")return{keyAccidentals:pn,relativeMajor:gn,transposeKey:Mr,relativeMode:vn,transposeChordName:bn};m=parseInt(m,10);var C=[],_;for(_=0;_2?C+=7:m===-12&&(C-=7):m>0&&C<0?C+=7:m<0&&C>0&&(C-=7),m>12?C+=7:m<-12&&(C-=7),C}function i(k,b,m,C,_,M){for(var L=[],P=n(_,m,M),q={},F={},D=0;D1?_[1]:"",accidentals:M}}function h(k,b,m,C){for(var _=k.pitch,M=s.indexOf(k.name),L=s.indexOf(b.root),P=(L+_)%7,q=M+m,F=k.oct;q>6;)F++,q-=7;for(;q<0;)F--,q+=7;for(var D=s[P],$="",Y=k.adj,x="=",T=0;T4&&(D=D.toLowerCase()),{acc:$,name:D,upper:D.toUpperCase()}}var u=/([_^=]*)([A-Ga-g])([,']*)/,c=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,f=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,d=/(\s*)$/;function p(k,b,m,C){var _=b==="none"?0:s.indexOf(b),M=k.match(u),L=M[2].toUpperCase(),P=s.indexOf(L)-_;P<0&&(P+=7);var q=o.indexOf(M[3]);L===M[2]&&q--;var F=C[L]||m[L]||"=";return{acc:M[1],name:L,pitch:P,oct:q,adj:w(M[1],m[L],C[L]),courtesy:M[1]===F}}function g(k,b,m,C,_){var M=k.substring(b,m),L=M.match(new RegExp(c.source+d.source),"");if(L){var P=L[1].length,q=L[2].length+L[3].length+L[4].length,F=m-b-P-q;b+=F,m-=q}else{var D=/([^\[]*)/,$=/\[/,Y=/\-?](\d*\/*\d*)?([\>\<\-\)]*)/;if(L=M.match(new RegExp(D.source+$.source+f.source+f.source+f.source+f.source+f.source+f.source+f.source+f.source+Y.source+d.source)),L){for(var x=1+L[1].length,T=0;T<_;T++)L[T*3+2]&&(x+=L[T*3+2].length),L[T*3+3]&&(x+=L[T*3+3].length),L[T*3+4]&&(x+=L[T*3+4].length);b+=x;var S=L[_*3+2]?L[_*3+2].length:0;m=b+S}}return{start:b,end:m,note:C}}function v(k,b,m,C,_){var M=k.substring(b,m),L=/\{/,P=/\}/,q=/([^\{]*)/,F=/(\/*)/,D=M.match(new RegExp(q.source+L.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+F.source+f.source+P.source));if(D){for(var $=1+D[1].length,Y=0;Y<_;Y++)D[Y*3+2]&&($+=D[Y*3+2].length),D[Y*3+3]&&($+=D[Y*3+3].length),D[Y*3+4]&&($+=D[Y*3+4].length),D[Y*3+5]&&($+=D[Y*3+5].length);D[_*3+2]&&($+=D[Y*3+2].length),b+=$;var x=D[_*3+3]?D[_*3+3].length:0;x+=D[_*3+4]?D[_*3+4].length:0,x+=D[_*3+5]?D[_*3+5].length:0,m=b+x}return{start:b,end:m,note:C}}function y(k,b,m,C){var _=k.substring(b,m).match(/([^"]+)?(".+")+/);return _[1]&&(b+=_[1].length),m=b+_[2].length,{start:b+1,end:m-1,note:C}}function w(k,b,m){if(!k&&m&&(k=m),!k)return 0;switch(b){case void 0:switch(k){case"__":return-2;case"_":return-1;case"=":return 0;case"^":return 1;case"^^":return 2;default:return 0}case"_":switch(k){case"__":return-1;case"_":return 0;case"=":return 1;case"^":return 2;case"^^":return 3;default:return 0}case"^":switch(k){case"__":return-3;case"_":return-2;case"=":return-1;case"^":return 0;case"^^":return 1;default:return 0}}return 0}})();var il=Yi,zt=function(t,r,a,n){this.type="BeamElem",this.isflat=!!a,this.isgrace=!!(r&&r==="grace"),this.forceup=!!(this.isgrace||r&&r==="up"),this.forcedown=!!(r&&r==="down"),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=t,this.beams=[],n&&n.duration?(this.duration=n.duration,n.startTriplet&&(this.duration*=n.tripletMultiplier),this.duration=Math.round(this.duration*1e3)/1e3):this.duration=0};zt.prototype.setHint=function(){this.hint=!0};zt.prototype.runningDirection=function(e){var t=e.averagepitch;t!==void 0&&(this.total=Math.round(this.total+t),this.count||(this.count=0),this.count++)};zt.prototype.add=function(e){var t=e.abcelem.averagepitch;t!==void 0&&(e.abcelem.rest||(this.allrests=!1),e.beam=this,this.elems.push(e),this.total=Math.round(this.total+t),(this.min===void 0||e.abcelem.minpitchthis.max)&&(this.max=e.abcelem.maxpitch))};zt.prototype.addBeam=function(e){this.beams.push(e)};zt.prototype.setStemDirection=function(){if(this.average=Ri(this.total,this.count),this.forceup)this.stemsUp=!0;else if(this.forcedown)this.stemsUp=!1;else{var e=6;this.stemsUp=this.average0&&this.startVoice.staff.voices[0]===e)};var ol=P0,cl=$e,He={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,.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"],["m",3,-11],["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:12.1,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:21,h:14.97},"tab.big":{d:[["M",20.16,-21.66],["c",.24,-.09,.66,.09,.78,.36],["c",.09,.21,.09,.24,-.18,.54],["c",-.78,.81,-1.86,1.44,-2.94,1.71],["c",-.87,.24,-1.71,.24,-2.55,.03],["l",-.06,-.03],["l",-.18,.99],["c",-.33,1.98,-.75,4.26,-.96,5.04],["c",-.42,1.65,-1.26,3.18,-2.28,4.14],["c",-.57,.57,-1.17,.9,-1.86,1.08],["c",-.18,.06,-.33,.06,-.66,.06],["c",-.54,0,-.78,-.03,-1.23,-.27],["c",-.39,-.18,-.66,-.39,-1.38,-.99],["c",-.3,-.24,-.66,-.51,-.75,-.57],["c",-.21,-.15,-.27,-.24,-.24,-.45],["c",.06,-.27,.36,-.6,.6,-.66],["c",.18,-.03,.33,.06,.9,.57],["c",.48,.42,.72,.57,.93,.69],["c",.66,.33,1.38,.21,1.95,-.36],["c",.63,-.6,1.05,-1.62,1.23,-3],["c",.03,-.18,.09,-.66,.09,-1.11],["c",.09,-1.56,.33,-3.81,.57,-5.49],["c",.06,-.33,.09,-.63,.09,-.63],["c",-.03,-.03,-.81,-.12,-1.02,-.12],["c",-.57,0,-1.32,.12,-1.8,.33],["c",-.87,.3,-1.35,.78,-1.5,1.41],["c",-.18,.63,.09,1.26,.66,1.65],["c",.12,.06,.15,.12,.18,.24],["c",.09,.27,.06,.57,-.09,.75],["c",-.03,.06,-.12,.09,-.27,.15],["c",-.72,.21,-1.44,.15,-2.1,-.18],["c",-.54,-.27,-.96,-.66,-1.2,-1.14],["c",-.39,-.75,-.33,-1.74,.15,-2.52],["c",.27,-.42,.84,-.93,1.41,-1.23],["c",1.17,-.57,2.88,-.9,4.8,-.9],["c",.69,0,.78,0,1.08,.06],["c",.45,.09,1.11,.3,2.07,.6],["c",1.47,.48,1.83,.57,2.55,.54],["c",1.02,-.06,2.04,-.45,2.94,-1.11],["c",.12,-.09,.24,-.18,.27,-.18],["z"],["m",-5.88,13.05],["c",.21,-.03,.81,0,1.08,.06],["c",.48,.12,.9,.42,.99,.69],["c",.03,.09,.03,.15,0,.27],["c",0,.09,-.03,.57,-.06,1.08],["c",-.09,2.19,-.24,5.76,-.39,8.28],["c",-.06,1.53,-.06,1.77,.03,2.01],["c",.09,.18,.15,.24,.3,.3],["c",.24,.12,.54,.06,1.23,-.27],["c",.57,-.27,.66,-.3,.75,-.24],["c",.09,.06,.18,.3,.18,.45],["c",0,.33,-.15,.51,-.45,.63],["c",-.12,.03,-.39,.15,-.6,.27],["c",-1.17,.6,-1.38,.69,-1.8,.72],["c",-.45,.03,-.78,-.09,-1.08,-.39],["c",-.39,-.42,-.66,-1.2,-1.02,-3.12],["c",-.24,-1.23,-.36,-2.07,-.54,-3.75],["l",0,-.18],["l",-.36,.45],["c",-.6,.75,-1.32,1.59,-1.95,2.25],["c",-.15,.18,-.27,.3,-.27,.33],["c",0,0,.06,.09,.15,.18],["c",.24,.33,.6,.57,1.05,.69],["c",.18,.06,.3,.06,.69,.06],["l",.48,.03],["l",.06,.12],["c",.15,.27,.03,.72,-.21,.9],["c",-.18,.12,-.93,.27,-1.41,.27],["c",-.84,0,-1.59,-.3,-1.98,-.84],["l",-.12,-.15],["l",-.45,.42],["c",-.99,.87,-1.53,1.32,-2.16,1.74],["c",-.78,.51,-1.5,.84,-2.1,.93],["c",-.69,.12,-1.2,.03,-1.95,-.42],["c",-.21,-.12,-.51,-.27,-.66,-.36],["c",-.24,-.12,-.3,-.18,-.33,-.24],["c",-.12,-.27,.15,-.78,.45,-.93],["c",.24,-.12,.33,-.09,.9,.18],["c",.6,.3,.84,.39,1.2,.36],["c",.87,-.09,1.77,-.69,3.24,-2.31],["c",2.67,-2.85,4.59,-5.94,5.7,-9.15],["c",.15,-.45,.24,-.63,.42,-.81],["c",.21,-.24,.6,-.45,.99,-.51],["z"],["m",-3.99,16.05],["c",.18,0,.69,-.03,1.17,0],["c",3.27,.03,5.37,.75,6,2.07],["c",.45,.99,.12,2.4,-.81,3.42],["c",-.24,.27,-.57,.57,-.84,.75],["c",-.09,.06,-.18,.09,-.18,.12],["c",0,0,.18,.03,.42,.09],["c",1.23,.3,2.01,.81,2.37,1.59],["c",.27,.54,.3,1.32,.09,2.1],["c",-.12,.36,-.45,1.05,-.69,1.35],["c",-.87,1.17,-2.1,1.92,-3.54,2.25],["c",-.36,.06,-.48,.06,-.96,.06],["c",-.45,0,-.66,0,-.84,-.03],["c",-.84,-.18,-1.47,-.51,-2.07,-1.11],["c",-.33,-.33,-.45,-.51,-.45,-.63],["c",0,-.06,.03,-.15,.06,-.24],["c",.18,-.33,.69,-.6,.93,-.48],["c",.03,.03,.15,.12,.27,.24],["c",.39,.42,.99,.57,1.62,.45],["c",1.05,-.21,1.98,-1.02,2.31,-2.01],["c",.48,-1.53,-.48,-2.55,-2.58,-2.67],["c",-.21,0,-.36,-.03,-.42,-.06],["c",-.15,-.09,-.21,-.51,-.06,-.78],["c",.12,-.27,.24,-.33,.6,-.36],["c",.57,-.06,1.11,-.42,1.5,-.99],["c",.48,-.72,.54,-1.59,.18,-2.31],["c",-.12,-.21,-.45,-.54,-.69,-.69],["c",-.33,-.21,-.93,-.45,-1.35,-.51],["l",-.12,-.03],["l",-.06,.48],["c",-.54,2.94,-1.14,6.24,-1.29,6.75],["c",-.33,1.35,-.93,2.61,-1.65,3.6],["c",-.3,.36,-.81,.9,-1.14,1.14],["c",-.3,.24,-.84,.48,-1.14,.57],["c",-.33,.09,-.96,.09,-1.26,.03],["c",-.45,-.12,-.87,-.39,-1.53,-.96],["c",-.24,-.15,-.51,-.39,-.63,-.48],["c",-.3,-.21,-.33,-.33,-.21,-.63],["c",.12,-.18,.27,-.36,.42,-.45],["c",.27,-.12,.36,-.09,.87,.33],["c",.78,.6,1.08,.75,1.65,.72],["c",.45,-.03,.81,-.21,1.17,-.54],["c",.87,-.9,1.38,-2.85,1.38,-5.37],["c",0,-.6,.03,-1.11,.12,-2.04],["c",.06,-.69,.24,-2.01,.33,-2.58],["c",.06,-.24,.06,-.42,.06,-.42],["c",0,0,-.12,.03,-.21,.09],["c",-1.44,.57,-2.16,1.65,-1.74,2.55],["c",.09,.15,.18,.24,.27,.33],["c",.24,.21,.3,.27,.33,.39],["c",.06,.24,0,.63,-.15,.78],["c",-.09,.12,-.54,.21,-.96,.24],["c",-1.02,.03,-2.01,-.48,-2.43,-1.32],["c",-.21,-.45,-.27,-.9,-.15,-1.44],["c",.06,-.27,.21,-.66,.39,-.93],["c",.87,-1.29,3,-2.22,5.64,-2.43],["z"]],w:19.643,h:43.325},"tab.tiny":{d:[["M",16.02,-17.25],["c",.12,-.09,.15,-.09,.27,-.09],["c",.21,.03,.51,.3,.51,.45],["c",0,.06,-.12,.18,-.3,.36],["c",-1.11,1.08,-2.55,1.59,-3.84,1.41],["c",-.15,-.03,-.33,-.06,-.39,-.09],["c",-.06,-.03,-.09,-.03,-.12,-.03],["c",0,0,-.06,.42,-.15,.93],["c",-.33,2.01,-.66,3.69,-.84,4.26],["c",-.42,1.41,-1.23,2.67,-2.16,3.33],["c",-.27,.18,-.75,.42,-.99,.48],["c",-.3,.09,-.72,.09,-1.02,.06],["c",-.45,-.09,-.84,-.33,-1.53,-.9],["c",-.21,-.18,-.51,-.39,-.63,-.48],["c",-.27,-.21,-.3,-.24,-.3,-.36],["c",0,-.12,.09,-.36,.18,-.45],["c",.09,-.09,.27,-.18,.36,-.18],["c",.12,0,.3,.12,.66,.45],["c",.57,.51,.87,.69,1.23,.72],["c",.93,.06,1.68,-.78,1.98,-2.37],["c",.09,-.39,.15,-.75,.18,-1.53],["c",.06,-.99,.24,-2.79,.42,-4.05],["c",.03,-.3,.06,-.57,.06,-.6],["c",0,-.06,-.03,-.09,-.15,-.12],["c",-.9,-.18,-2.13,.06,-2.76,.57],["c",-.36,.3,-.51,.6,-.51,1.02],["c",0,.45,.15,.75,.48,.99],["c",.06,.06,.15,.18,.18,.24],["c",.12,.24,.03,.63,-.15,.69],["c",-.24,.12,-.6,.15,-.9,.15],["c",-.36,-.03,-.57,-.09,-.87,-.24],["c",-.78,-.36,-1.23,-1.11,-1.2,-1.92],["c",.12,-1.53,1.74,-2.49,4.62,-2.7],["c",1.2,-.09,1.47,-.03,3.33,.57],["c",.9,.3,1.14,.36,1.56,.39],["c",.45,0,.93,-.06,1.38,-.21],["c",.51,-.18,.81,-.33,1.41,-.75],["z"],["m",-4.68,10.38],["c",.39,-.06,.84,0,1.2,.15],["c",.24,.12,.36,.21,.45,.36],["l",.09,.09],["l",-.06,1.41],["c",-.09,2.19,-.18,3.96,-.27,5.49],["c",-.03,.78,-.06,1.59,-.06,1.86],["c",0,.42,0,.48,.06,.57],["c",.06,.18,.18,.24,.36,.27],["c",.18,0,.39,-.06,.84,-.27],["c",.45,-.21,.54,-.24,.63,-.18],["c",.12,.12,.15,.54,.03,.69],["c",-.03,.03,-.15,.12,-.27,.18],["c",-.15,.03,-.3,.12,-.36,.15],["c",-.87,.45,-1.02,.51,-1.26,.57],["c",-.33,.09,-.6,.06,-.84,-.06],["c",-.42,-.18,-.63,-.6,-.87,-1.44],["c",-.3,-1.23,-.57,-2.97,-.66,-4.08],["c",0,-.18,-.03,-.3,-.03,-.33],["l",-.06,.06],["c",-.18,.27,-1.11,1.38,-1.68,2.01],["l",-.33,.33],["l",.06,.09],["c",.06,.15,.27,.33,.48,.42],["c",.27,.18,.51,.24,.96,.27],["l",.39,0],["l",.03,.12],["c",.12,.21,.03,.57,-.15,.69],["c",-.03,.03,-.21,.09,-.36,.15],["c",-.27,.06,-.39,.06,-.75,.06],["c",-.48,0,-.75,-.03,-1.08,-.21],["c",-.21,-.12,-.51,-.36,-.57,-.48],["l",-.03,-.09],["l",-.39,.36],["c",-1.47,1.35,-2.49,1.98,-3.42,2.13],["c",-.54,.09,-.96,-.03,-1.62,-.39],["c",-.21,-.15,-.45,-.27,-.54,-.3],["c",-.18,-.09,-.21,-.21,-.12,-.45],["c",.06,-.27,.33,-.48,.54,-.48],["c",.03,0,.27,.09,.48,.21],["c",.48,.24,.69,.27,.99,.27],["c",.6,-.06,1.17,-.42,2.1,-1.35],["c",2.22,-2.22,4.02,-4.98,4.95,-7.59],["c",.21,-.57,.3,-.78,.48,-.93],["c",.15,-.15,.42,-.27,.66,-.33],["z"],["m",-3.06,12.84],["c",.27,-.03,1.68,0,2.01,.03],["c",1.92,.18,3.15,.69,3.63,1.5],["c",.18,.33,.24,.51,.21,.93],["c",0,.45,-.06,.72,-.24,1.11],["c",-.24,.51,-.69,1.02,-1.17,1.35],["c",-.21,.15,-.21,.15,-.12,.18],["c",.72,.15,1.11,.3,1.5,.57],["c",.39,.24,.63,.57,.75,.96],["c",.09,.3,.09,.96,0,1.29],["c",-.15,.57,-.39,1.05,-.78,1.5],["c",-.66,.75,-1.62,1.32,-2.61,1.53],["c",-.27,.06,-.42,.06,-.84,.06],["c",-.48,0,-.57,0,-.81,-.06],["c",-.6,-.18,-1.05,-.42,-1.47,-.81],["c",-.36,-.39,-.42,-.51,-.3,-.75],["c",.12,-.21,.39,-.39,.6,-.39],["c",.09,0,.15,.03,.33,.18],["c",.12,.12,.27,.24,.36,.27],["c",.96,.48,2.46,-.33,2.82,-1.5],["c",.24,-.81,-.03,-1.44,-.69,-1.77],["c",-.39,-.21,-1.02,-.33,-1.53,-.33],["c",-.18,0,-.21,0,-.27,-.09],["c",-.06,-.09,-.06,-.3,-.03,-.48],["c",.06,-.18,.18,-.36,.33,-.36],["c",.39,-.06,.51,-.09,.72,-.18],["c",.69,-.36,1.11,-1.23,.99,-2.01],["c",-.09,-.51,-.42,-.9,-.93,-1.17],["c",-.24,-.12,-.6,-.27,-.87,-.3],["c",-.09,-.03,-.09,-.03,-.12,.12],["c",0,.09,-.21,1.11,-.42,2.25],["c",-.66,3.75,-.72,3.99,-1.26,5.07],["c",-.9,1.89,-2.25,2.85,-3.48,2.61],["c",-.39,-.09,-.69,-.27,-1.38,-.84],["c",-.63,-.51,-.63,-.48,-.63,-.6],["c",0,-.18,.18,-.48,.39,-.57],["c",.21,-.12,.3,-.09,.81,.33],["c",.15,.15,.39,.3,.54,.36],["c",.18,.12,.27,.12,.48,.15],["c",.99,.06,1.71,-.78,2.04,-2.46],["c",.12,-.66,.18,-1.14,.21,-2.22],["c",.03,-1.23,.12,-2.25,.36,-3.63],["c",.03,-.24,.06,-.45,.06,-.48],["c",-.06,-.03,-.66,.27,-.9,.42],["c",-.06,.06,-.21,.18,-.33,.3],["c",-.57,.57,-.6,1.35,-.06,1.74],["c",.18,.12,.24,.24,.21,.51],["c",-.03,.3,-.15,.42,-.57,.48],["c",-1.11,.24,-2.22,-.42,-2.43,-1.38],["c",-.09,-.45,.03,-1.02,.3,-1.47],["c",.18,-.24,.6,-.63,.9,-.84],["c",.9,-.6,2.28,-1.02,3.69,-1.11],["z"]],w:15.709,h:34.656},"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.85,-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}};He["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};He["noteheads.slash.quarter"]={d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9};He["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};He["noteheads.triangle.quarter"]={d:[["M",0,4],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9};var mn=function(e){for(var t=[],r=0,a=e.length;r0?n.top+3:n.bottom-1,c=a>0?n.top+3:n.bottom-3,f=c-2;e.type==="bass-8"&&(u=3,h=0),n.addRight(new Nr("8",i+h,v0.getSymbolWidth("8")*l,u,{scalex:l,scaley:l,top:c,bottom:f}))}}return n};function dl(e){switch(e){case"clefs.G":return-5;case"clefs.C":return-4;case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}var pl=ul,gl=r0,j0=_t,vl=lt,bl=function(e,t){if(e.el_type="keySignature",!e.accidentals||e.accidentals.length===0)return null;var r=new gl(e,0,10,"staff-extra key-signature",t);r.isKeySig=!0;var a=0;return e.accidentals.forEach(function(n){var i,s=0;switch(n.acc){case"sharp":i="accidentals.sharp",s=-3;break;case"natural":i="accidentals.nat";break;case"flat":i="accidentals.flat",s=-1.2;break;case"quartersharp":i="accidentals.halfsharp",s=-2.5;break;case"quarterflat":i="accidentals.halfflat",s=-1.2;break;default:i="accidentals.flat"}r.addRight(new vl(i,a,j0.getSymbolWidth(i),n.verticalPos,{thickness:j0.symbolHeightInPitches(i),top:n.verticalPos+j0.symbolHeightInPitches(i)+s,bottom:n.verticalPos+s})),a+=j0.getSymbolWidth(i)+2},this),r},ml=bl,Je=_t,Wt=lt,yl=function(e,t,r,a){a||(a={});var n=a.dir!==void 0?a.dir:null,i=a.headx!==void 0?a.headx:0,s=a.extrax!==void 0?a.extrax:0,o=a.flag!==void 0?a.flag:null,l=a.dot!==void 0?a.dot:0,h=a.dotshiftx!==void 0?a.dotshiftx:0,u=a.scale!==void 0?a.scale:1,c=a.accidentalSlot!==void 0?a.accidentalSlot:[],f=a.shouldExtendStem!==void 0?a.shouldExtendStem:!1,d=a.printAccidentals!==void 0?a.printAccidentals:!0,p=r.verticalPos,g,v=0,y=0,w=0;if(t===void 0)e.addFixed(new Wt("pitch is undefined",0,0,0,{type:"debug"}));else if(t==="")g=new Wt(null,0,0,p);else{var k=i;if(r.printer_shift){var b=r.printer_shift==="same"?1:0;k=n==="down"?-Je.getSymbolWidth(t)*u+b:Je.getSymbolWidth(t)*u-b}var m={scalex:u,scaley:u,thickness:Je.symbolHeightInPitches(t)*u,name:r.name};if(g=new Wt(t,k,Je.getSymbolWidth(t)*u,p,m),g.stemDir=n,o){var C=p+(n==="down"?-7:7)*u;f&&(n==="down"&&C>6&&(C=6),n==="up"&&C<6&&(C=6));var _=n==="down"?i:i+g.w-.6;e.addRight(new Wt(o,_,Je.getSymbolWidth(o)*u,C,{scalex:u,scaley:u}))}for(y=g.w+h-2+5*l;l>0;l--){var M=1-Math.abs(p)%2;e.addRight(new Wt("dots.dot",g.w+h-2+5*l,Je.getSymbolWidth("dots.dot"),p+M))}}if(g&&(g.highestVert=r.highestVert),d&&r.accidental){var L;switch(r.accidental){case"quartersharp":L="accidentals.halfsharp";break;case"dblsharp":L="accidentals.dblsharp";break;case"sharp":L="accidentals.sharp";break;case"quarterflat":L="accidentals.halfflat";break;case"flat":L="accidentals.flat";break;case"dblflat":L="accidentals.dblflat";break;case"natural":L="accidentals.nat"}for(var P=!1,q=s,F=0;F=6){c[F][0]=p,q=c[F][1],P=!0;break}P===!1&&(q-=Je.getSymbolWidth(L)*u+2,c.push([p,q]),v=Je.getSymbolWidth(L)*u+2);var D=Je.symbolHeightInPitches(L);e.addExtra(new Wt(L,q,Je.getSymbolWidth(L),p,{scalex:u,scaley:u,top:p+D/2,bottom:p-D/2})),w=Je.getSymbolWidth(L)/2}return{notehead:g,accidentalshiftx:v,dotshiftx:y,extraLeft:w}},wl=yl,xl=r0,be=_t,ot=lt,Cl=function(e,t){e.el_type="timeSignature";var r=new xl(e,0,10,"staff-extra time-signature",t);if(e.type==="specified")for(var a=0,n=0;n0)this.above=!1;else{var e;this.anchor1?e=this.anchor1.pitch:this.anchor2?e=this.anchor2.pitch:e=14,this.anchor1&&this.anchor1.stemDir==="down"&&this.anchor2&&this.anchor2.stemDir==="down"?this.above=!0:this.anchor1&&this.anchor1.stemDir==="up"&&this.anchor2&&this.anchor2.stemDir==="up"?this.above=!1:this.anchor1&&this.anchor2?this.above=e>=6:this.anchor1?this.above=this.anchor1.stemDir==="down":this.anchor2?this.above=this.anchor2.stemDir==="down":this.above=e>=6}};Xe.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(this.voiceNumber===0)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e=!1;this.anchor1&&this.anchor1.stemDir==="down"&&(e=!0),this.anchor2&&this.anchor2.stemDir==="down"&&(e=!0);for(var t=0;te&&(e=this.internalNotes[t].highestVert);e>this.startY&&e>this.endY&&(this.startY=this.endY=e-1)}};var Wi=Xe,Nl=_l,yn=El,Bl=Ml,rt=_t,Ht=lt,Ll=Wi,ma=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},Pl=function(e,t,r,a,n,i,s,o,l){for(var h,u=0;u9&&h++;var f=a/2;rt.getSymbolAlign(c)!=="center"&&(f-=rt.getSymbolWidth(c)/2),n.addFixedX(new Ht(c,f,rt.getSymbolWidth(c),h))}if(t[u]==="slide"&&n.heads[0]){var d=n.heads[0].pitch;d-=2;var p=new Ht("",-i-15,0,d-1),g=new Ht("",-i-5,0,d+1);n.addFixedX(p),n.addFixedX(g),e.addOther(new Ll({anchor1:p,anchor2:g,fixedY:!0}))}}return h===void 0&&(h=r),{above:h,below:n.bottom}},Dl=function(e,t,r,a){for(var n=0;ns&&(v=s)),v}function u(g,v,y){var w=h(v),k=2,b=5;r.addFixedX(new Ht(g,t/2,0,w+k,{type:"decoration",klass:"ornament",thickness:3,anchor:y})),l(v,b)}function c(g,v){var y=t/2;rt.getSymbolAlign(g)!=="center"&&(y-=rt.getSymbolWidth(g)/2);var w=rt.symbolHeightInPitches(g)+1,k=h(v);k=v==="above"?k+w/2:k-w/2,r.addFixedX(new Ht(g,y,rt.getSymbolWidth(g),k,{klass:"ornament",thickness:rt.symbolHeightInPitches(g),position:v})),l(v,w)}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"},d=!1,p=0;p",a)),i&&e.addOther(new yn(i.start,i.stop,"<",a)),s&&e.addOther(new Bl(s.start,s.stop))};ma.prototype.createDecoration=function(e,t,r,a,n,i,s,o,l,h,u){l||(l={ornamentPosition:"above",volumePosition:h?"above":"below",dynamicPosition:h?"above":"below"}),Dl(e,t,n,l.volumePosition),this.dynamicDecoration(e,t,n,l.dynamicPosition),Fl(t,r,a,n,s);var c=Pl(e,t,r,a,n,i,s,o,u);c.above=Math.max(c.above,this.minTop),c.below=Math.min(c.below,o),$l(t,a,n,c,l.ornamentPosition,this.minTop,o,u),Il(t,n,i)};var Ol=ma,Hl=function(t,r,a){this.type="EndingElem",this.text=t,this.anchor1=r,this.anchor2=a,this.endingHeightAbove=5,this.pitch=void 0},zl=Hl,ql=function(e){for(var t=0,r=0;r=0;v--){var y=g[v],w=0,k;a||(y=Zl(y,d,p));var b=o.calc(y,n,i),m=b.width,C=b.height/Br.STEP;switch(t){case"left":u+=m+7,w=-u,k=h.averagepitch,l.addExtra(new Ut(y,w,m+4,k,{type:"text",height:C,dim:s,position:"left"}));break;case"right":c+=4,w=c,k=h.averagepitch,l.addRight(new Ut(y,w,m+4,k,{type:"text",height:C,dim:s,position:"right"}));break;case"below":l.addRight(new Ut(y,0,0,void 0,{type:"text",position:"below",height:C,dim:s,realWidth:m}));break;case"above":l.addRight(new Ut(y,0,0,void 0,{type:"text",position:"above",height:C,dim:s,realWidth:m}));break;default:if(r){var _=r.y+3*Br.STEP;l.addRight(new Ut(y,w+r.x,0,h.minpitch+_/Br.STEP,{position:"relative",type:"text",height:C,dim:s}))}else{var M="above";h.positioning&&h.positioning.chordPosition&&(M=h.positioning.chordPosition),M!=="hidden"&&l.addCentered(new Ut(y,f/2,m,void 0,{type:"chord",position:M,height:C,dim:s,realWidth:m}))}}}return{roomTaken:u,roomTakenRight:c}}var tf=ef,e0=n0,Ui=cl,Cn=ll,Xi=vl,Vi=wl,F0=Cl,ji=_l,rf=Hl,Ki=Yl,_0=_t,me=ft,$0=$e,af=Ul,Qi=jl,t0=Wi,nf=Kl,sf=Bi,Ji=tf,of=Ei,Ct=Fe,ea=function(e){var t=0;return e.duration&&(t=e.duration),t},at=!1,tt={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"},triangle:{"-1":"noteheads.triangle.quarter",0:"noteheads.triangle.quarter",1:"noteheads.triangle.quarter",2:"noteheads.triangle.quarter",3:"noteheads.triangle.quarter",4:"noteheads.triangle.quarter",5:"noteheads.triangle.quarter",6:"noteheads.triangle.quarter",7:"noteheads.triangle.quarter",nostem:"noteheads.triangle.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"}},ye=function(e,t,r){this.decoration=new rf,this.getTextSize=e,this.tuneNumber=t,this.isBagpipes=r.bagpipes,this.flatBeams=r.flatbeams,this.graceSlurs=r.graceSlurs,this.percmap=r.percmap,this.initialClef=r.initialClef,this.jazzchords=!!r.jazzchords,this.accentAbove=!!r.accentAbove,this.germanAlphabet=!!r.germanAlphabet,this.reset()};ye.prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.voiceColor=void 0,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.colorByVoice={},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};ye.prototype.setStemHeight=function(e){this.stemHeight=Math.round(e*10/$0.STEP)/10};ye.prototype.getCurrentVoiceId=function(e,t){return"s"+e+"v"+t};ye.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,this.voiceColor&&(this.colorByVoice[this.getCurrentVoiceId(e,t)]=this.voiceColor)};ye.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)],this.voiceScale===void 0&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(e,t)]};ye.prototype.containsLyrics=function(e){for(var t=0;t0&&(n[0].invisible=!0);break;case"meter":n[0]=ji(a,this.tuneNumber),this.startlimitelem=n[0],r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"clef":if(n[0]=Xi(a,this.tuneNumber),!n[0])return null;r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"key":var i=Vi(a,this.tuneNumber);i&&(n[0]=i,this.startlimitelem=n[0]),r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"stem":this.stemdir=a.direction==="auto"?void 0:a.direction;break;case"part":var s=new e0(a,0,0,"part",this.tuneNumber),o=this.getTextSize.calc(a.title,"partsfont","part");s.addFixedX(new me(a.title,0,0,void 0,{type:"part",height:o.height/$0.STEP})),n[0]=s;break;case"tempo":var l=new e0(a,0,0,"tempo",this.tuneNumber);l.addFixedX(new Qi(a,this.tuneNumber,F0)),n[0]=l;break;case"style":a.head==="normal"?delete this.style:this.style=a.head;break;case"hint":at=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=a.size;break;case"color":this.voiceColor=a.color,r.color=this.voiceColor;break;default:var h=new e0(a,0,0,"unsupported",this.tuneNumber);h.addFixed(new me("element type "+a.el_type,0,0,void 0,{type:"debug"})),n[0]=h}return n};function lf(e){if(e.pitches){ff(e);for(var t=0,r=0;re.pitches[r+1].pitch){t=!1;var a=e.pitches[r];e.pitches[r]=e.pitches[r+1],e.pitches[r+1]=a}}while(!t)},Zi=function(e,t,r,a,n,i,s,o,l){for(var h=r;h>11;h--)h%2===0&&!a&&e.addFixed(new me(null,o,(n+4)*l,h,{type:"ledger"}));for(h=t;h<1;h++)h%2===0&&!a&&e.addFixed(new me(null,o,(n+4)*l,h,{type:"ledger"}));for(h=0;h1&&(h=new Ui(n,"grace",i),at&&h.setHint(),h.mainNote=r);var c,f=[];for(c=e.gracenotes.length-1;c>=0;c--)s+=10,f[c]=s,e.gracenotes[c].accidental&&(s+=7);for(c=0;c=6?"down":"up";a&&(w=a),n=t.style?t.style:n,(!n||n==="normal")&&(n="note");var k;i?k=tt[n].nostem:k=tt[n][-s],k||console.log("noteSymbol:",n,s,i);var b;for(b=w==="down"?t.pitches.length-2:1;w==="down"?b>=0:b11||C.verticalPos<1)&&g.push(C.verticalPos-C.verticalPos%2),w==="down"?c=_0.getSymbolWidth(k)+2:h=_0.getSymbolWidth(k)+2)}var M=t.pitches.length;for(b=0;b0&&(u.bottom=u.bottom-1),e.addHead(u)),c+=R.accidentalshiftx,f=Math.max(f,R.dotshiftx)}if($){var x=Math.round(70*this.voiceScale)/10,T=w==="down"?t.minpitch-x:t.minpitch+1/3;T>6&&!a&&(T=6);var S=w==="down"?t.maxpitch-1/3:t.maxpitch+x;S<6&&!a&&(S=6);var N=w==="down"||e.heads.length===0?0:e.heads[0].w,Y=w==="down"?1:-1;u&&u.c==="noteheads.slash.quarter"&&(w==="down"?S-=1:T+=1),u&&u.c==="noteheads.triangle.quarter"&&(w==="down"?S-=.7:T-=1.2),e.addRight(new me(null,N,0,T,{type:"stem",pitch2:S,linewidth:Y,bottom:T-1})),d=Math.min(T,S)}return{noteHead:u,roomTaken:c,roomTakenRight:f,min:d,additionalLedgers:g,dir:w,symbolWidth:y}};ye.prototype.addLyric=function(e,t){var r="";t.lyric.forEach(function(i){var s=i.divider===" "?"":i.divider;r+=i.syllable+s+` -`});var a=this.getTextSize.calc(r,"vocalfont","lyric"),n=t.positioning?t.positioning.vocalPosition:"below";e.addCentered(new me(r,0,a.width,void 0,{type:"lyric",position:n,height:a.height/$0.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))};ye.prototype.createNote=function(e,t,r,a){var n=null,i=0,s=0,o=0,l=[],h,u=ea(e),c=!1;u===0&&(c=!0,u=.25,t=!0);for(var f=Math.floor(Math.log(u)/Math.log(2)),d=0,p=Math.pow(2,f),g=p/2;p1,this.stemdir,r,f,this.voiceScale);n=k.noteHead,i=k.roomTaken,s=k.roomTakenRight}else{var b=this.addNoteToAbcElement(w,e,d,this.stemdir,this.style,c,f,t,a);b.min!==void 0&&(this.minY=Math.min(b.min,this.minY)),n=b.noteHead,i=b.roomTaken,s=b.roomTakenRight,l=b.additionalLedgers,h=b.dir,o=b.symbolWidth}if(e.lyric!==void 0&&this.addLyric(w,e),e.gracenotes!==void 0&&(i+=this.addGraceNotes(e,a,w,n,this.stemHeight*this.voiceScale,this.isBagpipes,i)),e.decoration){var m=t?Math.min(-3,w.bottom-6):w.bottom;this.decoration.createDecoration(a,e.decoration,w.top,n?n.w:0,w,i,h,m,e.positioning,this.hasVocals,this.accentAbove)}if(e.barNumber&&w.addFixed(new me(e.barNumber,-10,0,0,{type:"barNumber"})),Zi(w,e.minpitch,e.maxpitch,e.rest,o,l,h,-2,1),e.chord!==void 0){var C=Ji(this.getTextSize,w,e,i,s,o,this.jazzchords,this.germanAlphabet);i=C.roomTaken,s=C.roomTakenRight}return e.startTriplet&&(this.triplet=new nf(e.startTriplet,n,{flatBeams:this.flatBeams})),e.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(n),this.triplet&&!e.startTriplet&&!e.endTriplet&&!(e.rest&&e.rest.type==="spacer")&&this.triplet.middleNote(n),w};ye.prototype.addSlursAndTies=function(e,t,r,a,n,i){if(t.endTie&&this.ties.length>0){for(var s=!1,o=0;o10&&t.abcelem.type==="treble"?13:11;t.addFixed(new me(e,a,r.width,n+r.height/$0.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))};ye.prototype.createBarLine=function(e,t,r){var a=new e0(t,0,10,"bar",this.tuneNumber),n=null,i=0;t.barNumber&&this.addMeasureNumber(t.barNumber,a);var s=t.type==="bar_right_repeat"||t.type==="bar_dbl_repeat",o=t.type!=="bar_left_repeat"&&t.type!=="bar_thick_thin"&&t.type!=="bar_invisible",l=t.type==="bar_right_repeat"||t.type==="bar_dbl_repeat"||t.type==="bar_left_repeat"||t.type==="bar_thin_thick"||t.type==="bar_thick_thin",h=t.type==="bar_left_repeat"||t.type==="bar_thick_thin"||t.type==="bar_thin_thin"||t.type==="bar_dbl_repeat",u=t.type==="bar_left_repeat"||t.type==="bar_dbl_repeat";if(s||u){for(var c in this.slurs)this.slurs.hasOwnProperty(c)&&this.slurs[c].setEndX(a);this.startlimitelem=a}if(s&&(a.addRight(new me("dots.dot",i,1,7)),a.addRight(new me("dots.dot",i,1,5)),i+=6),o&&(n=new me(null,i,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(n)),t.type==="bar_invisible"&&(n=new me(null,i,1,2,{type:"none",pitch2:10,linewidth:.6}),a.addRight(n)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,l?3:1,a,0,"down",2,t.positioning,this.hasVocals,this.accentAbove),l&&(i+=4,n=new me(null,i,4,2,{type:"bar",pitch2:10,linewidth:4}),a.addRight(n),i+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=n,this.partstartelem=null),h&&(i+=3,n=new me(null,i,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(n)),u&&(i+=3,a.addRight(new me("dots.dot",i,1,7)),a.addRight(new me("dots.dot",i,1,5))),t.startEnding&&r){var f=this.getTextSize.calc(t.startEnding,"repeatfont","").width;a.minspacing+=f+10,this.partstartelem=new Ki(t.startEnding,n,null),e.addOther(this.partstartelem)}return a.extraw-=5,t.chord!==void 0&&Ji(this.getTextSize,a,t,0,0,0,!1,this.germanAlphabet),a};var uf=ye,De="http://www.w3.org/2000/svg";function se(e){this.svg=wa(),this.currentGroup=[],e.appendChild(this.svg)}se.prototype.clear=function(){if(this.svg){var e=this.svg.parentNode;this.svg=wa(),this.currentGroup=[],e&&(e.innerHTML="",e.appendChild(this.svg))}};se.prototype.setTitle=function(e){var t=document.createElement("title"),r=document.createTextNode(e);t.appendChild(r),this.svg.insertBefore(t,this.svg.firstChild)};se.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 r=this.svg.parentNode.getAttribute("class");r?r.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",r+" 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 a=t/e*100;this.svg.parentNode.style["padding-bottom"]=a+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}};se.prototype.setSize=function(e,t){this.svg.setAttribute("width",e),this.svg.setAttribute("height",t)};se.prototype.setAttribute=function(e,t){this.svg.setAttribute(e,t)};se.prototype.setScale=function(e){e!==1?(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"]="")};se.prototype.insertStyles=function(e){var t=document.createElementNS(De,"style");t.textContent=e,this.svg.insertBefore(t,this.svg.firstChild)};se.prototype.setParentStyles=function(e){for(var t in e)e.hasOwnProperty(t)&&this.svg.parentNode&&(this.svg.parentNode.style[t]=e[t]);if(this.dummySvg){var r=document.querySelector("body");r.removeChild(this.dummySvg),this.dummySvg=null}};function Tn(e,t,r){var a=r-e;return"M "+e+" "+t+" l "+a+" 0 l 0 1 l "+-a+" 0 z "}function _n(e,t,r){var a=r-t;return"M "+e+" "+t+" l 0 "+a+" l 1 0 l 0 "+-a+" z "}se.prototype.rect=function(e){var t=[],r=e.x,a=e.y,n=e.x+e.width,i=e.y+e.height;return t.push(Tn(r,a,n)),t.push(Tn(r,i,n)),t.push(_n(n,a,i)),t.push(_n(r,i,a)),this.path({path:t.join(" "),stroke:"none","data-name":e["data-name"]})};se.prototype.dottedLine=function(e){var t=document.createElementNS(De,"line");t.setAttribute("x1",e.x1),t.setAttribute("x2",e.x2),t.setAttribute("y1",e.y1),t.setAttribute("y2",e.y2),t.setAttribute("stroke",e.stroke),t.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(t,this.svg.firstChild)};se.prototype.rectBeneath=function(e){var t=document.createElementNS(De,"rect");t.setAttribute("x",e.x),t.setAttribute("width",e.width),t.setAttribute("y",e.y),t.setAttribute("height",e.height),e.stroke&&t.setAttribute("stroke",e.stroke),e["stroke-opacity"]&&t.setAttribute("stroke-opacity",e["stroke-opacity"]),e.fill&&t.setAttribute("fill",e.fill),e["fill-opacity"]&&t.setAttribute("fill-opacity",e["fill-opacity"]),this.svg.insertBefore(t,this.svg.firstChild)};se.prototype.text=function(e,t,r){var a=document.createElementNS(De,"text");a.setAttribute("stroke","none");for(var n in t)t.hasOwnProperty(n)&&a.setAttribute(n,t[n]);for(var i=(""+e).split(` -`),s=0;s0?this.currentGroup[0].removeChild(r):this.svg.removeChild(r)),a&&(Lr[a]=i),i};se.prototype.openGroup=function(e){e=e||{};var t=document.createElementNS(De,"g");return e.klass&&t.setAttribute("class",e.klass),e.fill&&t.setAttribute("fill",e.fill),e.stroke&&t.setAttribute("stroke",e.stroke),e["data-name"]&&t.setAttribute("data-name",e["data-name"]),e.prepend?this.prepend(t):this.append(t),this.currentGroup.unshift(t),t};se.prototype.closeGroup=function(){var e=this.currentGroup.shift();return e&&e.children.length===0?(e.parentElement.removeChild(e),null):e};se.prototype.path=function(e){var t=document.createElementNS(De,"path");for(var r in e)e.hasOwnProperty(r)&&(r==="path"?t.setAttributeNS(null,"d",e.path):r==="klass"?t.setAttributeNS(null,"class",e[r]):e[r]!==void 0&&t.setAttributeNS(null,r,e[r]));return this.append(t),t};se.prototype.pathToBack=function(e){var t=document.createElementNS(De,"path");for(var r in e)e.hasOwnProperty(r)&&(r==="path"?t.setAttributeNS(null,"d",e.path):r==="klass"?t.setAttributeNS(null,"class",e[r]):t.setAttributeNS(null,r,e[r]));return this.prepend(t),t};se.prototype.lineToBack=function(e){for(var t=document.createElementNS(De,"line"),r=Object.keys(e),a=0;a0?this.currentGroup[0].appendChild(e):this.svg.appendChild(e)};se.prototype.prepend=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)};se.prototype.setAttributeOnElement=function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setAttributeNS(null,r,t[r])};se.prototype.moveElementToChild=function(e,t){e.appendChild(t)};function wa(){var e=document.createElementNS(De,"svg");return e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),e.setAttribute("role","img"),e.setAttribute("fill","currentColor"),e.setAttribute("stroke","currentColor"),e}var df=se,es=$e,pf=df,Ve=function(e){this.paper=new pf(e),this.controller=null,this.space=3*es.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf("Firefox/112.0")>=0};Ve.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()};Ve.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.isPrint=e.media==="print",this.setPadding(e)};Ve.prototype.setLineThickness=function(e){this.lineThickness=e};Ve.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}};Ve.prototype.setPadding=function(e){function t(r,a,n,i,s){e.formatting[n]!==void 0?r.padding[a]=e.formatting[n]:r.paddingOverride[a]!==void 0?r.padding[a]=r.paddingOverride[a]:r.isPrint?r.padding[a]=i:r.padding[a]=s}t(this,"top","topmargin",38,15),t(this,"bottom","botmargin",38,15),t(this,"left","leftmargin",68,15),t(this,"right","rightmargin",68,15)};Ve.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};Ve.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,staffTopMargin:0,stemHeight:26.67+10,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}};Ve.prototype.setVerticalSpace=function(e){e.staffsep!==void 0&&(this.spacing.staffSeparation=e.staffsep*4/3),e.composerspace!==void 0&&(this.spacing.composer=e.composerspace*4/3),e.partsspace!==void 0&&(this.spacing.parts=e.partsspace*4/3),e.textspace!==void 0&&(this.spacing.text=e.textspace*4/3),e.musicspace!==void 0&&(this.spacing.music=e.musicspace*4/3),e.titlespace!==void 0&&(this.spacing.title=e.titlespace*4/3),e.sysstaffsep!==void 0&&(this.spacing.systemStaffSeparation=e.sysstaffsep*4/3),e.stafftopmargin!==void 0&&(this.spacing.staffTopMargin=e.stafftopmargin*4/3),e.subtitlespace!==void 0&&(this.spacing.subtitle=e.subtitlespace*4/3),e.topspace!==void 0&&(this.spacing.top=e.topspace*4/3),e.vocalspace!==void 0&&(this.spacing.vocal=e.vocalspace*4/3),e.wordsspace!==void 0&&(this.spacing.words=e.wordsspace*4/3)};Ve.prototype.calcY=function(e){return this.y-e*es.STEP};Ve.prototype.moveY=function(e,t){t===void 0&&(t=1),this.y+=e*t};Ve.prototype.absolutemoveY=function(e){this.y=e};var gf=Ve;function vf(e,t,r,a,n,i){var s=e.text;this.rows=[];var o;t&&this.rows.push({move:t});var l=r.calc("textfont","defined-text");if(s==="")this.rows.push({move:l.attr["font-size"]*2});else if(typeof s=="string")this.rows.push({move:l.attr["font-size"]/2}),this.rows.push({left:a,text:s,font:"textfont",klass:"defined-text",anchor:"start",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),o=i.calc(s,"textfont","defined-text"),this.rows.push({move:o.height});else if(s){for(var h=0,u=a,c="textfont",f=0;f=0;v--){var y=g[v],w=0,k;a||(y=Ql(y,d,p));var b=o.calc(y,n,i),m=b.width,C=b.height/Br.STEP;switch(t){case"left":u+=m+7,w=-u,k=h.averagepitch,l.addExtra(new Ut(y,w,m+4,k,{type:"text",height:C,dim:s,position:"left"}));break;case"right":c+=4,w=c,k=h.averagepitch,l.addRight(new Ut(y,w,m+4,k,{type:"text",height:C,dim:s,position:"right"}));break;case"below":l.addRight(new Ut(y,0,0,void 0,{type:"text",position:"below",height:C,dim:s,realWidth:m}));break;case"above":l.addRight(new Ut(y,0,0,void 0,{type:"text",position:"above",height:C,dim:s,realWidth:m}));break;default:if(r){var _=r.y+3*Br.STEP;l.addRight(new Ut(y,w+r.x,0,h.minpitch+_/Br.STEP,{position:"relative",type:"text",height:C,dim:s}))}else{var M="above";h.positioning&&h.positioning.chordPosition&&(M=h.positioning.chordPosition),M!=="hidden"&&l.addCentered(new Ut(y,f/2,m,void 0,{type:"chord",position:M,height:C,dim:s,realWidth:m}))}}}return{roomTaken:u,roomTakenRight:c}}var Zl=Jl,Zt=r0,Ui=sl,Cn=ol,Xi=pl,Vi=ml,D0=wl,ji=kl,ef=Ol,Ki=zl,k0=_t,me=lt,F0=$e,tf=Rl,Qi=Xl,e0=Wi,rf=Vl,af=Bi,Ji=Zl,nf=Ei,Ct=Fe,ea=function(e){var t=0;return e.duration&&(t=e.duration),t},at=!1,tt={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"},triangle:{"-1":"noteheads.triangle.quarter",0:"noteheads.triangle.quarter",1:"noteheads.triangle.quarter",2:"noteheads.triangle.quarter",3:"noteheads.triangle.quarter",4:"noteheads.triangle.quarter",5:"noteheads.triangle.quarter",6:"noteheads.triangle.quarter",7:"noteheads.triangle.quarter",nostem:"noteheads.triangle.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"}},ye=function(e,t,r){this.decoration=new ef,this.getTextSize=e,this.tuneNumber=t,this.isBagpipes=r.bagpipes,this.flatBeams=r.flatbeams,this.graceSlurs=r.graceSlurs,this.percmap=r.percmap,this.initialClef=r.initialClef,this.jazzchords=!!r.jazzchords,this.accentAbove=!!r.accentAbove,this.germanAlphabet=!!r.germanAlphabet,this.reset()};ye.prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.voiceColor=void 0,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.colorByVoice={},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};ye.prototype.setStemHeight=function(e){this.stemHeight=Math.round(e*10/F0.STEP)/10};ye.prototype.getCurrentVoiceId=function(e,t){return"s"+e+"v"+t};ye.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,this.voiceColor&&(this.colorByVoice[this.getCurrentVoiceId(e,t)]=this.voiceColor)};ye.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)],this.voiceScale===void 0&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(e,t)]};ye.prototype.containsLyrics=function(e){for(var t=0;t0&&(n[0].invisible=!0);break;case"meter":n[0]=ji(a,this.tuneNumber),this.startlimitelem=n[0],r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"clef":if(n[0]=Xi(a,this.tuneNumber),!n[0])return null;r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"key":var i=Vi(a,this.tuneNumber);i&&(n[0]=i,this.startlimitelem=n[0]),r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"stem":this.stemdir=a.direction==="auto"?void 0:a.direction;break;case"part":var s=new Zt(a,0,0,"part",this.tuneNumber),o=this.getTextSize.calc(a.title,"partsfont","part");s.addFixedX(new me(a.title,0,0,void 0,{type:"part",height:o.height/F0.STEP})),n[0]=s;break;case"tempo":var l=new Zt(a,0,0,"tempo",this.tuneNumber);l.addFixedX(new Qi(a,this.tuneNumber,D0)),n[0]=l;break;case"style":a.head==="normal"?delete this.style:this.style=a.head;break;case"hint":at=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=a.size;break;case"color":this.voiceColor=a.color,r.color=this.voiceColor;break;default:var h=new Zt(a,0,0,"unsupported",this.tuneNumber);h.addFixed(new me("element type "+a.el_type,0,0,void 0,{type:"debug"})),n[0]=h}return n};function of(e){if(e.pitches){cf(e);for(var t=0,r=0;re.pitches[r+1].pitch){t=!1;var a=e.pitches[r];e.pitches[r]=e.pitches[r+1],e.pitches[r+1]=a}}while(!t)},Zi=function(e,t,r,a,n,i,s,o,l){for(var h=r;h>11;h--)h%2===0&&!a&&e.addFixed(new me(null,o,(n+4)*l,h,{type:"ledger"}));for(h=t;h<1;h++)h%2===0&&!a&&e.addFixed(new me(null,o,(n+4)*l,h,{type:"ledger"}));for(h=0;h1&&(h=new Ui(n,"grace",i),at&&h.setHint(),h.mainNote=r);var c,f=[];for(c=e.gracenotes.length-1;c>=0;c--)s+=10,f[c]=s,e.gracenotes[c].accidental&&(s+=7);for(c=0;c=6?"down":"up";a&&(w=a),n=t.style?t.style:n,(!n||n==="normal")&&(n="note");var k;i?k=tt[n].nostem:k=tt[n][-s],k||console.log("noteSymbol:",n,s,i);var b;for(b=w==="down"?t.pitches.length-2:1;w==="down"?b>=0:b11||C.verticalPos<1)&&g.push(C.verticalPos-C.verticalPos%2),w==="down"?c=k0.getSymbolWidth(k)+2:h=k0.getSymbolWidth(k)+2)}var M=t.pitches.length;for(b=0;b0&&(u.bottom=u.bottom-1),e.addHead(u)),c+=Y.accidentalshiftx,f=Math.max(f,Y.dotshiftx)}if($){var x=Math.round(70*this.voiceScale)/10,T=w==="down"?t.minpitch-x:t.minpitch+1/3;T>6&&!a&&(T=6);var S=w==="down"?t.maxpitch-1/3:t.maxpitch+x;S<6&&!a&&(S=6);var N=w==="down"||e.heads.length===0?0:e.heads[0].w,G=w==="down"?1:-1;u&&u.c==="noteheads.slash.quarter"&&(w==="down"?S-=1:T+=1),u&&u.c==="noteheads.triangle.quarter"&&(w==="down"?S-=.7:T-=1.2),e.addRight(new me(null,N,0,T,{type:"stem",pitch2:S,linewidth:G,bottom:T-1})),d=Math.min(T,S)}return{noteHead:u,roomTaken:c,roomTakenRight:f,min:d,additionalLedgers:g,dir:w,symbolWidth:y}};ye.prototype.addLyric=function(e,t){var r="";t.lyric.forEach(function(i){var s=i.divider===" "?"":i.divider;r+=i.syllable+s+` +`});var a=this.getTextSize.calc(r,"vocalfont","lyric"),n=t.positioning?t.positioning.vocalPosition:"below";e.addCentered(new me(r,0,a.width,void 0,{type:"lyric",position:n,height:a.height/F0.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))};ye.prototype.createNote=function(e,t,r,a){var n=null,i=0,s=0,o=0,l=[],h,u=ea(e),c=!1;u===0&&(c=!0,u=.25,t=!0);for(var f=Math.floor(Math.log(u)/Math.log(2)),d=0,p=Math.pow(2,f),g=p/2;p1,this.stemdir,r,f,this.voiceScale);n=k.noteHead,i=k.roomTaken,s=k.roomTakenRight}else{var b=this.addNoteToAbcElement(w,e,d,this.stemdir,this.style,c,f,t,a);b.min!==void 0&&(this.minY=Math.min(b.min,this.minY)),n=b.noteHead,i=b.roomTaken,s=b.roomTakenRight,l=b.additionalLedgers,h=b.dir,o=b.symbolWidth}if(e.lyric!==void 0&&this.addLyric(w,e),e.gracenotes!==void 0&&(i+=this.addGraceNotes(e,a,w,n,this.stemHeight*this.voiceScale,this.isBagpipes,i)),e.decoration){var m=t?Math.min(-3,w.bottom-6):w.bottom;this.decoration.createDecoration(a,e.decoration,w.top,n?n.w:0,w,i,h,m,e.positioning,this.hasVocals,this.accentAbove)}if(e.barNumber&&w.addFixed(new me(e.barNumber,-10,0,0,{type:"barNumber"})),Zi(w,e.minpitch,e.maxpitch,e.rest,o,l,h,-2,1),e.chord!==void 0){var C=Ji(this.getTextSize,w,e,i,s,o,this.jazzchords,this.germanAlphabet);i=C.roomTaken,s=C.roomTakenRight}return e.startTriplet&&(this.triplet=new rf(e.startTriplet,n,{flatBeams:this.flatBeams})),e.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(n),this.triplet&&!e.startTriplet&&!e.endTriplet&&!(e.rest&&e.rest.type==="spacer")&&this.triplet.middleNote(n),w};ye.prototype.addSlursAndTies=function(e,t,r,a,n,i){if(t.endTie&&this.ties.length>0){for(var s=!1,o=0;o10&&t.abcelem.type==="treble"?13:11;t.addFixed(new me(e,a,r.width,n+r.height/F0.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))};ye.prototype.createBarLine=function(e,t,r){var a=new Zt(t,0,10,"bar",this.tuneNumber),n=null,i=0;t.barNumber&&this.addMeasureNumber(t.barNumber,a);var s=t.type==="bar_right_repeat"||t.type==="bar_dbl_repeat",o=t.type!=="bar_left_repeat"&&t.type!=="bar_thick_thin"&&t.type!=="bar_invisible",l=t.type==="bar_right_repeat"||t.type==="bar_dbl_repeat"||t.type==="bar_left_repeat"||t.type==="bar_thin_thick"||t.type==="bar_thick_thin",h=t.type==="bar_left_repeat"||t.type==="bar_thick_thin"||t.type==="bar_thin_thin"||t.type==="bar_dbl_repeat",u=t.type==="bar_left_repeat"||t.type==="bar_dbl_repeat";if(s||u){for(var c in this.slurs)this.slurs.hasOwnProperty(c)&&this.slurs[c].setEndX(a);this.startlimitelem=a}if(s&&(a.addRight(new me("dots.dot",i,1,7)),a.addRight(new me("dots.dot",i,1,5)),i+=6),o&&(n=new me(null,i,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(n)),t.type==="bar_invisible"&&(n=new me(null,i,1,2,{type:"none",pitch2:10,linewidth:.6}),a.addRight(n)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,l?3:1,a,0,"down",2,t.positioning,this.hasVocals,this.accentAbove),l&&(i+=4,n=new me(null,i,4,2,{type:"bar",pitch2:10,linewidth:4}),a.addRight(n),i+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=n,this.partstartelem=null),h&&(i+=3,n=new me(null,i,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(n)),u&&(i+=3,a.addRight(new me("dots.dot",i,1,7)),a.addRight(new me("dots.dot",i,1,5))),t.startEnding&&r){var f=this.getTextSize.calc(t.startEnding,"repeatfont","").width;a.minspacing+=f+10,this.partstartelem=new Ki(t.startEnding,n,null),e.addOther(this.partstartelem)}return a.extraw-=5,t.chord!==void 0&&Ji(this.getTextSize,a,t,0,0,0,!1,this.germanAlphabet),a};var ff=ye,De="http://www.w3.org/2000/svg";function se(e){this.svg=wa(),this.currentGroup=[],e.appendChild(this.svg)}se.prototype.clear=function(){if(this.svg){var e=this.svg.parentNode;this.svg=wa(),this.currentGroup=[],e&&(e.innerHTML="",e.appendChild(this.svg))}};se.prototype.setTitle=function(e){var t=document.createElement("title"),r=document.createTextNode(e);t.appendChild(r),this.svg.insertBefore(t,this.svg.firstChild)};se.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 r=this.svg.parentNode.getAttribute("class");r?r.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",r+" 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 a=t/e*100;this.svg.parentNode.style["padding-bottom"]=a+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}};se.prototype.setSize=function(e,t){this.svg.setAttribute("width",e),this.svg.setAttribute("height",t)};se.prototype.setAttribute=function(e,t){this.svg.setAttribute(e,t)};se.prototype.setScale=function(e){e!==1?(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"]="")};se.prototype.insertStyles=function(e){var t=document.createElementNS(De,"style");t.textContent=e,this.svg.insertBefore(t,this.svg.firstChild)};se.prototype.setParentStyles=function(e){for(var t in e)e.hasOwnProperty(t)&&this.svg.parentNode&&(this.svg.parentNode.style[t]=e[t]);if(this.dummySvg){var r=document.querySelector("body");r.removeChild(this.dummySvg),this.dummySvg=null}};function Tn(e,t,r){var a=r-e;return"M "+e+" "+t+" l "+a+" 0 l 0 1 l "+-a+" 0 z "}function _n(e,t,r){var a=r-t;return"M "+e+" "+t+" l 0 "+a+" l 1 0 l 0 "+-a+" z "}se.prototype.rect=function(e){var t=[],r=e.x,a=e.y,n=e.x+e.width,i=e.y+e.height;return t.push(Tn(r,a,n)),t.push(Tn(r,i,n)),t.push(_n(n,a,i)),t.push(_n(r,i,a)),this.path({path:t.join(" "),stroke:"none","data-name":e["data-name"]})};se.prototype.dottedLine=function(e){var t=document.createElementNS(De,"line");t.setAttribute("x1",e.x1),t.setAttribute("x2",e.x2),t.setAttribute("y1",e.y1),t.setAttribute("y2",e.y2),t.setAttribute("stroke",e.stroke),t.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(t,this.svg.firstChild)};se.prototype.rectBeneath=function(e){var t=document.createElementNS(De,"rect");t.setAttribute("x",e.x),t.setAttribute("width",e.width),t.setAttribute("y",e.y),t.setAttribute("height",e.height),e.stroke&&t.setAttribute("stroke",e.stroke),e["stroke-opacity"]&&t.setAttribute("stroke-opacity",e["stroke-opacity"]),e.fill&&t.setAttribute("fill",e.fill),e["fill-opacity"]&&t.setAttribute("fill-opacity",e["fill-opacity"]),this.svg.insertBefore(t,this.svg.firstChild)};se.prototype.text=function(e,t,r){var a=document.createElementNS(De,"text");a.setAttribute("stroke","none");for(var n in t)t.hasOwnProperty(n)&&a.setAttribute(n,t[n]);for(var i=(""+e).split(` +`),s=0;s0?this.currentGroup[0].removeChild(r):this.svg.removeChild(r)),a&&(Lr[a]=i),i};se.prototype.openGroup=function(e){e=e||{};var t=document.createElementNS(De,"g");return e.klass&&t.setAttribute("class",e.klass),e.fill&&t.setAttribute("fill",e.fill),e.stroke&&t.setAttribute("stroke",e.stroke),e["data-name"]&&t.setAttribute("data-name",e["data-name"]),e.prepend?this.prepend(t):this.append(t),this.currentGroup.unshift(t),t};se.prototype.closeGroup=function(){var e=this.currentGroup.shift();return e&&e.children.length===0?(e.parentElement.removeChild(e),null):e};se.prototype.path=function(e){var t=document.createElementNS(De,"path");for(var r in e)e.hasOwnProperty(r)&&(r==="path"?t.setAttributeNS(null,"d",e.path):r==="klass"?t.setAttributeNS(null,"class",e[r]):e[r]!==void 0&&t.setAttributeNS(null,r,e[r]));return this.append(t),t};se.prototype.pathToBack=function(e){var t=document.createElementNS(De,"path");for(var r in e)e.hasOwnProperty(r)&&(r==="path"?t.setAttributeNS(null,"d",e.path):r==="klass"?t.setAttributeNS(null,"class",e[r]):t.setAttributeNS(null,r,e[r]));return this.prepend(t),t};se.prototype.lineToBack=function(e){for(var t=document.createElementNS(De,"line"),r=Object.keys(e),a=0;a0?this.currentGroup[0].appendChild(e):this.svg.appendChild(e)};se.prototype.prepend=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)};se.prototype.setAttributeOnElement=function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setAttributeNS(null,r,t[r])};se.prototype.moveElementToChild=function(e,t){e.appendChild(t)};function wa(){var e=document.createElementNS(De,"svg");return e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),e.setAttribute("role","img"),e.setAttribute("fill","currentColor"),e.setAttribute("stroke","currentColor"),e}var hf=se,es=$e,uf=hf,Ve=function(e){this.paper=new uf(e),this.controller=null,this.space=3*es.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf("Firefox/112.0")>=0};Ve.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()};Ve.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.isPrint=e.media==="print",this.setPadding(e)};Ve.prototype.setLineThickness=function(e){this.lineThickness=e};Ve.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}};Ve.prototype.setPadding=function(e){function t(r,a,n,i,s){e.formatting[n]!==void 0?r.padding[a]=e.formatting[n]:r.paddingOverride[a]!==void 0?r.padding[a]=r.paddingOverride[a]:r.isPrint?r.padding[a]=i:r.padding[a]=s}t(this,"top","topmargin",38,15),t(this,"bottom","botmargin",38,15),t(this,"left","leftmargin",68,15),t(this,"right","rightmargin",68,15)};Ve.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};Ve.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,staffTopMargin:0,stemHeight:26.67+10,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}};Ve.prototype.setVerticalSpace=function(e){e.staffsep!==void 0&&(this.spacing.staffSeparation=e.staffsep*4/3),e.composerspace!==void 0&&(this.spacing.composer=e.composerspace*4/3),e.partsspace!==void 0&&(this.spacing.parts=e.partsspace*4/3),e.textspace!==void 0&&(this.spacing.text=e.textspace*4/3),e.musicspace!==void 0&&(this.spacing.music=e.musicspace*4/3),e.titlespace!==void 0&&(this.spacing.title=e.titlespace*4/3),e.sysstaffsep!==void 0&&(this.spacing.systemStaffSeparation=e.sysstaffsep*4/3),e.stafftopmargin!==void 0&&(this.spacing.staffTopMargin=e.stafftopmargin*4/3),e.subtitlespace!==void 0&&(this.spacing.subtitle=e.subtitlespace*4/3),e.topspace!==void 0&&(this.spacing.top=e.topspace*4/3),e.vocalspace!==void 0&&(this.spacing.vocal=e.vocalspace*4/3),e.wordsspace!==void 0&&(this.spacing.words=e.wordsspace*4/3)};Ve.prototype.calcY=function(e){return this.y-e*es.STEP};Ve.prototype.moveY=function(e,t){t===void 0&&(t=1),this.y+=e*t};Ve.prototype.absolutemoveY=function(e){this.y=e};var df=Ve;function pf(e,t,r,a,n,i){var s=e.text;this.rows=[];var o;t&&this.rows.push({move:t});var l=r.calc("textfont","defined-text");if(s==="")this.rows.push({move:l.attr["font-size"]*2});else if(typeof s=="string")this.rows.push({move:l.attr["font-size"]/2}),this.rows.push({left:a,text:s,font:"textfont",klass:"defined-text",anchor:"start",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),o=i.calc(s,"textfont","defined-text"),this.rows.push({move:o.height});else if(s){for(var h=0,u=a,c="textfont",f=0;f0){var g=!!(e.composer||e.origin),d=l?"abcjs-rhythm":"";Q0(this.rows,{marginLeft:s,text:e.rhythm,font:"infofont",klass:d,absElemType:"rhythm",noMove:g,info:t.rhythm,name:"rhythm"},h)}e.composer&&e.composer,e.origin&&e.origin;var v=e.composer?e.composer:"";if(e.origin&&(typeof v=="string"&&typeof e.origin=="string"?v+=" ("+e.origin+")":typeof v=="string"&&typeof e.origin!="string"?(v=[{text:v}],v.push({text:" ("}),v=v.concat(e.origin),v.push({text:")"})):(v.push({text:" ("}),v=v.concat(e.origin),v.push({text:")"}))),v){var d=l?"abcjs-composer":"";y0(this.rows,v,"composerfont",d,"composer",s+n,{anchor:"end",absElemType:"composer",info:t.composer,ingroup:!0},h)}}if(e.author&&e.author.length>0){var d=l?"abcjs-author":"";y0(this.rows,e.author,"composerfont",d,"author",s+n,{anchor:"end",absElemType:"author",info:t.author},h)}if(e.partOrder&&e.partOrder.length>0){var d=l?"abcjs-part-order":"";y0(this.rows,e.partOrder,"partsfont",d,"part-order",s,{absElemType:"partOrder",info:t.partOrder,anchor:"start"},h)}}var Sf=_f;const S0=xa,rs=ts;function yr(e,t,r,a,n,i,s){this.rows=[],e.unalignedWords&&e.unalignedWords.length>0&&this.unalignedWords(e.unalignedWords,a,n,i,s),this.extraText(e,a,n,i,s),e.footer&&r&&this.footer(e.footer,t,a,s)}yr.prototype.unalignedWords=function(e,t,r,a,n){var i=a?"abcjs-unaligned-words":"",s="wordsfont",o=n.calc("i",s,i);this.rows.push({move:r.words}),ta(this.rows,"",e,t,s,"unalignedWords","unalignedWords",i,"unalignedWords",r,a,n),this.rows.push({move:o.height})};function Lt(e,t,r,a,n,i,s){r&&(t&&(typeof r=="string"?r=t+r:r=[{text:t}].concat(r)),n=i?"abcjs-extra-text "+n:"",rs(e,r,"historyfont",n,"description",a,{absElemType:"extraText",anchor:"start"},s))}function ta(e,t,r,a,n,i,s,o,l,h,u,c){if(r){o=u?"abcjs-extra-text "+o:"";var f=c.calc("A",n,o);if(typeof r=="string")t&&(r=t+` -`+r),S0(e,{marginLeft:a,text:r,font:n,absElemType:"extraText",name:l,"dominant-baseline":"middle",klass:o},c);else{e.push({startGroup:s,klass:o,name:l}),e.push({move:h.info}),t&&(S0(e,{marginLeft:a,text:t,font:n,absElemType:"extraText",name:l,"dominant-baseline":"middle"},c),e.push({move:f.height*3/4}));for(var d=0;d0;i++){var s=e.selectables[i];if(e.getDim(s),s.dim.leftt&&s.dim.topr)n=i,a=0;else if(s.dim.topr){var o=Math.min(Math.abs(s.dim.left-t),Math.abs(s.dim.right-t));ot){var l=Math.min(Math.abs(s.dim.top-r),Math.abs(s.dim.bottom-r));lMath.abs(t-s.dim.right)?Math.abs(t-s.dim.right):Math.abs(t-s.dim.left),u=Math.abs(r-s.dim.top)>Math.abs(r-s.dim.bottom)?Math.abs(r-s.dim.bottom):Math.abs(r-s.dim.top),c=Math.sqrt(h*h+u*u);c=0&&a<=12?n:-1}function If(e,t,r){if(e.x<=t.offsetX&&e.x+e.width>=t.offsetX&&e.y<=t.offsetY&&e.y+e.height>=t.offsetY)return[t.offsetX,t.offsetY];var a=Math.abs(t.layerY/r-t.offsetY);return a<3?[t.offsetX,t.offsetY]:[t.layerX,t.layerY]}function Of(e){if(!e)return null;if(e.tagName==="svg")return e;if(!e.getAttribute)return null;for(var t=e.getAttribute("selectable");!t;)e.parentElement?(e=e.parentElement,e.tagName==="svg"?t=!0:t=e.getAttribute("selectable")):t=!0;return e}function ns(e,t){var r,a,n,i=Ff(e.selectables,Of(t.target));return i>=0?(n=If(e.selectables[i].svgEl.getBBox(),t,e.scale),r=n[0],a=n[1]):(n=Bf(t),r=n[0],a=n[1],i=$f(e,r,a)),{x:r,y:a,clickedOn:i}}function Ca(e){if(!(!e||!e.target||!e.touches||e.touches.length<1)){var t=e.target.getBoundingClientRect(),r=e.touches[0].pageX-t.left,a=e.touches[0].pageY-t.top;e.touches[0].offsetX=r,e.touches[0].offsetY=a,e.touches[0].layerX=e.touches[0].pageX,e.touches[0].layerY=e.touches[0].pageY}}function Sn(e){var t=e;e.type==="touchstart"&&(Ca(e),e.touches.length>0&&(t=e.touches[0]));var r=ns(this,t);r.clickedOn>=0&&(e.type==="touchstart"||e.button===0)&&this.selectables[r.clickedOn]&&(this.dragTarget=this.selectables[r.clickedOn],this.dragIndex=r.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:r.x,y:r.y},this.dragging&&this.dragTarget.isDraggable&&(qf(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function En(e){var t=e;if(e.type==="touchmove"&&(Ca(e),e.touches.length>0&&(t=e.touches[0])),this.lastTouchMove=e,!(!this.dragTarget||!this.dragging||!this.dragTarget.isDraggable||this.dragMechanism!=="mouse"||!this.dragMouseStart)){var r=ns(this,t),a=Math.round((r.y-this.dragMouseStart.y)/ur.STEP);a!==this.dragYStep&&(this.dragYStep=a,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+a*ur.STEP+")"))}}function N0(e){var t=e;e.type==="touchend"&&this.lastTouchMove&&(Ca(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(t=this.lastTouchMove.touches[0])),this.dragTarget&&(ss.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),is.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,t),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),Yf(this.renderer.svg,"abcjs-dragging-in-progress"))}function zf(e){e>=0&&eo&&ei&&(n=i),n<-i&&(n=-i),n}function Vf(e,t){var r=e?ra.STEP:-ra.STEP;return t&&(r=r*.4),r}function ls(e,t,r){var a=t.heads[e?0:t.heads.length-1],n=r.heads[e?0:r.heads.length-1],i=a.x;e&&(i+=a.w-.6);var s=n.x;return s+=e?n.w:.6,[i,s]}function jf(e,t,r,a,n,i,s,o,l,h){var u=r-2,c=r-2,f=Math.round(a?Math.max(e+u,l+c):Math.min(e-u,o-c)),d=Xf(n,i,t,s),p=f+Math.floor(d/2),g=f+Math.floor(-d/2);return h||(a&&f<6||!a&&f>6)&&(p=6,g=6),[p,g]}function Kf(e,t,r,a,n){for(var i=0;i0&&l.abcelem.beambr&&l.abcelem.beambr<=g+1){s[g].split||(s[g].split=[s[g].x]);var v=ls(t,e[o-1],l);s[g].split[s[g].split.length-1]>=v[0]&&(v[0]+=l.w),s[g].split.push(v[0]),s[g].split.push(v[1])}}for(var y=s.length-1;y>=0;y--)if(o===e.length-1||An(e[o+1].abcelem.duration)>-y-4){var w=u,k=c+f*(y+1);s[y].single&&(w=o===0?u+5:u-5,k=aa(r.startX,r.startY,r.endX,r.endY,w)+f*(y+1));var b={startX:s[y].x,endX:w,startY:s[y].y,endY:k,dy:n};if(s[y].split!==void 0){var m=s[y].split;b.endX<=m[m.length-1]&&(m[m.length-1]-=l.w),m.push(b.endX),b.split=s[y].split}i.push(b),s=s.slice(0,y)}}}return i}var Jf=Uf,Zf=ka;function eh(e){if(e.anchor1&&e.anchor2){e.hasBeam=!!e.anchor1.parent.beam&&e.anchor1.parent.beam===e.anchor2.parent.beam;var t=e.anchor1.parent.beam;if(e.hasBeam&&(t.elems[0]!==e.anchor1.parent||t.elems[t.elems.length-1]!==e.anchor2.parent)&&(e.hasBeam=!1),e.hasBeam){var r=Dr(t)?e.anchor1.x+e.anchor1.w:e.anchor1.x;e.yTextPos=th(r,e.anchor2.x,t),e.yTextPos+=Dr(t)?3:-2,e.xTextPos=rh(r,e.anchor2.x),e.top=e.yTextPos+1,e.bottom=e.yTextPos-2,Dr(t)&&(e.endingHeightAbove=4)}else{e.startNote=Math.max(e.anchor1.parent.top,9)+4,e.endNote=Math.max(e.anchor2.parent.top,9)+4,e.anchor1.parent.type==="rest"&&e.anchor2.parent.type!=="rest"?e.startNote=e.endNote:e.anchor2.parent.type==="rest"&&e.anchor1.parent.type!=="rest"&&(e.endNote=e.startNote);for(var a=0,n=0;ne.startNote||a>e.endNote)&&(e.startNote=a,e.endNote=a),e.flatBeams&&(e.startNote=Math.max(e.startNote,e.endNote),e.endNote=Math.max(e.startNote,e.endNote)),e.yTextPos=e.startNote+(e.endNote-e.startNote)/2,e.xTextPos=e.anchor1.x+(e.anchor2.x+e.anchor2.w-e.anchor1.x)/2,e.top=e.yTextPos+1}}delete e.middleElems,delete e.flatBeams}function Dr(e){return e.stemsUp}function th(e,t,r){if(r.beams.length===0)return 0;r=r.beams[0];var a=e+(t-e)/2;return Zf(r.startX,r.startY,r.endX,r.endY,a)}function rh(e,t){return e+(t-e)/2}var ah=eh,nh=Jf,ih=ka,sh=ah,oh=function(e){for(var t=0;t0&&t.putChordInLane(a),e[a]=r.right;return}}e.push(r.right),t.putChordInLane(e.length-1)}}function lh(e){var t=[0],r=[0],a,n,i;for(a=0;a=0;n--)i=e[a].children[n],i.chordHeightBelow&&Nn(r,i)}return(t.length>1||r.length>1)&&hh(e,t.length,r.length),{above:t.length,below:r.length}}function fh(e){for(var t=0,r=0;r=0&&(n.originalTop=n.top,n.originalBottom=n.bottom),Xt(n,i,"lyricHeightAbove"),Xt(n,i,"chordHeightAbove",n.specialY.chordLines.above),n.specialY.endingHeightAbove&&(n.specialY.chordHeightAbove?n.top+=2:n.top+=n.specialY.endingHeightAbove+xt,i.endingHeightAbove=n.top),n.specialY.dynamicHeightAbove&&n.specialY.volumeHeightAbove?(n.top+=Math.max(n.specialY.dynamicHeightAbove,n.specialY.volumeHeightAbove)+xt,i.dynamicHeightAbove=n.top,i.volumeHeightAbove=n.top):(Xt(n,i,"dynamicHeightAbove"),Xt(n,i,"volumeHeightAbove")),Xt(n,i,"partHeightAbove"),Xt(n,i,"tempoHeightAbove"),n.specialY.lyricHeightBelow&&(n.specialY.lyricHeightBelow+=e.spacing.vocal/r0.STEP,i.lyricHeightBelow=n.bottom,n.bottom-=n.specialY.lyricHeightBelow+xt),n.specialY.chordHeightBelow){i.chordHeightBelow=n.bottom;var s=n.specialY.chordHeightBelow;n.specialY.chordLines.below&&(s*=n.specialY.chordLines.below),n.bottom-=s+xt}n.specialY.volumeHeightBelow&&n.specialY.dynamicHeightBelow?(i.volumeHeightBelow=n.bottom,i.dynamicHeightBelow=n.bottom,n.bottom-=Math.max(n.specialY.volumeHeightBelow,n.specialY.dynamicHeightBelow)+xt):n.specialY.volumeHeightBelow?(i.volumeHeightBelow=n.bottom,n.bottom-=n.specialY.volumeHeightBelow+xt):n.specialY.dynamicHeightBelow&&(i.dynamicHeightBelow=n.bottom,n.bottom-=n.specialY.dynamicHeightBelow+xt),e.showDebug&&e.showDebug.indexOf("box")>=0&&(n.positionY=i);for(var o=0;o0&&(n.top+=f)}n.top+=e.spacing.staffTopMargin/r0.STEP,r=2-n.bottom}},xt=1;function Xt(e,t,r,a){if(e.specialY[r]){var n=e.specialY[r];a&&(n*=a),e.top+=n+xt,t[r]=e.top}}function gh(e,t,r){var a,n;for(a=0;a=e.children.length};yt.getNextX=function(e){return Math.max(e.minx,e.nextx)};yt.getSpacingUnits=function(e){return Math.sqrt(e.spacingduration*8)};yt.layoutOneItem=function(e,t,r,a,n){var i=r.children[r.i];if(!i)return 0;var s=e-r.minx,o=r.durationindex+i.duration>0?a:0;if(i.abcelem.el_type==="note"&&!i.abcelem.rest&&r.voicenumber!==0&&n){var l=n.children[n.i],h=l&&(i.abcelem.maxpitch<=l.abcelem.maxpitch+1&&i.abcelem.maxpitch>=l.abcelem.minpitch-1||i.abcelem.minpitch<=l.abcelem.maxpitch+1&&i.abcelem.minpitch>=l.abcelem.minpitch-1);if(h&&i.abcelem.minpitch===l.abcelem.minpitch&&i.abcelem.maxpitch===l.abcelem.maxpitch&&l.heads&&l.heads.length>0&&i.heads&&i.heads.length>0&&l.heads[0].c===i.heads[0].c&&(h=!1),h){var u=l.heads&&l.heads.length>0?l.heads[0].realWidth:l.fixed.w;i.adjustedWidth||(i.adjustedWidth=u+i.w),i.w=i.adjustedWidth;for(var c=0;c0){var n=a.children.length-1,i=a.children[n];if(i.abcelem.el_type==="bar"){var s=i.children[0].x;s>t?t=s:i.children[0].x=t}}}}var Eh=function(e,t,r,a,n){var i=1e-7,s=0,o=1e3,l=n;a.startx=l;var h,u=0;for(r&&console.log("init layout",e),h=0;hi?d.push(a.voices[h]):f.push(a.voices[h])}c=0;var g=0;for(h=0;hl&&(l=Oe.getNextX(f[h]),c=Oe.getSpacingUnits(f[h]),g=f[h].spacingduration);s+=c,o=Math.min(o,c),r&&console.log("currentduration: ",u,s,o);var v=void 0;for(h=0;h0){l=k;for(var m=0;ml&&(l=Oe.getNextX(a.voices[h]),c=Oe.getSpacingUnits(a.voices[h]));return Sh(a.voices),s+=c,a.setWidth(l),{spacingUnits:s,minSpace:o}};function Ah(e){for(var t=0;t0?0:5e-7)}function Mh(e,t){return!e||!e.staff||!e.staff.voices||e.staff.voices.length===0||!t||!t.staff||!t.staff.voices||t.staff.voices.length===0?!1:e.staff.voices[0]===t.staff.voices[0]}var Nh=Eh;function Bh(e,t,r,a,n){var i=e.padding.left,s=0,o,l;for(o=0;oMath.round(l)&&(l=h,n&&(s=-1))}for(s=0;s0?(n=(r-c)/i,n*s>50&&(n=50/s),n):null}function Wh(e){for(var t=0;t0&&t.push(e),e==="abcjs-tab-number")return t.join(" ");if(e==="text instrument-name")return"abcjs-text abcjs-instrument-name";if(this.lineNumber!==null&&t.push("l"+this.lineNumber),this.measureNumber!==null&&t.push("m"+this.measureNumber),this.measureNumber!==null&&t.push("mm"+this.measureTotal()),this.voiceNumber!==null&&t.push("v"+this.voiceNumber),e&&(e.indexOf("note")>=0||e.indexOf("rest")>=0||e.indexOf("lyric")>=0)&&this.noteNumber!==null&&t.push("n"+this.noteNumber),t.length>0){t=t.join(" "),t=t.split(" ");for(var r=0;r0&&(t[r]="abcjs-"+t[r])}return t.join(" ")};var Xh=je,wr=function(t,r){this.formatting=t,this.classes=r};wr.prototype.updateFonts=function(e){e.gchordfont&&(this.formatting.gchordfont=e.gchordfont),e.tripletfont&&(this.formatting.tripletfont=e.tripletfont),e.annotationfont&&(this.formatting.annotationfont=e.annotationfont),e.vocalfont&&(this.formatting.vocalfont=e.vocalfont)};wr.prototype.getFamily=function(e){return e[0]==='"'&&e[e.length-1]==='"'?e.substring(1,e.length-1):e};wr.prototype.calc=function(e,t){var r;typeof e=="string"?(r=this.formatting[e],r?r={face:r.face,size:Math.round(r.size*4/3),decoration:r.decoration,style:r.style,weight:r.weight,box:r.box}:r={face:"Arial",size:Math.round(12*4/3),decoration:"underline",style:"normal",weight:"normal"}):r={face:e.face,size:Math.round(e.size*4/3),decoration:e.decoration,style:e.style,weight:e.weight,box:e.box};var a=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;r.padding=r.size*a;var n={"font-size":r.size,"font-style":r.style,"font-family":this.getFamily(r.face),"font-weight":r.weight,"text-decoration":r.decoration,class:this.classes.generate(t)};return{font:r,attr:n}};var Vh=wr,c0=function(t,r){this.getFontAndAttr=t,this.svg=r};c0.prototype.updateFonts=function(e){this.getFontAndAttr.updateFonts(e)};c0.prototype.attr=function(e,t){return this.getFontAndAttr.calc(e,t)};c0.prototype.getFamily=function(e){return e[0]==='"'&&e[e.length-1]==='"'?e.substring(1,e.length-1):e};c0.prototype.calc=function(e,t,r,a){var n;typeof t=="string"?n=this.attr(t,r):n={font:{face:t.face,size:t.size,decoration:t.decoration,style:t.style,weight:t.weight},attr:{"font-size":t.size,"font-style":t.style,"font-family":this.getFamily(t.face),"font-weight":t.weight,"text-decoration":t.decoration,class:this.getFontAndAttr.classes.generate(r)}};var i=this.svg.getTextSize(e,n.attr,a);return n.font.box?{height:i.height+n.font.padding*4,width:i.width+n.font.padding*4}:i};c0.prototype.baselineToCenter=function(e,t,r,a,n){var i=this.calc(e,t,r).height,s=this.attr(t,r).font.size;return i*.5+(n-a-2)*s};var jh=c0,Kh=function(){for(var e=0,t,r=arguments[e++],a=[],n,i,s,o;r;){if(n=/^[^\x25]+/.exec(r))a.push(n[0]);else if(n=/^\x25{2}/.exec(r))a.push("%");else if(n=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(r)){if((t=arguments[n[1]||e++])==null||t==null)throw"Too few arguments.";if(/[^s]/.test(n[7])&&typeof t!="number")throw"Expecting number but found "+typeof t;switch(n[7]){case"b":t=t.toString(2);break;case"c":t=String.fromCharCode(t);break;case"d":t=parseInt(t);break;case"e":t=n[6]?t.toExponential(n[6]):t.toExponential();break;case"f":t=n[6]?parseFloat(t).toFixed(n[6]):parseFloat(t);break;case"o":t=t.toString(8);break;case"s":t=(t=String(t))&&n[6]?t.substring(0,n[6]):t;break;case"u":t=Math.abs(t);break;case"x":t=t.toString(16);break;case"X":t=t.toString(16).toUpperCase();break}t=/[def]/.test(n[7])&&n[2]&&t>0?"+"+t:t,s=n[3]?n[3]=="0"?"0":n[3][1]:" ",o=n[5]-String(t).length,i=n[5]?str_repeat(s,o):"",a.push(n[4]?t+i:i+t)}else throw"Huh ?!";r=r.substring(n[0].length)}return a.join("")},qt=Kh;function Qh(e){return parseFloat(e.toFixed(2))}var ht=Qh,Pn=ht;function Jh(e,t,r){var a=t.y;if(t.phrases){var o=e.paper.richTextLine(t.phrases,t.x,t.y,t.klass,t.anchor);return o}if(t.lane){var n=t.dim.font.size*.25;a+=(t.dim.font.size+n)*t.lane}var i;t.dim?(i=t.dim,i.attr.class=t.klass):i=e.controller.getFontAndAttr.calc(t.type,t.klass),t.anchor&&(i.attr["text-anchor"]=t.anchor),t["dominant-baseline"]&&(i.attr["dominant-baseline"]=t["dominant-baseline"]),i.attr.x=t.x,i.attr.y=a,t.centerVertically||(i.attr.y+=i.font.size),t.type==="debugfont"&&(console.log("Debug msg: "+t.text),i.attr.stroke="#ff0000"),t.cursor&&(i.attr.cursor=t.cursor);var s=t.text.replace(/\n\n/g,` +`&&i--,!t.noMove){var s=n.height*1.1*i;e.push({move:Math.round(s)}),t.marginBottom&&e.push({move:t.marginBottom})}}}var xa=wf;const xf=xa;function Cf(e,t,r,a,n,i,s,o){var l=o.calc("i",r,a);if(t==="")e.push({move:l.height});else{if(typeof t=="string"){xf(e,{marginLeft:i,text:t,font:r,klass:a,marginTop:s.marginTop,anchor:s.anchor,absElemType:s.absElemType,info:s.info,name:n},o);return}s.marginTop&&e.push({move:s.marginTop});var h=0,u={left:i,anchor:s.anchor,phrases:[]};a&&(u.klass=a),e.push(u);for(var c=0;c0){var g=!!(e.composer||e.origin),d=l?"abcjs-rhythm":"";K0(this.rows,{marginLeft:s,text:e.rhythm,font:"infofont",klass:d,absElemType:"rhythm",noMove:g,info:t.rhythm,name:"rhythm"},h)}e.composer&&e.composer,e.origin&&e.origin;var v=e.composer?e.composer:"";if(e.origin&&(typeof v=="string"&&typeof e.origin=="string"?v+=" ("+e.origin+")":typeof v=="string"&&typeof e.origin!="string"?(v=[{text:v}],v.push({text:" ("}),v=v.concat(e.origin),v.push({text:")"})):(v.push({text:" ("}),v=v.concat(e.origin),v.push({text:")"}))),v){var d=l?"abcjs-composer":"";b0(this.rows,v,"composerfont",d,"composer",s+n,{anchor:"end",absElemType:"composer",info:t.composer,ingroup:!0},h)}}if(e.author&&e.author.length>0){var d=l?"abcjs-author":"";b0(this.rows,e.author,"composerfont",d,"author",s+n,{anchor:"end",absElemType:"author",info:t.author},h)}if(e.partOrder&&e.partOrder.length>0){var d=l?"abcjs-part-order":"";b0(this.rows,e.partOrder,"partsfont",d,"part-order",s,{absElemType:"partOrder",info:t.partOrder,anchor:"start"},h)}}var Tf=kf;const T0=xa,rs=ts;function yr(e,t,r,a,n,i,s){this.rows=[],e.unalignedWords&&e.unalignedWords.length>0&&this.unalignedWords(e.unalignedWords,a,n,i,s),this.extraText(e,a,n,i,s),e.footer&&r&&this.footer(e.footer,t,a,s)}yr.prototype.unalignedWords=function(e,t,r,a,n){var i=a?"abcjs-unaligned-words":"",s="wordsfont",o=n.calc("i",s,i);this.rows.push({move:r.words}),ta(this.rows,"",e,t,s,"unalignedWords","unalignedWords",i,"unalignedWords",r,a,n),this.rows.push({move:o.height})};function Lt(e,t,r,a,n,i,s){r&&(t&&(typeof r=="string"?r=t+r:r=[{text:t}].concat(r)),n=i?"abcjs-extra-text "+n:"",rs(e,r,"historyfont",n,"description",a,{absElemType:"extraText",anchor:"start"},s))}function ta(e,t,r,a,n,i,s,o,l,h,u,c){if(r){o=u?"abcjs-extra-text "+o:"";var f=c.calc("A",n,o);if(typeof r=="string")t&&(r=t+` +`+r),T0(e,{marginLeft:a,text:r,font:n,absElemType:"extraText",name:l,"dominant-baseline":"middle",klass:o},c);else{e.push({startGroup:s,klass:o,name:l}),e.push({move:h.info}),t&&(T0(e,{marginLeft:a,text:t,font:n,absElemType:"extraText",name:l,"dominant-baseline":"middle"},c),e.push({move:f.height*3/4}));for(var d=0;d0;i++){var s=e.selectables[i];if(e.getDim(s),s.dim.leftt&&s.dim.topr)n=i,a=0;else if(s.dim.topr){var o=Math.min(Math.abs(s.dim.left-t),Math.abs(s.dim.right-t));ot){var l=Math.min(Math.abs(s.dim.top-r),Math.abs(s.dim.bottom-r));lMath.abs(t-s.dim.right)?Math.abs(t-s.dim.right):Math.abs(t-s.dim.left),u=Math.abs(r-s.dim.top)>Math.abs(r-s.dim.bottom)?Math.abs(r-s.dim.bottom):Math.abs(r-s.dim.top),c=Math.sqrt(h*h+u*u);c=0&&a<=12?n:-1}function Ff(e,t,r){if(e.x<=t.offsetX&&e.x+e.width>=t.offsetX&&e.y<=t.offsetY&&e.y+e.height>=t.offsetY)return[t.offsetX,t.offsetY];var a=Math.abs(t.layerY/r-t.offsetY);return a<3?[t.offsetX,t.offsetY]:[t.layerX,t.layerY]}function $f(e){if(!e)return null;if(e.tagName==="svg")return e;if(!e.getAttribute)return null;for(var t=e.getAttribute("selectable");!t;)e.parentElement?(e=e.parentElement,e.tagName==="svg"?t=!0:t=e.getAttribute("selectable")):t=!0;return e}function ns(e,t){var r,a,n,i=Pf(e.selectables,$f(t.target));return i>=0?(n=Ff(e.selectables[i].svgEl.getBBox(),t,e.scale),r=n[0],a=n[1]):(n=Mf(t),r=n[0],a=n[1],i=Df(e,r,a)),{x:r,y:a,clickedOn:i}}function Ca(e){if(!(!e||!e.target||!e.touches||e.touches.length<1)){var t=e.target.getBoundingClientRect(),r=e.touches[0].pageX-t.left,a=e.touches[0].pageY-t.top;e.touches[0].offsetX=r,e.touches[0].offsetY=a,e.touches[0].layerX=e.touches[0].pageX,e.touches[0].layerY=e.touches[0].pageY}}function Sn(e){var t=e;e.type==="touchstart"&&(Ca(e),e.touches.length>0&&(t=e.touches[0]));var r=ns(this,t);r.clickedOn>=0&&(e.type==="touchstart"||e.button===0)&&this.selectables[r.clickedOn]&&(this.dragTarget=this.selectables[r.clickedOn],this.dragIndex=r.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:r.x,y:r.y},this.dragging&&this.dragTarget.isDraggable&&(Hf(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function En(e){var t=e;if(e.type==="touchmove"&&(Ca(e),e.touches.length>0&&(t=e.touches[0])),this.lastTouchMove=e,!(!this.dragTarget||!this.dragging||!this.dragTarget.isDraggable||this.dragMechanism!=="mouse"||!this.dragMouseStart)){var r=ns(this,t),a=Math.round((r.y-this.dragMouseStart.y)/ur.STEP);a!==this.dragYStep&&(this.dragYStep=a,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+a*ur.STEP+")"))}}function M0(e){var t=e;e.type==="touchend"&&this.lastTouchMove&&(Ca(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(t=this.lastTouchMove.touches[0])),this.dragTarget&&(ss.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),is.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,t),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),zf(this.renderer.svg,"abcjs-dragging-in-progress"))}function If(e){e>=0&&eo&&ei&&(n=i),n<-i&&(n=-i),n}function Uf(e,t){var r=e?ra.STEP:-ra.STEP;return t&&(r=r*.4),r}function ls(e,t,r){var a=t.heads[e?0:t.heads.length-1],n=r.heads[e?0:r.heads.length-1],i=a.x;e&&(i+=a.w-.6);var s=n.x;return s+=e?n.w:.6,[i,s]}function Xf(e,t,r,a,n,i,s,o,l,h){var u=r-2,c=r-2,f=Math.round(a?Math.max(e+u,l+c):Math.min(e-u,o-c)),d=Wf(n,i,t,s),p=f+Math.floor(d/2),g=f+Math.floor(-d/2);return h||(a&&f<6||!a&&f>6)&&(p=6,g=6),[p,g]}function Vf(e,t,r,a,n){for(var i=0;i0&&l.abcelem.beambr&&l.abcelem.beambr<=g+1){s[g].split||(s[g].split=[s[g].x]);var v=ls(t,e[o-1],l);s[g].split[s[g].split.length-1]>=v[0]&&(v[0]+=l.w),s[g].split.push(v[0]),s[g].split.push(v[1])}}for(var y=s.length-1;y>=0;y--)if(o===e.length-1||An(e[o+1].abcelem.duration)>-y-4){var w=u,k=c+f*(y+1);s[y].single&&(w=o===0?u+5:u-5,k=aa(r.startX,r.startY,r.endX,r.endY,w)+f*(y+1));var b={startX:s[y].x,endX:w,startY:s[y].y,endY:k,dy:n};if(s[y].split!==void 0){var m=s[y].split;b.endX<=m[m.length-1]&&(m[m.length-1]-=l.w),m.push(b.endX),b.split=s[y].split}i.push(b),s=s.slice(0,y)}}}return i}var Kf=Rf,Qf=ka;function Jf(e){if(e.anchor1&&e.anchor2){e.hasBeam=!!e.anchor1.parent.beam&&e.anchor1.parent.beam===e.anchor2.parent.beam;var t=e.anchor1.parent.beam;if(e.hasBeam&&(t.elems[0]!==e.anchor1.parent||t.elems[t.elems.length-1]!==e.anchor2.parent)&&(e.hasBeam=!1),e.hasBeam){var r=Dr(t)?e.anchor1.x+e.anchor1.w:e.anchor1.x;e.yTextPos=Zf(r,e.anchor2.x,t),e.yTextPos+=Dr(t)?3:-2,e.xTextPos=eh(r,e.anchor2.x),e.top=e.yTextPos+1,e.bottom=e.yTextPos-2,Dr(t)&&(e.endingHeightAbove=4)}else{e.startNote=Math.max(e.anchor1.parent.top,9)+4,e.endNote=Math.max(e.anchor2.parent.top,9)+4,e.anchor1.parent.type==="rest"&&e.anchor2.parent.type!=="rest"?e.startNote=e.endNote:e.anchor2.parent.type==="rest"&&e.anchor1.parent.type!=="rest"&&(e.endNote=e.startNote);for(var a=0,n=0;ne.startNote||a>e.endNote)&&(e.startNote=a,e.endNote=a),e.flatBeams&&(e.startNote=Math.max(e.startNote,e.endNote),e.endNote=Math.max(e.startNote,e.endNote)),e.yTextPos=e.startNote+(e.endNote-e.startNote)/2,e.xTextPos=e.anchor1.x+(e.anchor2.x+e.anchor2.w-e.anchor1.x)/2,e.top=e.yTextPos+1}}delete e.middleElems,delete e.flatBeams}function Dr(e){return e.stemsUp}function Zf(e,t,r){if(r.beams.length===0)return 0;r=r.beams[0];var a=e+(t-e)/2;return Qf(r.startX,r.startY,r.endX,r.endY,a)}function eh(e,t){return e+(t-e)/2}var th=Jf,rh=Kf,ah=ka,nh=th,ih=function(e){for(var t=0;t0&&t.putChordInLane(a),e[a]=r.right;return}}e.push(r.right),t.putChordInLane(e.length-1)}}function oh(e){var t=[0],r=[0],a,n,i;for(a=0;a=0;n--)i=e[a].children[n],i.chordHeightBelow&&Nn(r,i)}return(t.length>1||r.length>1)&&lh(e,t.length,r.length),{above:t.length,below:r.length}}function ch(e){for(var t=0,r=0;r=0&&(n.originalTop=n.top,n.originalBottom=n.bottom),Xt(n,i,"lyricHeightAbove"),Xt(n,i,"chordHeightAbove",n.specialY.chordLines.above),n.specialY.endingHeightAbove&&(n.specialY.chordHeightAbove?n.top+=2:n.top+=n.specialY.endingHeightAbove+xt,i.endingHeightAbove=n.top),n.specialY.dynamicHeightAbove&&n.specialY.volumeHeightAbove?(n.top+=Math.max(n.specialY.dynamicHeightAbove,n.specialY.volumeHeightAbove)+xt,i.dynamicHeightAbove=n.top,i.volumeHeightAbove=n.top):(Xt(n,i,"dynamicHeightAbove"),Xt(n,i,"volumeHeightAbove")),Xt(n,i,"partHeightAbove"),Xt(n,i,"tempoHeightAbove"),n.specialY.lyricHeightBelow&&(n.specialY.lyricHeightBelow+=e.spacing.vocal/t0.STEP,i.lyricHeightBelow=n.bottom,n.bottom-=n.specialY.lyricHeightBelow+xt),n.specialY.chordHeightBelow){i.chordHeightBelow=n.bottom;var s=n.specialY.chordHeightBelow;n.specialY.chordLines.below&&(s*=n.specialY.chordLines.below),n.bottom-=s+xt}n.specialY.volumeHeightBelow&&n.specialY.dynamicHeightBelow?(i.volumeHeightBelow=n.bottom,i.dynamicHeightBelow=n.bottom,n.bottom-=Math.max(n.specialY.volumeHeightBelow,n.specialY.dynamicHeightBelow)+xt):n.specialY.volumeHeightBelow?(i.volumeHeightBelow=n.bottom,n.bottom-=n.specialY.volumeHeightBelow+xt):n.specialY.dynamicHeightBelow&&(i.dynamicHeightBelow=n.bottom,n.bottom-=n.specialY.dynamicHeightBelow+xt),e.showDebug&&e.showDebug.indexOf("box")>=0&&(n.positionY=i);for(var o=0;o0&&(n.top+=f)}n.top+=e.spacing.staffTopMargin/t0.STEP,r=2-n.bottom}},xt=1;function Xt(e,t,r,a){if(e.specialY[r]){var n=e.specialY[r];a&&(n*=a),e.top+=n+xt,t[r]=e.top}}function dh(e,t,r){var a,n;for(a=0;a=e.children.length};yt.getNextX=function(e){return Math.max(e.minx,e.nextx)};yt.getSpacingUnits=function(e){return Math.sqrt(e.spacingduration*8)};yt.layoutOneItem=function(e,t,r,a,n){var i=r.children[r.i];if(!i)return 0;var s=e-r.minx,o=r.durationindex+i.duration>0?a:0;if(i.abcelem.el_type==="note"&&!i.abcelem.rest&&r.voicenumber!==0&&n){var l=n.children[n.i],h=l&&(i.abcelem.maxpitch<=l.abcelem.maxpitch+1&&i.abcelem.maxpitch>=l.abcelem.minpitch-1||i.abcelem.minpitch<=l.abcelem.maxpitch+1&&i.abcelem.minpitch>=l.abcelem.minpitch-1);if(h&&i.abcelem.minpitch===l.abcelem.minpitch&&i.abcelem.maxpitch===l.abcelem.maxpitch&&l.heads&&l.heads.length>0&&i.heads&&i.heads.length>0&&l.heads[0].c===i.heads[0].c&&(h=!1),h){var u=l.heads&&l.heads.length>0?l.heads[0].realWidth:l.fixed.w;i.adjustedWidth||(i.adjustedWidth=u+i.w),i.w=i.adjustedWidth;for(var c=0;c0){var n=a.children.length-1,i=a.children[n];if(i.abcelem.el_type==="bar"){var s=i.children[0].x;s>t?t=s:i.children[0].x=t}}}}var _h=function(e,t,r,a,n){var i=1e-7,s=0,o=1e3,l=n;a.startx=l;var h,u=0;for(r&&console.log("init layout",e),h=0;hi?d.push(a.voices[h]):f.push(a.voices[h])}c=0;var g=0;for(h=0;hl&&(l=Oe.getNextX(f[h]),c=Oe.getSpacingUnits(f[h]),g=f[h].spacingduration);s+=c,o=Math.min(o,c),r&&console.log("currentduration: ",u,s,o);var v=void 0;for(h=0;h0){l=k;for(var m=0;ml&&(l=Oe.getNextX(a.voices[h]),c=Oe.getSpacingUnits(a.voices[h]));return Th(a.voices),s+=c,a.setWidth(l),{spacingUnits:s,minSpace:o}};function Sh(e){for(var t=0;t0?0:5e-7)}function Eh(e,t){return!e||!e.staff||!e.staff.voices||e.staff.voices.length===0||!t||!t.staff||!t.staff.voices||t.staff.voices.length===0?!1:e.staff.voices[0]===t.staff.voices[0]}var Ah=_h;function Mh(e,t,r,a,n){var i=e.padding.left,s=0,o,l;for(o=0;oMath.round(l)&&(l=h,n&&(s=-1))}for(s=0;s0?(n=(r-c)/i,n*s>50&&(n=50/s),n):null}function Yh(e){for(var t=0;t0&&t.push(e),e==="abcjs-tab-number")return t.join(" ");if(e==="text instrument-name")return"abcjs-text abcjs-instrument-name";if(this.lineNumber!==null&&t.push("l"+this.lineNumber),this.measureNumber!==null&&t.push("m"+this.measureNumber),this.measureNumber!==null&&t.push("mm"+this.measureTotal()),this.voiceNumber!==null&&t.push("v"+this.voiceNumber),e&&(e.indexOf("note")>=0||e.indexOf("rest")>=0||e.indexOf("lyric")>=0)&&this.noteNumber!==null&&t.push("n"+this.noteNumber),t.length>0){t=t.join(" "),t=t.split(" ");for(var r=0;r0&&(t[r]="abcjs-"+t[r])}return t.join(" ")};var Wh=je,wr=function(t,r){this.formatting=t,this.classes=r};wr.prototype.updateFonts=function(e){e.gchordfont&&(this.formatting.gchordfont=e.gchordfont),e.tripletfont&&(this.formatting.tripletfont=e.tripletfont),e.annotationfont&&(this.formatting.annotationfont=e.annotationfont),e.vocalfont&&(this.formatting.vocalfont=e.vocalfont)};wr.prototype.getFamily=function(e){return e[0]==='"'&&e[e.length-1]==='"'?e.substring(1,e.length-1):e};wr.prototype.calc=function(e,t){var r;typeof e=="string"?(r=this.formatting[e],r?r={face:r.face,size:Math.round(r.size*4/3),decoration:r.decoration,style:r.style,weight:r.weight,box:r.box}:r={face:"Arial",size:Math.round(12*4/3),decoration:"underline",style:"normal",weight:"normal"}):r={face:e.face,size:Math.round(e.size*4/3),decoration:e.decoration,style:e.style,weight:e.weight,box:e.box};var a=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;r.padding=r.size*a;var n={"font-size":r.size,"font-style":r.style,"font-family":this.getFamily(r.face),"font-weight":r.weight,"text-decoration":r.decoration,class:this.classes.generate(t)};return{font:r,attr:n}};var Uh=wr,s0=function(t,r){this.getFontAndAttr=t,this.svg=r};s0.prototype.updateFonts=function(e){this.getFontAndAttr.updateFonts(e)};s0.prototype.attr=function(e,t){return this.getFontAndAttr.calc(e,t)};s0.prototype.getFamily=function(e){return e[0]==='"'&&e[e.length-1]==='"'?e.substring(1,e.length-1):e};s0.prototype.calc=function(e,t,r,a){var n;typeof t=="string"?n=this.attr(t,r):n={font:{face:t.face,size:t.size,decoration:t.decoration,style:t.style,weight:t.weight},attr:{"font-size":t.size,"font-style":t.style,"font-family":this.getFamily(t.face),"font-weight":t.weight,"text-decoration":t.decoration,class:this.getFontAndAttr.classes.generate(r)}};var i=this.svg.getTextSize(e,n.attr,a);return n.font.box?{height:i.height+n.font.padding*4,width:i.width+n.font.padding*4}:i};s0.prototype.baselineToCenter=function(e,t,r,a,n){var i=this.calc(e,t,r).height,s=this.attr(t,r).font.size;return i*.5+(n-a-2)*s};var Xh=s0,Vh=function(){for(var e=0,t,r=arguments[e++],a=[],n,i,s,o;r;){if(n=/^[^\x25]+/.exec(r))a.push(n[0]);else if(n=/^\x25{2}/.exec(r))a.push("%");else if(n=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(r)){if((t=arguments[n[1]||e++])==null||t==null)throw"Too few arguments.";if(/[^s]/.test(n[7])&&typeof t!="number")throw"Expecting number but found "+typeof t;switch(n[7]){case"b":t=t.toString(2);break;case"c":t=String.fromCharCode(t);break;case"d":t=parseInt(t);break;case"e":t=n[6]?t.toExponential(n[6]):t.toExponential();break;case"f":t=n[6]?parseFloat(t).toFixed(n[6]):parseFloat(t);break;case"o":t=t.toString(8);break;case"s":t=(t=String(t))&&n[6]?t.substring(0,n[6]):t;break;case"u":t=Math.abs(t);break;case"x":t=t.toString(16);break;case"X":t=t.toString(16).toUpperCase();break}t=/[def]/.test(n[7])&&n[2]&&t>0?"+"+t:t,s=n[3]?n[3]=="0"?"0":n[3][1]:" ",o=n[5]-String(t).length,i=n[5]?str_repeat(s,o):"",a.push(n[4]?t+i:i+t)}else throw"Huh ?!";r=r.substring(n[0].length)}return a.join("")},qt=Vh;function jh(e){return parseFloat(e.toFixed(2))}var ft=jh,Pn=ft;function Kh(e,t,r){var a=t.y;if(t.phrases){var o=e.paper.richTextLine(t.phrases,t.x,t.y,t.klass,t.anchor);return o}if(t.lane){var n=t.dim.font.size*.25;a+=(t.dim.font.size+n)*t.lane}var i;t.dim?(i=t.dim,i.attr.class=t.klass):i=e.controller.getFontAndAttr.calc(t.type,t.klass),t.anchor&&(i.attr["text-anchor"]=t.anchor),t["dominant-baseline"]&&(i.attr["dominant-baseline"]=t["dominant-baseline"]),i.attr.x=t.x,i.attr.y=a,t.centerVertically||(i.attr.y+=i.font.size),t.type==="debugfont"&&(console.log("Debug msg: "+t.text),i.attr.stroke="#ff0000"),t.cursor&&(i.attr.cursor=t.cursor);var s=t.text.replace(/\n\n/g,` `);s=s.replace(/^\n/,`  -`),i.font.box&&(r||e.paper.openGroup({klass:i.attr.class,fill:e.foregroundColor,"data-name":t.name}),i.attr["text-anchor"]==="end"?i.attr.x-=i.font.padding:i.attr["text-anchor"]==="start"&&(i.attr.x+=i.font.padding),i.attr.y+=i.font.padding,delete i.attr.class),t.noClass&&delete i.attr.class,i.attr.x=Pn(i.attr.x),i.attr.y=Pn(i.attr.y),t.name&&(i.attr["data-name"]=t.name);var o=e.paper.text(s,i.attr);if(i.font.box){var l=o.getBBox(),h=0;i.attr["text-anchor"]==="middle"?h=l.width/2+i.font.padding:i.attr["text-anchor"]==="end"&&(h=l.width+i.font.padding*2);var u=0;t.centerVertically&&(u=l.height-i.font.padding),e.paper.rect({"data-name":"box",x:Math.round(t.x-h),y:Math.round(a-u),width:Math.round(l.width+i.font.padding*2),height:Math.round(l.height+i.font.padding*2)}),r||(o=e.paper.closeGroup())}return o}var St=Jh,ir=qt,Ze=$e,Zh=St;function eu(e,t,r){var a=t.startVoice.staff.absoluteY-Ze.STEP*10;return t.endVoice&&t.endVoice.staff?t.endY=t.endVoice.staff.absoluteY-Ze.STEP*2:t.lastContinuedVoice&&t.lastContinuedVoice.staff?t.endY=t.lastContinuedVoice.staff.absoluteY-Ze.STEP*2:t.endY=t.startVoice.staff.absoluteY-Ze.STEP*2,au(e,t.x,a,t.endY,t.type,t.header,r)}function tu(e,t,r,a,n){t+=Ze.STEP;var i=Ze.STEP*.75,s=Ze.STEP*.75,o=a-r,l=ir("M %f %f l %f %f l %f %f l %f %f z",t,r-s,0,o+s*2,i,0,0,-(o+s*2)),h=Ze.STEP*2,u=Ze.STEP;return l+=ir("M %f %f q %f %f %f %f q %f %f %f %f z",t+i,r-s,h*.6,u*.2,h,-u,-h*.1,u*.3,-h,u+Ze.STEP),l+=ir("M %f %f q %f %f %f %f q %f %f %f %f z",t+i,r+s+o,h*.6,-u*.2,h,u,-h*.1,-u*.3,-h,-u-Ze.STEP),e.paper.path({path:l,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(n),"data-name":n})}function ru(e,t,r,a,n){var i=a-r,s=Dn(t,r,[7.5,-8,21,0,18.5,-10.5,7.5],[0,i/5.5,i/3.14,i/2,i/2.93,i/4.88,0]);return s+=Dn(t,r,[0,17.5,-7.5,6.6,-5,20,0],[i/2,i/1.46,i/1.22,i,i/1.19,i/1.42,i/2]),e.paper.path({path:s,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(n),"data-name":n})}function Dn(e,t,r,a){return ir("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e+r[0],t+a[0],e+r[1],t+a[1],e+r[2],t+a[2],e+r[3],t+a[3],e+r[4],t+a[4],e+r[5],t+a[5],e+r[6],t+a[6])}var au=function(e,t,r,a,n,i,s){var o;if(i){e.paper.openGroup({klass:e.controller.classes.generate("staff-extra voice-name"),"data-name":n});var l=r+(a-r)/2;l=l-e.controller.getTextSize.baselineToCenter(i,"voicefont","staff-extra voice-name",0,1),Zh(e,{x:e.padding.left,y:l,text:i,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return n==="brace"?o=ru(e,t,r,a,n):n==="bracket"&&(o=tu(e,t,r,a,n)),i&&(o=e.paper.closeGroup()),s.wrapSvgEl({el_type:n,startChar:-1,endChar:-1},o),o},nu=eu;function iu(e,t,r){var a=e.paper.path(t);return a}var I0=iu,su=qt,ou=I0,cu=ht;function lu(e,t,r){(!t.anchor1||!t.anchor2||!t.anchor1.heads||!t.anchor2.heads||t.anchor1.heads.length===0||t.anchor2.heads.length===0)&&window.console.error("Glissando Element not set.");var a=4,n=e.calcY(t.anchor1.heads[0].pitch),i=e.calcY(t.anchor2.heads[0].pitch),s=t.anchor1.x+t.anchor1.w/2,o=t.anchor2.x+t.anchor2.w/2,l=fu(s,n,o,i),h=t.anchor1.w/2+a,u=t.anchor2.w/2+a,c=hu(s,n,o,i),f=na(n,c,h);na(i,c,-u);var d=uu(l-h-u),p=mu(e,s+h,f,d,c);return r.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},p),[p]}function fu(e,t,r,a){var n=r-e,i=a-t;return Math.sqrt(n*n+i*i)}function hu(e,t,r,a){return(a-t)/(r-e)}function na(e,t,r){return cu(e+r*t)}function uu(e){var t=5;return Math.max(2,Math.floor((e-t*2)/6))}var du=[[3.5,-4.8]],pu=[[1.5,-1],[.3,-.3],[-3.5,3.8]],gu=[[-1.5,2]],vu=[[3,4],[3,-4]],bu=[[-3,4],[-3,-4]];function w0(e,t){for(var r="",a=0;a1&&a.indexOf(".")<0){var o=On.isInGroup()?"":n.klass;e.paper.openGroup({"data-name":n.name,klass:o});for(var l=0,h=0;h0?t.linewidth+e.lineThickness:t.linewidth-e.lineThickness;t.graphelem=Yn(e,t.x,l,a,e.calcY(t.pitch2),"abcjs-stem","stem");break;case"ledger":t.graphelem=td(e,t.x,t.x+t.w,t.pitch,"abcjs-ledger","ledger",.35+e.lineThickness);break}return t.scalex!==1&&t.graphelem&&nd(e.paper,t.graphelem,t.scalex,t.scaley,t.x,a),t.graphelem}function nd(e,t,r,a,n,i){e.setAttributeOnElement(t,{style:"transform:scale("+r+","+a+");transform-origin:"+n+"px "+i+"px;"})}var ps=ad,id=ps,Ir=St;function sd(e,t){var r=t.x;t.pitch===void 0&&window.console.error("Tempo Element y-coordinate not set."),t.tempo.el_type="tempo";var a=e.calcY(t.pitch)+2,n,i;if(t.tempo.preString){n=Ir(e,{x:r,y:a,text:t.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"pre"},!0),i=e.controller.getTextSize.calc(t.tempo.preString,"tempofont","tempo",n);var s=i.width,o=s/t.tempo.preString.length;r+=s+o}if(t.note){t.note.setX(r);for(var l=0;l0&&t.children[0].type==="TempoElement";t.elemset=[],Gn.beginGroup(e.paper,e.controller);for(var s=0;s=0&&l.setAttribute("class","abcjs-notehead")}}var h=t.type;if((t.type==="note"||t.type==="rest")&&(t.counters=e.controller.classes.getCurrent(),h+=" d"+Math.round(t.durationClass*1e3)/1e3,h=h.replace(/\./g,"-"),t.abcelem.pitches))for(var u=0;u0?c.classList[0]+" ":"";c.setAttribute("class",f+t.overrideClasses)}if(i)t.startChar=t.abcelem.startChar,t.endChar=t.abcelem.endChar,a.add(t,c,!1,n);else{t.elemset.push(c);var d=!1;(t.type==="note"||t.type==="tabNumber")&&(d=!0),a.add(t,c,d,n)}}else t.elemset.length>0&&a.add(t,t.elemset[0],t.type==="note",n);if(t.klass&&Rn(t.elemset,"mark","","#00ff00"),t.hint&&Rn(t.elemset,"abcjs-hint","",null),t.abcelem.abselem=t,t.heads&&t.heads.length>0){t.notePositions=[];for(var p=0;p=0;u--){var c=(u+1)*o;h=e.calcY(c),l===0&&(l=h),Un(e,t,r,c,s,null,i+e.lineThickness),s=void 0}return e.paper.closeGroup(),[l,h]}var _d=Td;function Sd(e,t,r){var a=e.paper.rectBeneath(t);return r&&e.paper.text(r,{x:0,y:t.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),a}var Ed=Sd;function Ad(e,t){var r="rgba(0,0,0,255)",a="rgba(0,0,0,0)",n=Math.round(e.y),i=e.controller.width,s=(i-t)/2,o=s+t,l="M "+s+" "+n+" L "+o+" "+n+" L "+o+" "+(n+1)+" L "+s+" "+(n+1)+" L "+s+" "+n+" z";e.paper.pathToBack({path:l,stroke:a,fill:r,class:e.controller.classes.generate("defined-text")})}var Md=Ad,Nd=Md,Bd=St;function Ld(e,t,r){for(var a=0;a=0&&o.voices&&zd(e,t.voices,o.voices),e.showDebug.indexOf("grid")>=0&&(e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:i,y2:i,stroke:"#0000ff"}),dr(e,{x:e.padding.left,y:e.calcY(o.originalTop),width:e.controller.width,height:e.calcY(o.originalBottom)-e.calcY(o.originalTop),fill:e.foregroundColor,stroke:e.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),n=0,b(o,"chordHeightAbove"),b(o,"chordHeightBelow"),b(o,"dynamicHeightAbove"),b(o,"dynamicHeightBelow"),b(o,"endingHeightAbove"),b(o,"lyricHeightAbove"),b(o,"lyricHeightBelow"),b(o,"partHeightAbove"),b(o,"tempoHeightAbove"),b(o,"volumeHeightAbove"),b(o,"volumeHeightBelow"))),e.moveY(Jt.STEP,-o.bottom),e.showDebug&&e.showDebug.indexOf("grid")>=0&&e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:e.y,y2:e.y,stroke:"#0000aa"})}for(var l,h,u=2,c=0,f=0;f1&&(l=t.staffs[0].topLine,h=t.staffs[k-1].bottomLine,$d(e,t.startx,.6,l,h,null)),e.y=i;function b(m,C){var _=["rgb(207,27,36)","rgb(168,214,80)","rgb(110,161,224)","rgb(191,119,218)","rgb(195,30,151)","rgb(31,170,177)","rgb(220,166,142)"];if(m.positionY&&m.positionY[C]){var M=m.specialY[C]*Jt.STEP;C==="chordHeightAbove"&&m.specialY.chordLines&&m.specialY.chordLines.above&&(M*=m.specialY.chordLines.above),C==="chordHeightBelow"&&m.specialY.chordLines&&m.specialY.chordLines.below&&(M*=m.specialY.chordLines.below),dr(e,{x:e.padding.left,y:e.calcY(m.positionY[C]),width:e.controller.width,height:M,fill:_[n],stroke:_[n],"fill-opacity":.4,"stroke-opacity":.4},C.substr(0,4)),n+=1,n>6&&(n=0)}}}function Xn(e,t,r,a,n){if(r)for(var i=0;i=0};z0.prototype.wrapSvgEl=function(e,t){var r={tuneNumber:this.tuneNumber,abcelem:e,elemset:[t],highlight:Rd,unhighlight:Gd};this.add(r,t,!1)};var Wd=z0,Ud=Hd,Xd=Yd,Or=gs,vs=$e,Vd=Wd;function jd(e,t,r,a,n,i,s,o,l,h){var u=new Vd(e.paper,o,l),c={};t.shouldAddClasses&&(c.klass="abcjs-meta-top"),e.paper.openGroup(c),e.moveY(e.padding.top),Or(e,r.topText,u),e.paper.closeGroup(),e.moveY(e.spacing.music);for(var f=[],d=0;d=1&&Qd(e,e.spacing.staffSeparation,f[f.length-1],p.staffGroup);var g=Kd(e,p.staffGroup,u);g.line=h+d,f.push(g),e.paper.closeGroup()}else p.nonMusic&&(t.shouldAddClasses&&(c.klass="abcjs-non-music"),e.paper.openGroup(c),Or(e,p.nonMusic,u),e.paper.closeGroup())}return t.reset(),r.bottomText&&r.bottomText.rows&&r.bottomText.rows.length>0&&(t.shouldAddClasses&&(c.klass="abcjs-meta-bottom"),e.paper.openGroup(c),e.moveY(24),Or(e,r.bottomText,u),e.paper.closeGroup()),Xd(e,n,s,i),{staffgroups:f,selectables:u.getElements()}}function Kd(e,t,r,a){Ud(e,t,r);var n=t.height*vs.STEP;return e.y+=n,t}function Qd(e,t,r,a){var n=r.staffs[r.staffs.length-1],i=-(n.bottom-2),s=a.staffs[0].top-10,o=s+i,l=o*vs.STEP;l=0&&r.1||(this.scale=void 0),t.staffwidth?(this.staffwidthScreen=t.staffwidth,this.staffwidthPrint=t.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],t.clickListener&&this.addSelectListener(t.clickListener),this.renderer=new n2(e),this.renderer.setPaddingOverride(t),t.showDebug&&(this.renderer.showDebug=t.showDebug),t.jazzchords&&(this.jazzchords=t.jazzchords),t.accentAbove&&(this.accentAbove=t.accentAbove),t.germanAlphabet&&(this.germanAlphabet=t.germanAlphabet),t.lineThickness&&(this.lineThickness=t.lineThickness),this.renderer.controller=this,this.renderer.foregroundColor=t.foregroundColor?t.foregroundColor:"currentColor",t.ariaLabel!==void 0&&(this.renderer.ariaLabel=t.ariaLabel),this.renderer.minPadding=t.minPadding?t.minPadding:0,this.reset()};ut.prototype.reset=function(){this.selected=[],this.staffgroups=[],this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset(),this.dragTarget=null,this.dragIndex=-1,this.dragMouseStart={x:-1,y:-1},this.dragYStep=0,this.lineThickness&&this.renderer.setLineThickness(this.lineThickness)};ut.prototype.engraveABC=function(e,t,r){e[0]===void 0&&(e=[e]),this.reset();for(var a=0;a0)for(var o=s.staffGroup.voices[0],l=!1,h=0,u=0;uthis.width+1&&(e.topText=new bs(e.metaText,e.metaTextInfo,e.formatting,e.lines,i,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize),e.lines&&e.lines.length>0))for(var s=e.lines.length,o=0;o0)for(var h=l.nonMusic.rows.length,u=0;u0&&l.text[0].center&&(c.left=i/2+this.renderer.padding.left))}}e.tablatures&&u2.layoutTablatures(this.renderer,e);var f=h2(this.renderer,this.classes,e,this.width,i,this.responsive,n,this.selectTypes,t,r);if(this.staffgroups=f.staffgroups,this.selectables=f.selectables,this.oneSvgPerLine){var d=this.renderer.paper.svg.parentNode;this.svgs=p2(this.renderer,d,e.metaText.title,this.responsive,n)}else this.svgs=[this.renderer.paper.svg];l2(this,this.svgs),this.jazzchords=a};function p2(e,t,r,a,n){r||(r="Untitled");var i=t.querySelector("svg");a==="resize"&&(t.style.paddingBottom="");for(var s=i.querySelector("style"),o=a==="resize"?i.viewBox.baseVal.width:i.getAttribute("width"),l=t.querySelectorAll("svg > g"),h=0,u=[],c=0;c',e.style.overflowX="hidden",e.style.overflowY="auto",e=e.children[0]):e.innerHTML="";var i=new Cs(e,r);if(i.engraveABC(t,a,n),t.engraver=i,r.viewportVertical||r.viewportHorizontal){var s=e.parentNode;s.style.width=e.style.width}}var y2=function(e,t,r,a,n){var i={},s;if(r){for(s in r)r.hasOwnProperty(s)&&(i[s]=r[s]);i.warnings_id&&i.tablature&&(i.tablature.warning_id=i.warnings_id)}if(a)for(s in a)a.hasOwnProperty(s)&&(s==="listener"?a[s].highlight&&(i.clickListener=a[s].highlight):i[s]=a[s]);if(n)for(s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);function o(l,h,u,c){var f=!1;return l==="*"&&(f=!0,l=document.createElement("div"),l.setAttribute("style","visibility: hidden;"),document.body.appendChild(l)),!f&&i.wrap&&i.staffwidth?(h=w2(l,h,u,c,i),h):(i.afterParsing&&i.afterParsing(h,u,c),ks(l,h,i,u,0),f&&l.parentNode.removeChild(l),null)}return v2.renderEngine(o,e,t,i)};function w2(e,t,r,a,n){var i=new Cs(e,n),s=i.getMeasureWidths(t),o=m2.calcLineWraps(t,s,n);if(o.reParse){var l=new b2;l.parse(a,o.revisedParams),t=l.getTune();var h=l.getWarnings();h&&(t.warnings=h)}return n.afterParsing&&n.afterParsing(t,r,a),ks(e,t,o.revisedParams,r,0),t.explanation=o.explanation,t}var Ts=y2,x2=br,C2=xs,k2=function(e,t){function r(a,n,i,s){a=document.createElement("div"),a.setAttribute("style","visibility: hidden;"),document.body.appendChild(a);var o=new C2(a,t),l=o.getMeasureWidths(n);return a.parentNode.removeChild(a),{sections:l}}return x2.renderEngine(r,"*",e,t)},T2=k2,_2={},_a=_2,zr=_a,S2=function(e,t,r,a){zr[t]||(zr[t]={});var n=zr[t];return n[r]||(n[r]=new Promise(function(i,s){var o=new XMLHttpRequest;let l=e+t+"-mp3/"+r+".mp3";o.open("GET",l,!0),o.responseType="arraybuffer",o.onload=function(){if(o.status!==200){s(Error("Can't load sound at "+l+" status="+o.status));return}var h=function(c){i({instrument:t,name:r,status:"loaded",audioBuffer:c})},u=a.decodeAudioData(o.response,h,function(){s(Error("Can't decode sound at "+l))});u&&typeof u.catch=="function"&&u.catch(s)},o.onerror=function(){s(Error("Can't load sound at "+l))},o.send()}).catch(i=>{throw console.error("Didn't load note",t,r,":",i.message),i})),n[r]},E2=S2,A2=["acoustic_grand_piano","bright_acoustic_piano","electric_grand_piano","honkytonk_piano","electric_piano_1","electric_piano_2","harpsichord","clavinet","celesta","glockenspiel","music_box","vibraphone","marimba","xylophone","tubular_bells","dulcimer","drawbar_organ","percussive_organ","rock_organ","church_organ","reed_organ","accordion","harmonica","tango_accordion","acoustic_guitar_nylon","acoustic_guitar_steel","electric_guitar_jazz","electric_guitar_clean","electric_guitar_muted","overdriven_guitar","distortion_guitar","guitar_harmonics","acoustic_bass","electric_bass_finger","electric_bass_pick","fretless_bass","slap_bass_1","slap_bass_2","synth_bass_1","synth_bass_2","violin","viola","cello","contrabass","tremolo_strings","pizzicato_strings","orchestral_harp","timpani","string_ensemble_1","string_ensemble_2","synth_strings_1","synth_strings_2","choir_aahs","voice_oohs","synth_choir","orchestra_hit","trumpet","trombone","tuba","muted_trumpet","french_horn","brass_section","synth_brass_1","synth_brass_2","soprano_sax","alto_sax","tenor_sax","baritone_sax","oboe","english_horn","bassoon","clarinet","piccolo","flute","recorder","pan_flute","blown_bottle","shakuhachi","whistle","ocarina","lead_1_square","lead_2_sawtooth","lead_3_calliope","lead_4_chiff","lead_5_charang","lead_6_voice","lead_7_fifths","lead_8_bass_lead","pad_1_new_age","pad_2_warm","pad_3_polysynth","pad_4_choir","pad_5_bowed","pad_6_metallic","pad_7_halo","pad_8_sweep","fx_1_rain","fx_2_soundtrack","fx_3_crystal","fx_4_atmosphere","fx_5_brightness","fx_6_goblins","fx_7_echoes","fx_8_scifi","sitar","banjo","shamisen","koto","kalimba","bagpipe","fiddle","shanai","tinkle_bell","agogo","steel_drums","woodblock","taiko_drum","melodic_tom","synth_drum","reverse_cymbal","guitar_fret_noise","breath_noise","seashore","bird_tweet","telephone_ring","helicopter","applause","gunshot","percussion"],Sa=A2,Hr=Sa,M2=function(e){for(var t=[],r=0;r0){var l=s.gap?s.gap:0,h=s.duration;l=Math.min(l,h*2/3);var u={pitch:s.pitch,instrument:o,start:Math.round(s.start*1e6)/1e6,end:Math.round((s.start+h-l)*1e6)/1e6,volume:s.volume};s.startChar&&(u.startChar=s.startChar),s.endChar&&(u.endChar=s.endChar),s.style&&(u.style=s.style),s.cents&&(u.cents=s.cents),t[i].push(u)}break;case"program":a=Hr[s.instrument];break;case"text":break;default:console.log("Unhandled midi event",s)}})}),t},N2=M2;function B2(e){if(e)window.abcjsAudioContext=e;else if(!window.abcjsAudioContext){var t=window.AudioContext||window.webkitAudioContext;if(t)window.abcjsAudioContext=new t;else return!1}return window.abcjsAudioContext.state!=="suspended"}var xr=B2,L2=xr;function P2(){return window.abcjsAudioContext||L2(),window.abcjsAudioContext}var l0=P2,D2=l0;function F2(){if(!window.Promise||!window.AudioContext&&!window.webkitAudioContext&&!navigator.mozAudioContext&&!navigator.msAudioContext)return!1;var e=D2();if(e)return e.resume!==void 0}var Cr=F2,$2={21:"A0",22:"Bb0",23:"B0",24:"C1",25:"Db1",26:"D1",27:"Eb1",28:"E1",29:"F1",30:"Gb1",31:"G1",32:"Ab1",33:"A1",34:"Bb1",35:"B1",36:"C2",37:"Db2",38:"D2",39:"Eb2",40:"E2",41:"F2",42:"Gb2",43:"G2",44:"Ab2",45:"A2",46:"Bb2",47:"B2",48:"C3",49:"Db3",50:"D3",51:"Eb3",52:"E3",53:"F3",54:"Gb3",55:"G3",56:"Ab3",57:"A3",58:"Bb3",59:"B3",60:"C4",61:"Db4",62:"D4",63:"Eb4",64:"E4",65:"F4",66:"Gb4",67:"G4",68:"Ab4",69:"A4",70:"Bb4",71:"B4",72:"C5",73:"Db5",74:"D5",75:"Eb5",76:"E5",77:"F5",78:"Gb5",79:"G5",80:"Ab5",81:"A5",82:"Bb5",83:"B5",84:"C6",85:"Db6",86:"D6",87:"Eb6",88:"E6",89:"F6",90:"Gb6",91:"G6",92:"Ab6",93:"A6",94:"Bb6",95:"B6",96:"C7",97:"Db7",98:"D7",99:"Eb7",100:"E7",101:"F7",102:"Gb7",103:"G7",104:"Ab7",105:"A7",106:"Bb7",107:"B7",108:"C8",109:"Db8",110:"D8",111:"Eb8",112:"E8",113:"F8",114:"Gb8",115:"G8",116:"Ab8",117:"A8",118:"Bb8",119:"B8",120:"C9",121:"Db9"},Ea=$2,I2=function(e){return window.URL.createObjectURL(O2(e.audioBuffers))};function O2(e){var t=e[0],r=t.numberOfChannels,a=t.length*r*2+44,n=new ArrayBuffer(a),i=new DataView(n),s=[],o,l,h=0,u=0;for(f(1179011410),f(a-8),f(1163280727),f(544501094),f(16),c(1),c(r),f(t.sampleRate),f(t.sampleRate*2*r),c(r*2),c(16),f(1635017060),f(a-u-4),o=0;o0){if(e.debugCallback&&e.debugCallback("pending "+JSON.stringify(c)),s?s=s*2:s=50,s<9e4)return new Promise(function(w,k){setTimeout(function(){var b=[];for(d=0;dk?h[k]:0;w.forEach(function(m){var C=m.instrument+":"+m.pitch+":"+m.volume+":"+Math.round((m.end-m.start)*1e3)/1e3+":"+b+":"+s+":"+(m.cents?m.cents:0);e.debugCallback&&e.debugCallback("noteMapTrack "+C),u[C]||(u[C]=[]),u[C].push(m.start)})});for(var c=[],f=he().createBuffer(2,o,he().sampleRate),d=0;d0?w.audioBuffers[0].duration:0;return{status:he().state,duration:k}}Promise.all(c).then(function(){he().state==="suspended"?he().resume().then(function(){n(y(e))}):he().state==="interrupted"?he().suspend().then(function(){he().resume().then(function(){n(y(e))})}):n(y(e))})})):Promise.reject(new Error(Dt))};function t(a,n){if(n==null)return null;var i=[];if(n.length){for(var s=0;s1&&(o=1),i.push(o)}else i.push(0);return i}else{var l=parseFloat(n);if(l*(a-1)>2)return null;for(var h=a%2===0,u=h?0-l/2:0,c=u+l,f=0;f75&&(n=75),n=n/50-1;var o=0,l=.25;i.den===8&&(l=l/2);for(var h=l/2,u=h*n,c=0;c=f[d].start+h)){var g=p.start;p.start+=u,p.volume*=1+o,d>0&&f[d-1].end==g&&(f[d-1].end=p.start,f[d-1].volume*=1-o)}}}}}var Aa=e3,t3=function(){var e=this;e.tracks=[],e.totalDuration=0,e.currentInstrument=[],e.starts=[],e.addTrack=function(){return e.tracks.push([]),e.currentInstrument.push(0),e.starts.push(0),e.tracks.length-1},e.setInstrument=function(t,r){e.tracks[t].push({channel:0,cmd:"program",instrument:r}),e.currentInstrument[t]=r},e.appendNote=function(t,r,a,n,i){var s={cmd:"note",duration:a,gap:0,instrument:e.currentInstrument[t],pitch:r,start:e.starts[t],volume:n};i&&(s.cents=i),e.tracks[t].push(s),e.starts[t]+=a,e.totalDuration=Math.max(e.totalDuration,e.starts[t])}},Ss=t3,r3=` +`),i.font.box&&(r||e.paper.openGroup({klass:i.attr.class,fill:e.foregroundColor,"data-name":t.name}),i.attr["text-anchor"]==="end"?i.attr.x-=i.font.padding:i.attr["text-anchor"]==="start"&&(i.attr.x+=i.font.padding),i.attr.y+=i.font.padding,delete i.attr.class),t.noClass&&delete i.attr.class,i.attr.x=Pn(i.attr.x),i.attr.y=Pn(i.attr.y),t.name&&(i.attr["data-name"]=t.name);var o=e.paper.text(s,i.attr);if(i.font.box){var l=o.getBBox(),h=0;i.attr["text-anchor"]==="middle"?h=l.width/2+i.font.padding:i.attr["text-anchor"]==="end"&&(h=l.width+i.font.padding*2);var u=0;t.centerVertically&&(u=l.height-i.font.padding),e.paper.rect({"data-name":"box",x:Math.round(t.x-h),y:Math.round(a-u),width:Math.round(l.width+i.font.padding*2),height:Math.round(l.height+i.font.padding*2)}),r||(o=e.paper.closeGroup())}return o}var St=Kh,nr=qt,Ze=$e,Qh=St;function Jh(e,t,r){var a=t.startVoice.staff.absoluteY-Ze.STEP*10;return t.endVoice&&t.endVoice.staff?t.endY=t.endVoice.staff.absoluteY-Ze.STEP*2:t.lastContinuedVoice&&t.lastContinuedVoice.staff?t.endY=t.lastContinuedVoice.staff.absoluteY-Ze.STEP*2:t.endY=t.startVoice.staff.absoluteY-Ze.STEP*2,tu(e,t.x,a,t.endY,t.type,t.header,r)}function Zh(e,t,r,a,n){t+=Ze.STEP;var i=Ze.STEP*.75,s=Ze.STEP*.75,o=a-r,l=nr("M %f %f l %f %f l %f %f l %f %f z",t,r-s,0,o+s*2,i,0,0,-(o+s*2)),h=Ze.STEP*2,u=Ze.STEP;return l+=nr("M %f %f q %f %f %f %f q %f %f %f %f z",t+i,r-s,h*.6,u*.2,h,-u,-h*.1,u*.3,-h,u+Ze.STEP),l+=nr("M %f %f q %f %f %f %f q %f %f %f %f z",t+i,r+s+o,h*.6,-u*.2,h,u,-h*.1,-u*.3,-h,-u-Ze.STEP),e.paper.path({path:l,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(n),"data-name":n})}function eu(e,t,r,a,n){var i=a-r,s=Dn(t,r,[7.5,-8,21,0,18.5,-10.5,7.5],[0,i/5.5,i/3.14,i/2,i/2.93,i/4.88,0]);return s+=Dn(t,r,[0,17.5,-7.5,6.6,-5,20,0],[i/2,i/1.46,i/1.22,i,i/1.19,i/1.42,i/2]),e.paper.path({path:s,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(n),"data-name":n})}function Dn(e,t,r,a){return nr("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e+r[0],t+a[0],e+r[1],t+a[1],e+r[2],t+a[2],e+r[3],t+a[3],e+r[4],t+a[4],e+r[5],t+a[5],e+r[6],t+a[6])}var tu=function(e,t,r,a,n,i,s){var o;if(i){e.paper.openGroup({klass:e.controller.classes.generate("staff-extra voice-name"),"data-name":n});var l=r+(a-r)/2;l=l-e.controller.getTextSize.baselineToCenter(i,"voicefont","staff-extra voice-name",0,1),Qh(e,{x:e.padding.left,y:l,text:i,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return n==="brace"?o=eu(e,t,r,a,n):n==="bracket"&&(o=Zh(e,t,r,a,n)),i&&(o=e.paper.closeGroup()),s.wrapSvgEl({el_type:n,startChar:-1,endChar:-1},o),o},ru=Jh;function au(e,t,r){var a=e.paper.path(t);return a}var $0=au,nu=qt,iu=$0,su=ft;function ou(e,t,r){(!t.anchor1||!t.anchor2||!t.anchor1.heads||!t.anchor2.heads||t.anchor1.heads.length===0||t.anchor2.heads.length===0)&&window.console.error("Glissando Element not set.");var a=4,n=e.calcY(t.anchor1.heads[0].pitch),i=e.calcY(t.anchor2.heads[0].pitch),s=t.anchor1.x+t.anchor1.w/2,o=t.anchor2.x+t.anchor2.w/2,l=cu(s,n,o,i),h=t.anchor1.w/2+a,u=t.anchor2.w/2+a,c=lu(s,n,o,i),f=na(n,c,h);na(i,c,-u);var d=fu(l-h-u),p=vu(e,s+h,f,d,c);return r.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},p),[p]}function cu(e,t,r,a){var n=r-e,i=a-t;return Math.sqrt(n*n+i*i)}function lu(e,t,r,a){return(a-t)/(r-e)}function na(e,t,r){return su(e+r*t)}function fu(e){var t=5;return Math.max(2,Math.floor((e-t*2)/6))}var hu=[[3.5,-4.8]],uu=[[1.5,-1],[.3,-.3],[-3.5,3.8]],du=[[-1.5,2]],pu=[[3,4],[3,-4]],gu=[[-3,4],[-3,-4]];function m0(e,t){for(var r="",a=0;a1&&a.indexOf(".")<0){var o=On.isInGroup()?"":n.klass;e.paper.openGroup({"data-name":n.name,klass:o});for(var l=0,h=0;h0?t.linewidth+e.lineThickness:t.linewidth-e.lineThickness;t.graphelem=Gn(e,t.x,l,a,e.calcY(t.pitch2),"abcjs-stem","stem");break;case"ledger":t.graphelem=Zu(e,t.x,t.x+t.w,t.pitch,"abcjs-ledger","ledger",.35+e.lineThickness);break}return t.scalex!==1&&t.graphelem&&rd(e.paper,t.graphelem,t.scalex,t.scaley,t.x,a),t.graphelem}function rd(e,t,r,a,n,i){e.setAttributeOnElement(t,{style:"transform:scale("+r+","+a+");transform-origin:"+n+"px "+i+"px;"})}var ps=td,ad=ps,Ir=St;function nd(e,t){var r=t.x;t.pitch===void 0&&window.console.error("Tempo Element y-coordinate not set."),t.tempo.el_type="tempo";var a=e.calcY(t.pitch)+2,n,i;if(t.tempo.preString){n=Ir(e,{x:r,y:a,text:t.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"pre"},!0),i=e.controller.getTextSize.calc(t.tempo.preString,"tempofont","tempo",n);var s=i.width,o=s/t.tempo.preString.length;r+=s+o}if(t.note){t.note.setX(r);for(var l=0;l0&&t.children[0].type==="TempoElement";t.elemset=[],Rn.beginGroup(e.paper,e.controller);for(var s=0;s=0&&l.setAttribute("class","abcjs-notehead")}}var h=t.type;if((t.type==="note"||t.type==="rest")&&(t.counters=e.controller.classes.getCurrent(),h+=" d"+Math.round(t.durationClass*1e3)/1e3,h=h.replace(/\./g,"-"),t.abcelem.pitches))for(var u=0;u0?c.classList[0]+" ":"";c.setAttribute("class",f+t.overrideClasses)}if(i)t.startChar=t.abcelem.startChar,t.endChar=t.abcelem.endChar,a.add(t,c,!1,n);else{t.elemset.push(c);var d=!1;(t.type==="note"||t.type==="tabNumber")&&(d=!0),a.add(t,c,d,n)}}else t.elemset.length>0&&a.add(t,t.elemset[0],t.type==="note",n);if(t.klass&&Yn(t.elemset,"mark","","#00ff00"),t.hint&&Yn(t.elemset,"abcjs-hint","",null),t.abcelem.abselem=t,t.heads&&t.heads.length>0){t.notePositions=[];for(var p=0;p=0;u--){var c=(u+1)*o;h=e.calcY(c),l===0&&(l=h),Un(e,t,r,c,s,null,i+e.lineThickness),s=void 0}return e.paper.closeGroup(),[l,h]}var kd=Cd;function Td(e,t,r){var a=e.paper.rectBeneath(t);return r&&e.paper.text(r,{x:0,y:t.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),a}var _d=Td;function Sd(e,t){var r="rgba(0,0,0,255)",a="rgba(0,0,0,0)",n=Math.round(e.y),i=e.controller.width,s=(i-t)/2,o=s+t,l="M "+s+" "+n+" L "+o+" "+n+" L "+o+" "+(n+1)+" L "+s+" "+(n+1)+" L "+s+" "+n+" z";e.paper.pathToBack({path:l,stroke:a,fill:r,class:e.controller.classes.generate("defined-text")})}var Ed=Sd,Ad=Ed,Md=St;function Nd(e,t,r){for(var a=0;a=0&&o.voices&&Id(e,t.voices,o.voices),e.showDebug.indexOf("grid")>=0&&(e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:i,y2:i,stroke:"#0000ff"}),dr(e,{x:e.padding.left,y:e.calcY(o.originalTop),width:e.controller.width,height:e.calcY(o.originalBottom)-e.calcY(o.originalTop),fill:e.foregroundColor,stroke:e.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),n=0,b(o,"chordHeightAbove"),b(o,"chordHeightBelow"),b(o,"dynamicHeightAbove"),b(o,"dynamicHeightBelow"),b(o,"endingHeightAbove"),b(o,"lyricHeightAbove"),b(o,"lyricHeightBelow"),b(o,"partHeightAbove"),b(o,"tempoHeightAbove"),b(o,"volumeHeightAbove"),b(o,"volumeHeightBelow"))),e.moveY(Jt.STEP,-o.bottom),e.showDebug&&e.showDebug.indexOf("grid")>=0&&e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:e.y,y2:e.y,stroke:"#0000aa"})}for(var l,h,u=2,c=0,f=0;f1&&(l=t.staffs[0].topLine,h=t.staffs[k-1].bottomLine,Dd(e,t.startx,.6,l,h,null)),e.y=i;function b(m,C){var _=["rgb(207,27,36)","rgb(168,214,80)","rgb(110,161,224)","rgb(191,119,218)","rgb(195,30,151)","rgb(31,170,177)","rgb(220,166,142)"];if(m.positionY&&m.positionY[C]){var M=m.specialY[C]*Jt.STEP;C==="chordHeightAbove"&&m.specialY.chordLines&&m.specialY.chordLines.above&&(M*=m.specialY.chordLines.above),C==="chordHeightBelow"&&m.specialY.chordLines&&m.specialY.chordLines.below&&(M*=m.specialY.chordLines.below),dr(e,{x:e.padding.left,y:e.calcY(m.positionY[C]),width:e.controller.width,height:M,fill:_[n],stroke:_[n],"fill-opacity":.4,"stroke-opacity":.4},C.substr(0,4)),n+=1,n>6&&(n=0)}}}function Xn(e,t,r,a,n){if(r)for(var i=0;i=0};O0.prototype.wrapSvgEl=function(e,t){var r={tuneNumber:this.tuneNumber,abcelem:e,elemset:[t],highlight:qd,unhighlight:Gd};this.add(r,t,!1)};var Yd=O0,Rd=Od,Wd=zd,Or=gs,vs=$e,Ud=Yd;function Xd(e,t,r,a,n,i,s,o,l,h){var u=new Ud(e.paper,o,l),c={};t.shouldAddClasses&&(c.klass="abcjs-meta-top"),e.paper.openGroup(c),e.moveY(e.padding.top),Or(e,r.topText,u),e.paper.closeGroup(),e.moveY(e.spacing.music);for(var f=[],d=0;d=1&&jd(e,e.spacing.staffSeparation,f[f.length-1],p.staffGroup);var g=Vd(e,p.staffGroup,u);g.line=h+d,f.push(g),e.paper.closeGroup()}else p.nonMusic&&(t.shouldAddClasses&&(c.klass="abcjs-non-music"),e.paper.openGroup(c),Or(e,p.nonMusic,u),e.paper.closeGroup())}return t.reset(),r.bottomText&&r.bottomText.rows&&r.bottomText.rows.length>0&&(t.shouldAddClasses&&(c.klass="abcjs-meta-bottom"),e.paper.openGroup(c),e.moveY(24),Or(e,r.bottomText,u),e.paper.closeGroup()),Wd(e,n,s,i),{staffgroups:f,selectables:u.getElements()}}function Vd(e,t,r,a){Rd(e,t,r);var n=t.height*vs.STEP;return e.y+=n,t}function jd(e,t,r,a){var n=r.staffs[r.staffs.length-1],i=-(n.bottom-2),s=a.staffs[0].top-10,o=s+i,l=o*vs.STEP;l=0&&r.1||(this.scale=void 0),t.staffwidth?(this.staffwidthScreen=t.staffwidth,this.staffwidthPrint=t.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],t.clickListener&&this.addSelectListener(t.clickListener),this.renderer=new r2(e),this.renderer.setPaddingOverride(t),t.showDebug&&(this.renderer.showDebug=t.showDebug),t.jazzchords&&(this.jazzchords=t.jazzchords),t.accentAbove&&(this.accentAbove=t.accentAbove),t.germanAlphabet&&(this.germanAlphabet=t.germanAlphabet),t.lineThickness&&(this.lineThickness=t.lineThickness),this.renderer.controller=this,this.renderer.foregroundColor=t.foregroundColor?t.foregroundColor:"currentColor",t.ariaLabel!==void 0&&(this.renderer.ariaLabel=t.ariaLabel),this.renderer.minPadding=t.minPadding?t.minPadding:0,this.reset()};ht.prototype.reset=function(){this.selected=[],this.staffgroups=[],this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset(),this.dragTarget=null,this.dragIndex=-1,this.dragMouseStart={x:-1,y:-1},this.dragYStep=0,this.lineThickness&&this.renderer.setLineThickness(this.lineThickness)};ht.prototype.engraveABC=function(e,t,r){e[0]===void 0&&(e=[e]),this.reset();for(var a=0;a0)for(var o=s.staffGroup.voices[0],l=!1,h=0,u=0;uthis.width+1&&(e.topText=new bs(e.metaText,e.metaTextInfo,e.formatting,e.lines,i,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize),e.lines&&e.lines.length>0))for(var s=e.lines.length,o=0;o0)for(var h=l.nonMusic.rows.length,u=0;u0&&l.text[0].center&&(c.left=i/2+this.renderer.padding.left))}}e.tablatures&&f2.layoutTablatures(this.renderer,e);var f=l2(this.renderer,this.classes,e,this.width,i,this.responsive,n,this.selectTypes,t,r);if(this.staffgroups=f.staffgroups,this.selectables=f.selectables,this.oneSvgPerLine){var d=this.renderer.paper.svg.parentNode;this.svgs=u2(this.renderer,d,e.metaText.title,this.responsive,n)}else this.svgs=[this.renderer.paper.svg];o2(this,this.svgs),this.jazzchords=a};function u2(e,t,r,a,n){r||(r="Untitled");var i=t.querySelector("svg");a==="resize"&&(t.style.paddingBottom="");for(var s=i.querySelector("style"),o=a==="resize"?i.viewBox.baseVal.width:i.getAttribute("width"),l=t.querySelectorAll("svg > g"),h=0,u=[],c=0;c',e.style.overflowX="hidden",e.style.overflowY="auto",e=e.children[0]):e.innerHTML="";var i=new Cs(e,r);if(i.engraveABC(t,a,n),t.engraver=i,r.viewportVertical||r.viewportHorizontal){var s=e.parentNode;s.style.width=e.style.width}}var b2=function(e,t,r,a,n){var i={},s;if(r){for(s in r)r.hasOwnProperty(s)&&(i[s]=r[s]);i.warnings_id&&i.tablature&&(i.tablature.warning_id=i.warnings_id)}if(a)for(s in a)a.hasOwnProperty(s)&&(s==="listener"?a[s].highlight&&(i.clickListener=a[s].highlight):i[s]=a[s]);if(n)for(s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);function o(l,h,u,c){var f=!1;return l==="*"&&(f=!0,l=document.createElement("div"),l.setAttribute("style","visibility: hidden;"),document.body.appendChild(l)),!f&&i.wrap&&i.staffwidth?(h=m2(l,h,u,c,i),h):(i.afterParsing&&i.afterParsing(h,u,c),ks(l,h,i,u,0),f&&l.parentNode.removeChild(l),null)}return p2.renderEngine(o,e,t,i)};function m2(e,t,r,a,n){var i=new Cs(e,n),s=i.getMeasureWidths(t),o=v2.calcLineWraps(t,s,n);if(o.reParse){var l=new g2;l.parse(a,o.revisedParams),t=l.getTune();var h=l.getWarnings();h&&(t.warnings=h)}return n.afterParsing&&n.afterParsing(t,r,a),ks(e,t,o.revisedParams,r,0),t.explanation=o.explanation,t}var Ts=b2,y2=br,w2=xs,x2=function(e,t){function r(a,n,i,s){a=document.createElement("div"),a.setAttribute("style","visibility: hidden;"),document.body.appendChild(a);var o=new w2(a,t),l=o.getMeasureWidths(n);return a.parentNode.removeChild(a),{sections:l}}return y2.renderEngine(r,"*",e,t)},C2=x2,k2={},_a=k2,Hr=_a,T2=function(e,t,r,a){Hr[t]||(Hr[t]={});var n=Hr[t];return n[r]||(n[r]=new Promise(function(i,s){var o=new XMLHttpRequest;let l=e+t+"-mp3/"+r+".mp3";o.open("GET",l,!0),o.responseType="arraybuffer",o.onload=function(){if(o.status!==200){s(Error("Can't load sound at "+l+" status="+o.status));return}var h=function(c){i({instrument:t,name:r,status:"loaded",audioBuffer:c})},u=a.decodeAudioData(o.response,h,function(){s(Error("Can't decode sound at "+l))});u&&typeof u.catch=="function"&&u.catch(s)},o.onerror=function(){s(Error("Can't load sound at "+l))},o.send()}).catch(i=>{throw console.error("Didn't load note",t,r,":",i.message),i})),n[r]},_2=T2,S2=["acoustic_grand_piano","bright_acoustic_piano","electric_grand_piano","honkytonk_piano","electric_piano_1","electric_piano_2","harpsichord","clavinet","celesta","glockenspiel","music_box","vibraphone","marimba","xylophone","tubular_bells","dulcimer","drawbar_organ","percussive_organ","rock_organ","church_organ","reed_organ","accordion","harmonica","tango_accordion","acoustic_guitar_nylon","acoustic_guitar_steel","electric_guitar_jazz","electric_guitar_clean","electric_guitar_muted","overdriven_guitar","distortion_guitar","guitar_harmonics","acoustic_bass","electric_bass_finger","electric_bass_pick","fretless_bass","slap_bass_1","slap_bass_2","synth_bass_1","synth_bass_2","violin","viola","cello","contrabass","tremolo_strings","pizzicato_strings","orchestral_harp","timpani","string_ensemble_1","string_ensemble_2","synth_strings_1","synth_strings_2","choir_aahs","voice_oohs","synth_choir","orchestra_hit","trumpet","trombone","tuba","muted_trumpet","french_horn","brass_section","synth_brass_1","synth_brass_2","soprano_sax","alto_sax","tenor_sax","baritone_sax","oboe","english_horn","bassoon","clarinet","piccolo","flute","recorder","pan_flute","blown_bottle","shakuhachi","whistle","ocarina","lead_1_square","lead_2_sawtooth","lead_3_calliope","lead_4_chiff","lead_5_charang","lead_6_voice","lead_7_fifths","lead_8_bass_lead","pad_1_new_age","pad_2_warm","pad_3_polysynth","pad_4_choir","pad_5_bowed","pad_6_metallic","pad_7_halo","pad_8_sweep","fx_1_rain","fx_2_soundtrack","fx_3_crystal","fx_4_atmosphere","fx_5_brightness","fx_6_goblins","fx_7_echoes","fx_8_scifi","sitar","banjo","shamisen","koto","kalimba","bagpipe","fiddle","shanai","tinkle_bell","agogo","steel_drums","woodblock","taiko_drum","melodic_tom","synth_drum","reverse_cymbal","guitar_fret_noise","breath_noise","seashore","bird_tweet","telephone_ring","helicopter","applause","gunshot","percussion"],Sa=S2,zr=Sa,E2=function(e){for(var t=[],r=0;r0){var l=s.gap?s.gap:0,h=s.duration;l=Math.min(l,h*2/3);var u={pitch:s.pitch,instrument:o,start:Math.round(s.start*1e6)/1e6,end:Math.round((s.start+h-l)*1e6)/1e6,volume:s.volume};s.startChar&&(u.startChar=s.startChar),s.endChar&&(u.endChar=s.endChar),s.style&&(u.style=s.style),s.cents&&(u.cents=s.cents),t[i].push(u)}break;case"program":a=zr[s.instrument];break;case"text":break;default:console.log("Unhandled midi event",s)}})}),t},A2=E2;function M2(e){if(e)window.abcjsAudioContext=e;else if(!window.abcjsAudioContext){var t=window.AudioContext||window.webkitAudioContext;if(t)window.abcjsAudioContext=new t;else return!1}return window.abcjsAudioContext.state!=="suspended"}var xr=M2,N2=xr;function B2(){return window.abcjsAudioContext||N2(),window.abcjsAudioContext}var o0=B2,L2=o0;function P2(){if(!window.Promise||!window.AudioContext&&!window.webkitAudioContext&&!navigator.mozAudioContext&&!navigator.msAudioContext)return!1;var e=L2();if(e)return e.resume!==void 0}var Cr=P2,D2={21:"A0",22:"Bb0",23:"B0",24:"C1",25:"Db1",26:"D1",27:"Eb1",28:"E1",29:"F1",30:"Gb1",31:"G1",32:"Ab1",33:"A1",34:"Bb1",35:"B1",36:"C2",37:"Db2",38:"D2",39:"Eb2",40:"E2",41:"F2",42:"Gb2",43:"G2",44:"Ab2",45:"A2",46:"Bb2",47:"B2",48:"C3",49:"Db3",50:"D3",51:"Eb3",52:"E3",53:"F3",54:"Gb3",55:"G3",56:"Ab3",57:"A3",58:"Bb3",59:"B3",60:"C4",61:"Db4",62:"D4",63:"Eb4",64:"E4",65:"F4",66:"Gb4",67:"G4",68:"Ab4",69:"A4",70:"Bb4",71:"B4",72:"C5",73:"Db5",74:"D5",75:"Eb5",76:"E5",77:"F5",78:"Gb5",79:"G5",80:"Ab5",81:"A5",82:"Bb5",83:"B5",84:"C6",85:"Db6",86:"D6",87:"Eb6",88:"E6",89:"F6",90:"Gb6",91:"G6",92:"Ab6",93:"A6",94:"Bb6",95:"B6",96:"C7",97:"Db7",98:"D7",99:"Eb7",100:"E7",101:"F7",102:"Gb7",103:"G7",104:"Ab7",105:"A7",106:"Bb7",107:"B7",108:"C8",109:"Db8",110:"D8",111:"Eb8",112:"E8",113:"F8",114:"Gb8",115:"G8",116:"Ab8",117:"A8",118:"Bb8",119:"B8",120:"C9",121:"Db9"},Ea=D2,F2=function(e){return window.URL.createObjectURL($2(e.audioBuffers))};function $2(e){var t=e[0],r=t.numberOfChannels,a=t.length*r*2+44,n=new ArrayBuffer(a),i=new DataView(n),s=[],o,l,h=0,u=0;for(f(1179011410),f(a-8),f(1163280727),f(544501094),f(16),c(1),c(r),f(t.sampleRate),f(t.sampleRate*2*r),c(r*2),c(16),f(1635017060),f(a-u-4),o=0;o0){if(e.debugCallback&&e.debugCallback("pending "+JSON.stringify(c)),s?s=s*2:s=50,s<9e4)return new Promise(function(w,k){setTimeout(function(){var b=[];for(d=0;dk?h[k]:0;w.forEach(function(m){var C=m.instrument+":"+m.pitch+":"+m.volume+":"+Math.round((m.end-m.start)*1e3)/1e3+":"+b+":"+s+":"+(m.cents?m.cents:0);e.debugCallback&&e.debugCallback("noteMapTrack "+C),u[C]||(u[C]=[]),u[C].push(m.start)})});for(var c=[],f=he().createBuffer(2,o,he().sampleRate),d=0;d0?w.audioBuffers[0].duration:0;return{status:he().state,duration:k}}Promise.all(c).then(function(){he().state==="suspended"?he().resume().then(function(){n(y(e))}):he().state==="interrupted"?he().suspend().then(function(){he().resume().then(function(){n(y(e))})}):n(y(e))})})):Promise.reject(new Error(Dt))};function t(a,n){if(n==null)return null;var i=[];if(n.length){for(var s=0;s1&&(o=1),i.push(o)}else i.push(0);return i}else{var l=parseFloat(n);if(l*(a-1)>2)return null;for(var h=a%2===0,u=h?0-l/2:0,c=u+l,f=0;f75&&(n=75),n=n/50-1;var o=0,l=.25;i.den===8&&(l=l/2);for(var h=l/2,u=h*n,c=0;c=f[d].start+h)){var g=p.start;p.start+=u,p.volume*=1+o,d>0&&f[d-1].end==g&&(f[d-1].end=p.start,f[d-1].volume*=1-o)}}}}}var Aa=J2,Z2=function(){var e=this;e.tracks=[],e.totalDuration=0,e.currentInstrument=[],e.starts=[],e.addTrack=function(){return e.tracks.push([]),e.currentInstrument.push(0),e.starts.push(0),e.tracks.length-1},e.setInstrument=function(t,r){e.tracks[t].push({channel:0,cmd:"program",instrument:r}),e.currentInstrument[t]=r},e.appendNote=function(t,r,a,n,i){var s={cmd:"note",duration:a,gap:0,instrument:e.currentInstrument[t],pitch:r,start:e.starts[t],volume:n};i&&(s.cents=i),e.tracks[t].push(s),e.starts[t]+=a,e.totalDuration=Math.max(e.totalDuration,e.starts[t])}},Ss=Z2,e3=` -`,a3=r3,n3=` +`,t3=e3,r3=` -`,i3=n3,s3=` +`,a3=r3,n3=` -`,o3=s3,c3=` +`,i3=n3,s3=` -`,l3=c3,f3=` +`,o3=s3,c3=` -`,h3=f3,u3=Cr,Es=xr,E0=l0,d3=Fe,p3=a3,g3=i3,v3=o3,b3=l3,m3=h3;function y3(e,t){var r=this;if(typeof e=="string"){var a=e;if(e=document.querySelector(a),!e)throw new Error('Cannot find element "'+a+'" in the DOM.')}else if(!(e instanceof HTMLElement))throw new Error("The first parameter must be a valid element or selector in the DOM.");if(r.parent=e,r.options={},t&&(r.options=d3.clone(t)),r.options.ac&&Es(r.options.ac),w3(r.parent,r.options),x3(r),r.disable=function(i){var s=r.parent.querySelector(".abcjs-inline-audio");i?s.classList.add("abcjs-disabled"):s.classList.remove("abcjs-disabled")},r.setWarp=function(i,s){var o=r.parent.querySelector(".abcjs-midi-tempo");o.value=Math.round(s),r.setTempo(i)},r.setTempo=function(i){var s=r.parent.querySelector(".abcjs-midi-current-tempo");s&&(s.innerHTML=Math.round(i))},r.resetAll=function(){for(var i=r.parent.querySelectorAll(".abcjs-pushed"),s=0;s -`;if(r){var h=t.repeatTitle?t.repeatTitle:"Click to toggle play once/repeat.",u=t.repeatAria?t.repeatAria:h;l+=' -`}if(a){var c=t.restartTitle?t.restartTitle:"Click to go to beginning.",f=t.restartAria?t.restartAria:c;l+=' -`}if(n){var d=t.playTitle?t.playTitle:"Click to play/pause.",p=t.playAria?t.playAria:d;l+=' +`,l3=c3,f3=Cr,Es=xr,_0=o0,h3=Fe,u3=t3,d3=a3,p3=i3,g3=o3,v3=l3;function b3(e,t){var r=this;if(typeof e=="string"){var a=e;if(e=document.querySelector(a),!e)throw new Error('Cannot find element "'+a+'" in the DOM.')}else if(!(e instanceof HTMLElement))throw new Error("The first parameter must be a valid element or selector in the DOM.");if(r.parent=e,r.options={},t&&(r.options=h3.clone(t)),r.options.ac&&Es(r.options.ac),m3(r.parent,r.options),y3(r),r.disable=function(i){var s=r.parent.querySelector(".abcjs-inline-audio");i?s.classList.add("abcjs-disabled"):s.classList.remove("abcjs-disabled")},r.setWarp=function(i,s){var o=r.parent.querySelector(".abcjs-midi-tempo");o.value=Math.round(s),r.setTempo(i)},r.setTempo=function(i){var s=r.parent.querySelector(".abcjs-midi-current-tempo");s&&(s.innerHTML=Math.round(i))},r.resetAll=function(){for(var i=r.parent.querySelectorAll(".abcjs-pushed"),s=0;s +`;if(r){var h=t.repeatTitle?t.repeatTitle:"Click to toggle play once/repeat.",u=t.repeatAria?t.repeatAria:h;l+=' +`}if(a){var c=t.restartTitle?t.restartTitle:"Click to go to beginning.",f=t.restartAria?t.restartAria:c;l+=' +`}if(n){var d=t.playTitle?t.playTitle:"Click to play/pause.",p=t.playAria?t.playAria:d;l+=' `}if(i){var g=t.randomTitle?t.randomTitle:"Click to change the playback position.",v=t.randomAria?t.randomAria:g;l+=' `}if(o&&(l+=` `),s){var y=t.warpTitle?t.warpTitle:"Change the playback speed.",w=t.warpAria?t.warpAria:y,k=t.bpm?t.bpm:"BPM";l+=' ( '+k+`) `}l+='
CSS required: load abcjs-audio.css
',l+=` -`,e.innerHTML=l}function x0(e,t,r,a,n){var i=!0;if(E0()?i=E0().state==="suspended":Es(),!u3())throw{status:"NotSupported",message:"This browser does not support audio."};(i||n)&&r&&r.classList.add("abcjs-loading"),i?E0().resume().then(function(){a?a().then(function(s){qr(e,t,r,n)}):qr(e,t,r,n)}):qr(e,t,r,n)}function qr(e,t,r,a){a?e(t).then(function(){r&&r.classList.remove("abcjs-loading")}):(e(t),r&&r.classList.remove("abcjs-loading"))}function x3(e){var t=!!e.options.loopHandler,r=!!e.options.restartHandler,a=!!e.options.playHandler||!!e.options.playPromiseHandler,n=!!e.options.progressHandler,i=!!e.options.warpHandler,s=e.parent.querySelector(".abcjs-midi-start");t&&e.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(o){x0(e.options.loopHandler,o,s,e.options.afterResume)}),r&&e.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(o){x0(e.options.restartHandler,o,s,e.options.afterResume)}),a&&s.addEventListener("click",function(o){x0(e.options.playPromiseHandler||e.options.playHandler,o,s,e.options.afterResume,!!e.options.playPromiseHandler)}),n&&e.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(o){x0(e.options.progressHandler,o,s,e.options.afterResume)}),i&&e.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(o){x0(e.options.warpHandler,o,s,e.options.afterResume)})}var As=y3,C3=Ss,k3=Aa,T3=l0;function _3(e,t,r,a,n){for(var i=new C3,s=0;s=1&&parseInt(e.cursorControl.beatSubdivisions,10)<=64&&(n=parseInt(e.cursorControl.beatSubdivisions,10)),e.timer=new M3(e.visualObj,{beatCallback:e.beatCallback,eventCallback:e.eventCallback,lineEndCallback:e.lineEndCallback,qpm:e.currentTempo,extraMeasuresAtBeginning:e.cursorControl?e.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:e.cursorControl?e.cursorControl.lineEndAnticipation:0,beatSubdivisions:n}),e.cursorControl&&e.cursorControl.onReady&&typeof e.cursorControl.onReady=="function"&&e.cursorControl.onReady(e),e.isLoaded=!0,e.isLoading=!1,Promise.resolve({status:"created",notesStatus:a})})},e.destroy=function(){e.timer&&(e.timer.reset(),e.timer.stop(),e.timer=null),e.midiBuffer&&(e.midiBuffer.stop(),e.midiBuffer=null),e.setProgress(0,1),e.control&&e.control.resetAll()},e.play=function(){return e.runWhenReady(e._play,void 0)};function t(r){return new Promise(function(a){setTimeout(a,r)})}e.runWhenReady=function(r,a){return e.visualObj?e.isLoading?t(500).then(function(){return e.isLoading?e.runWhenReady(r,a):r(a)}):e.isLoaded?r(a):e.go().then(function(){return r(a)}):Promise.resolve({status:"loading"})},e._play=function(){return ei().resume().then(function(){return e.isStarted=!e.isStarted,e.isStarted?(e.cursorControl&&e.cursorControl.onStart&&typeof e.cursorControl.onStart=="function"&&e.cursorControl.onStart(),e.midiBuffer.start(),e.timer.start(e.percent),e.control&&e.control.pushPlay(!0)):e.pause(),Promise.resolve({status:"ok"})})},e.pause=function(){e.timer&&(e.timer.pause(),e.midiBuffer.pause(),e.control&&e.control.pushPlay(!1))},e.toggleLoop=function(){e.isLooping=!e.isLooping,e.control&&e.control.pushLoop(e.isLooping)},e.restart=function(){e.timer&&(e.timer.setProgress(0),e.midiBuffer.seek(0))},e.randomAccess=function(r){return e.runWhenReady(e._randomAccess,r)},e._randomAccess=function(r){var a=r.target.classList.contains("abcjs-midi-progress-indicator")?r.target.parentNode:r.target,n=(r.x-a.getBoundingClientRect().left)/a.offsetWidth;return n<0&&(n=0),n>1&&(n=1),e.seek(n),Promise.resolve({status:"ok"})},e.seek=function(r,a){e.timer&&e.midiBuffer&&(e.timer.setProgress(r,a),e.midiBuffer.seek(r,a))},e.setWarp=function(r){if(parseInt(r,10)>0){e.warp=parseInt(r,10);var a=e.isStarted,n=e.percent;return e.destroy(),e.isStarted=!1,e.go().then(function(){return e.setProgress(n,e.midiBuffer.duration*1e3),e.control&&e.control.setWarp(e.currentTempo,e.warp),a?e.play().then(function(){return e.seek(n),Promise.resolve()}):(e.seek(n),Promise.resolve())})}return Promise.resolve()},e.onWarp=function(r){var a=r.target.value;return e.setWarp(a)},e.setProgress=function(r,a){e.percent=r,e.control&&e.control.setProgress(r,a)},e.finished=function(){if(e.timer.reset(),e.isLooping)return e.timer.start(0),e.midiBuffer.finished(),e.midiBuffer.start(),"continue";e.timer.stop(),e.isStarted&&(e.control&&e.control.pushPlay(!1),e.isStarted=!1,e.midiBuffer.finished(),e.cursorControl&&e.cursorControl.onFinished&&typeof e.cursorControl.onFinished=="function"&&e.cursorControl.onFinished(),e.setProgress(0,1))},e.beatCallback=function(r,a,n,i){var s=r/a;e.setProgress(s,n),e.cursorControl&&e.cursorControl.onBeat&&typeof e.cursorControl.onBeat=="function"&&e.cursorControl.onBeat(r,a,n,i)},e.eventCallback=function(r){if(r)e.cursorControl&&e.cursorControl.onEvent&&typeof e.cursorControl.onEvent=="function"&&e.cursorControl.onEvent(r);else return e.finished()},e.lineEndCallback=function(r,a){e.cursorControl&&e.cursorControl.onLineEnd&&typeof e.cursorControl.onLineEnd=="function"&&e.cursorControl.onLineEnd(r,a)},e.getUrl=function(){return e.midiBuffer.download()},e.download=function(r){var a=e.getUrl(),n=document.createElement("a");document.body.appendChild(n),n.setAttribute("style","display: none;"),n.href=a,n.download=r||"output.wav",n.click(),window.URL.revokeObjectURL(a),document.body.removeChild(n)}}var Ms=N3,B3=_s,Ns;(function(){function e(u,c){for(var f in c)c.hasOwnProperty(f)&&u.setAttribute(f,c[f]);return u}function t(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}t.prototype.setTempo=function(u){this.trackcount===0&&(this.startTrack(),this.track+="%00%FF%51%03"+o(Math.round(6e7/u),6),this.endTrack())},t.prototype.setGlobalInfo=function(u,c,f,d){if(this.trackcount===0){this.startTrack();var p=Math.round(6e7/u);this.track+="%00%FF%51%03"+o(p,6),f&&(this.track+=n(f)),d&&(this.track+=i(d)),c&&(this.track+=a(c,"%01")),this.endTrack()}},t.prototype.startTrack=function(){this.noteWarped={},this.track="",this.trackName="",this.trackInstrument="",this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},t.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track;var u=o(this.track.length/3+4,8);this.track="MTrk"+u+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},t.prototype.setText=function(u,c){switch(u){case"name":this.trackName=a(c,"%03");break}},t.prototype.setInstrument=function(u){this.trackInstrument="%00%C0"+o(u,2),this.instrument=u},t.prototype.setChannel=function(u,c){this.channel=u;var f="%00%B"+this.channel.toString(16);this.track+=f+"%79%00",this.track+=f+"%40%00",this.track+=f+"%5B%30",c||(c=0),c=Math.round((c+1)*64),this.track+=f+"%0A"+o(c,2),this.track+=f+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)};var r=4096;t.prototype.startNote=function(u,c,f){if(this.track+=h(this.silencelength),this.silencelength=0,f){this.track+="%e"+this.channel.toString(16);var d=Math.round(B3(f)*r);this.track+=l(8192+d),this.track+=h(0),this.noteWarped[u]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+u.toString(16)+o(c,2)},t.prototype.endNote=function(u){this.track+=h(this.silencelength),this.silencelength=0,this.noteWarped[u]&&(this.track+="%e"+this.channel.toString(16),this.track+=l(8192),this.track+=h(0),this.noteWarped[u]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+u.toString(16)+"%00"},t.prototype.addRest=function(u){this.silencelength+=u,this.silencelength<0&&(this.silencelength=0)},t.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+o(this.trackcount,4)+"%01%e0"+this.trackstrings},t.prototype.embed=function(u,c){var f=this.getData(),d=e(document.createElement("a"),{href:f});if(d.innerHTML="download midi",u.insertBefore(d,u.firstChild),!c){var p=e(document.createElement("embed"),{src:f,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});u.insertBefore(p,u.firstChild)}};function a(u,c){for(var f="",d=0;dc&&(f=f.substring(0,c)),s(f)}function l(u){u=Math.round(u);var c=u%128,f=u-c;return o(f*2+c,4)}function h(u){var c=0,f=[];for(u=Math.round(u);u!==0;)f.push(u&127),u=u>>7;for(var d=f.length-1;d>=0;d--){c=c<<8;var p=f[d];d!==0&&(p=p|128),c=c|p}var g=c.toString(16).length;return g+=g%2,o(c,g)}Ns=function(){return new t}})();var Bs=Ns,L3=Bs,Ls;(function(){var e=1920;Ls=function(r,a){a===void 0&&(a={});var n=r.setUpAudio(a),i=L3(),s=r.metaText?r.metaText.title:void 0;s&&s.length>128&&(s=s.substring(0,124)+"...");var o=r.getKeySignature(),l=r.getMeterFraction(),h=n.tempo/60;i.setGlobalInfo(n.tempo,s,o,l);for(var u=0;uu&&(p=a.pan[u]),d.instrument===128?(i.setChannel(9,p),i.setInstrument(0)):(i.setChannel(d.channel,p),i.setInstrument(d.instrument));break;case"note":var g=d.gap*h,v=d.start,y=v+d.duration-g;c[v]||(c[v]=[]),c[v].push({pitch:d.pitch,volume:d.volume,cents:d.cents}),c[y]||(c[y]=[]),c[y].push({pitch:d.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+d.cmd)}}t(i,c,e),i.endTrack()}return i.getData()};function t(r,a,n){for(var i=Object.keys(a),s=0;so){var u=(i[l]-o)*n;r.addRest(u),o=i[l]}for(var c=0;c';t.preTextDownload&&(i+=t.preTextDownload);var s=e.metaText&&e.metaText.title?e.metaText.title:"Untitled",o;t.downloadLabel&&I3(t.downloadLabel)?o=t.downloadLabel(e,a):t.downloadLabel?o=t.downloadLabel.replace(/%T/,s):o='Download MIDI for "'+s+'"',s=s.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_");var l=t.fileName?t.fileName:s+".midi";return i+=''+o+"",t.postTextDownload&&(i+=t.postTextDownload),i+""},z3=$3;try{if(typeof window.CustomEvent!="function"){var ti=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r};ti.prototype=window.Event.prototype,window.CustomEvent=ti}}catch{}var Et=function(e){typeof e=="string"?this.textarea=document.getElementById(e):this.textarea=e,this.initialText=this.textarea.value,this.isDragging=!1};Et.prototype.addSelectionListener=function(e){this.textarea.onmousemove=function(t){this.isDragging&&e.fireSelectionChanged()}};Et.prototype.addChangeListener=function(e){this.changelistener=e,this.textarea.onkeyup=function(){e.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,e.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,e.fireChanged()},this.textarea.onchange=function(){e.fireChanged()}};Et.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}};Et.prototype.setSelection=function(e,t){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(e,t);else if(this.textarea.createTextRange){var r=this.textarea.createTextRange();r.collapse(!0),r.moveEnd("character",t),r.moveStart("character",e),r.select()}this.textarea.focus()};Et.prototype.getString=function(){return this.textarea.value};Et.prototype.setString=function(e){this.textarea.value=e,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()};Et.prototype.getElem=function(){return this.textarea};var Ps=Et,Ds=Fe,H3=Ms,q3=Cr,Y3=Ts,R3=Ps;function G3(e){var t={},r;if(e.abcjsParams)for(r in e.abcjsParams)e.abcjsParams.hasOwnProperty(r)&&(t[r]=e.abcjsParams[r]);if(e.midi_options)for(r in e.midi_options)e.midi_options.hasOwnProperty(r)&&(t[r]=e.midi_options[r]);if(e.parser_options)for(r in e.parser_options)e.parser_options.hasOwnProperty(r)&&(t[r]=e.parser_options[r]);if(e.render_options)for(r in e.render_options)e.render_options.hasOwnProperty(r)&&(t[r]=e.render_options[r]);return t.tablature&&e.warnings_id&&(t.tablature.warnings_id=e.warnings_id),t}var Ne=function(e,t){this.abcjsParams=G3(t),t.indicate_changed&&(this.indicate_changed=!0),typeof e=="string"?this.editarea=new R3(e):this.editarea=e,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),t.canvas_id?this.div=t.canvas_id:t.paper_id?this.div=t.paper_id:(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),typeof this.div=="string"&&(this.div=document.getElementById(this.div)),t.selectionChangeCallback&&(this.selectionChangeCallback=t.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),t.synth&&q3()&&(this.synth={el:t.synth.el,cursorControl:t.synth.cursorControl,options:t.synth.options}),t.generate_midi&&(this.generate_midi=t.generate_midi,this.abcjsParams.generateDownload&&(typeof t.midi_download_id=="string"?this.downloadMidi=document.getElementById(t.midi_download_id):t.midi_download_id&&(this.downloadMidi=t.midi_download_id)),this.abcjsParams.generateInline!==!1&&(typeof t.midi_id=="string"?this.inlineMidi=document.getElementById(t.midi_id):t.midi_id&&(this.inlineMidi=t.midi_id))),t.warnings_id?typeof t.warnings_id=="string"?this.warningsdiv=document.getElementById(t.warnings_id):this.warningsdiv=t.warnings_id:t.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=t.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(r,a){var n=function(i,s){var o=i.className;return o.length>0&&(o===s||new RegExp("(^|\\s)"+s+"(\\s|$)").test(o))};return n(r,a)||(r.className+=(r.className?" ":"")+a),r},this.removeClassName=function(r,a){return r.className=Ds.strip(r.className.replace(new RegExp("(^|\\s+)"+a+"(\\s+|$)")," ")),r},this.setReadOnly=function(r){var a="abc_textarea_readonly",n=this.editarea.getElem();r?(n.setAttribute("readonly","yes"),this.addClassName(n,a)):(n.removeAttribute("readonly"),this.removeClassName(n,a))}};Ne.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var e=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(e)}if(this.synth){var t=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new H3,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],t,this.synth.options)}};Ne.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=Y3(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi()}catch(e){console.error("ABCJS error: ",e),this.warnings||(this.warnings=[]),this.warnings.push(e.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("
"):"No errors"),this.updateSelection(),this.bReentry=!1}};Ne.prototype.paramChanged=function(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this.abcjsParams[t]=e[t]);this.currentAbc="",this.fireChanged()};Ne.prototype.synthParamChanged=function(e){if(this.synth){if(this.synth.options={},e)for(var t in e)e.hasOwnProperty(t)&&(this.synth.options[t]=e[t]);this.currentAbc="",this.fireChanged()}};Ne.prototype.parseABC=function(){var e=this.editarea.getString();return e===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=e,!0)};Ne.prototype.updateSelection=function(){var e=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(e.start,e.end)}catch{}this.selectionChangeCallback&&this.selectionChangeCallback(e.start,e.end)};Ne.prototype.fireSelectionChanged=function(){this.updateSelection()};Ne.prototype.setDirtyStyle=function(e){if(this.indicate_changed!==void 0){var t=function(i,s){var o=function(l,h){var u=l.className;return u.length>0&&(u===h||new RegExp("(^|\\s)"+h+"(\\s|$)").test(u))};return o(i,s)||(i.className+=(i.className?" ":"")+s),i},r=function(i,s){return i.className=Ds.strip(i.className.replace(new RegExp("(^|\\s+)"+s+"(\\s+|$)")," ")),i},a="abc_textarea_dirty",n=this.editarea.getElem();e?t(n,a):r(n,a)}};Ne.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var e=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){e.modelChanged()},300);var t=this.isDirty();this.wasDirty!==t&&(this.wasDirty=t,this.setDirtyStyle(t)),this.onchangeCallback&&this.onchangeCallback(this)}};Ne.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)};Ne.prototype.isDirty=function(){return this.indicate_changed===void 0?!1:this.editarea.initialText!==this.editarea.getString()};Ne.prototype.highlight=function(e,t,r,a,n,i){this.editarea.setSelection(e.startChar,e.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(e.startChar,e.endChar),this.clientClickListener&&this.clientClickListener(e,t,r,a,n,i)};Ne.prototype.pause=function(e){this.bIsPaused=e,e||this.fireChanged()};Ne.prototype.millisecondsPerMeasure=function(){return!this.synth||!this.synth.synthControl||!this.synth.synthControl.visualObj?0:this.synth.synthControl.visualObj.millisecondsPerMeasure()};Ne.prototype.pauseMidi=function(e){this.midiPause=e,e||this.redrawMidi()};var W3=Ne,U3=Ao,ri=Lo,ai=br,X3=_i,V3=ol,Ke={};Ke.signature="abcjs-basic v"+U3;Object.keys(ri).forEach(function(e){Ke[e]=ri[e]});Object.keys(ai).forEach(function(e){Ke[e]=ai[e]});Ke.renderAbc=Ts;Ke.tuneMetrics=T2;Ke.TimingCallbacks=sa;var j3=_t;Ke.setGlyph=j3.setSymbol;Ke.strTranspose=V3;var K3=Aa,Q3=Sa,J3=Ea,Z3=Ss,ep=As,tp=xr,rp=l0,ap=Cr,np=S3,ip=Ms,sp=z3,op=Bs;Ke.synth={CreateSynth:K3,instrumentIndexToName:Q3,pitchToNoteName:J3,SynthController:ip,SynthSequence:Z3,CreateSynthControl:ep,registerAudioContext:tp,activeAudioContext:rp,supportsAudio:ap,playEvent:np,getMidiFile:sp,sequence:X3,midiRenderer:op};Ke.Editor=W3;Ke.EditArea=Ps;var cp=Ke;const rr=So(cp);function Yr(e,t,r,a,n){var i,s,o,l;(i=e==null?void 0:e.setAttribute)==null||i.call(e,"x1",t.toString()),(s=e==null?void 0:e.setAttribute)==null||s.call(e,"x2",r.toString()),(o=e==null?void 0:e.setAttribute)==null||o.call(e,"y1",a.toString()),(l=e==null?void 0:e.setAttribute)==null||l.call(e,"y2",n.toString())}class lp{constructor(t){u0(this,"staff");u0(this,"lastSvg");u0(this,"beatSubdivisions");this.staff=t,this.lastSvg=null}onStart(){this.staff.querySelectorAll("svg").forEach(r=>{if(!r.querySelector(".abcjs-cursor")){const a=document.createElementNS("http://www.w3.org/2000/svg","line");a.setAttribute("class","abcjs-cursor"),a.setAttributeNS(null,"x1","0"),a.setAttributeNS(null,"y1","0"),a.setAttributeNS(null,"x2","0"),a.setAttributeNS(null,"y2","0"),r.appendChild(a)}}),this.lastSvg=null}onEvent(t){var i;if(t.measureStart&&t.left===null)return;const r=this.staff.querySelectorAll("svg .highlight");for(let s=0;s