Skip to content

Commit

Permalink
RC 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Apr 25, 2024
1 parent ca27fc9 commit f4399b2
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 93 deletions.
4 changes: 2 additions & 2 deletions dist/basic.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ o,お
~,
^,
_,`.split(`
`).forEach(t=>{let s=t.split(",");ae[s[0]]=s[1]});var B=function(t,s,o){let e=[],n=o==!1?s.readIntVLV():o;t==0||t==127;for(let r=0;r<n;r++){let c=s.readInt(1);if(e.push(c),c!=247){if(c!=240){if(c>127)return console.debug(`Early termination: ${e}`),e.pop(),s.backOne(),s.backOne(),new Uint8Array(e)}}}return new Uint8Array(e)};var re=["?","gm","gs","sc","xg","g2","mt32","doc","qy10","qy20","ns5r","x5d","05rw","k11","sg","sd","krs","s90es","motif","trin"];var ie=["melodic","drum","menu"];var R=[20,21,22,23,24,25,26,28,29,30,31,36,37,48,49,52,53,64,65];var D=[0,1,2,4,5,6,7,8,10,11,32,38,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,84,91,92,93,94,95,98,99,100,101,128,12,13,16,17,18,19,14,15,20,21,26,28,80,81,83,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157];var se={};re.forEach((t,s)=>{se[t]=s});var S={length:D.length};D.forEach((t,s)=>{S[t]=s});var _={length:R.length};R.forEach((t,s)=>{_[t]=s});var ne={};ie.forEach((t,s)=>{ne[t]=s});var H=8,ce={port:H,ch:H<<4,cc:D.length,nn:128,pl:512,tr:256,cmt:14,rpn:6,rpnt:4,ace:8,drm:8,dpn:R.length,dnc:128,ext:3,efx:7,cvn:12,redir:32,invalidCh:255};var I=Z(G(),1);var X=class{#e=!1;constructor(t,s,o,e){this.#e=t,this.start=s,this.end=o,this.data=e}get duration(){return this.ranged?this.end-this.start:0}get ranged(){return this.#e}},O=class extends X{constructor(t,s,o){super(!0,t,s,o)}},V=class extends X{constructor(t,s){super(!1,t,t,s)}},A=class extends Array{#e=-1;constructor(){super(...arguments)}resetIndex(t){this.#e=-1}fresh(){this.sort(function(t,s){return t.start==s.start?0:(+(t.start>s.start)<<1)-1}),this.forEach(function(t,s){t.index=s})}step(t,s=!1){let o=[];if(s)for(let e=0;e<this.length&&!(this[e].start>t);e++){if(this[e].end<t)continue;o.push(this[e])}else{let e=this.getRange(this.#e==-1?0:t-1,t),n=this;e.forEach(function(r){r.index>n.#e&&(o.push(r),n.#e=r.index)})}return o}getRange(t,s){t>s&&([t,s]=[s,t]);let o=[],e=-1,n=Math.ceil(Math.sqrt(this.length)),r=!0;for(let c=0;c<this.length;c+=n)this[c+n]?e<0&&this[c+n].start>=t&&(e=c):e=e<0?c:e;for(;r;)this[e]?.end<s?this[e].start>=t&&o.push(this[e]):r=!1,e++;return o}};var oe=0xffffffffffff,F=function(t){let s=new A,o=this,e=t.timeDivision,n=120,r=new A,c=0,h=0;r.push(new O(0,oe,[120,0])),t.track.forEach(function(a){c=0,a.event.forEach(function(i){c+=i.deltaTime,i.type==255&&i?.metaType==81&&(n=6e7/i.data,r[r.length-1]&&r.push(new O(c,0xffffffffffff,[n,0])))})}),r.fresh(),r.forEach(function(a,i,d){i>0&&(d[i-1].end=a.start)});let g=120;r.forEach(function(a,i,d){i>0&&(a.end==a.start?d.splice(d.indexOf(a),1):g==a.data[0]&&(d[i-1].end=a.end,d.splice(d.indexOf(a),1)),g=a.data[0])});let u=0,f=120;return r.forEach(function(a){let i=a.start,d=i/f/e*60+u;f=a.data[0],u=d-i/f/e*60,a.data[1]=u}),console.debug("All tempo changes: ",r),n=120,c=0,h=0,t.track.forEach(function(a,i){c=0,h=0;let d=i+1;a.event.forEach(function(l,b){c+=l.deltaTime;let p=r.step(c,!0)[0];p&&(n=p.data[0],h=p.data[1]);let m={type:l.type,data:l.data,track:d,part:0};l.type>14?m.meta=l.metaType:m.part=l.channel,s.push(new V(c/n/e*60+h,m))})}),s.fresh(),self.midiEvents=s,console.debug(`Parsed a type ${t.formatType} MIDI sequence.`),s};I.default.customInterpreter=B;var E=function(t,s,o){t.addEventListener(o,e=>{s.dispatchEvent(o,e.data)})},ut=class extends C{device;#e;#n={};#f=[];#a="";#c=[];#h=[];#o=new Uint8ClampedArray(128);#u=new Uint8ClampedArray(128);#i=.5;#s=120;#t=4;#l=4;#r=0;#d=0;smoothingAtk=0;smoothingDcy=0;reset(){let t=this;t.dispatchEvent("reset"),t.#e?.resetIndex(),t.device.init(),t.#a="",t.#i=.5,t.#s=120,t.#t=4,t.#l=4,t.#r=0,t.#d=0,t.dispatchEvent("tempo",t.#s),t.dispatchEvent("title",t.#a)}init(){this.reset(),this.#e=void 0}async loadFile(t){this.#e=F(I.default.parse(new Uint8Array(await t.arrayBuffer())))}async loadMap(t,s){let o=this,e=0,n=0,r=0,c,h;t.split(`
`).forEach(t=>{let s=t.split(",");ae[s[0]]=s[1]});var B=function(t,s,o){let e=[],n=o==!1?s.readIntVLV():o;t==0||t==127;for(let r=0;r<n;r++){let c=s.readInt(1);if(e.push(c),c!=247){if(c!=240){if(c>127)return console.debug(`Early termination: ${e}`),e.pop(),s.backOne(),s.backOne(),new Uint8Array(e)}}}return new Uint8Array(e)};var re=["?","gm","gs","sc","xg","g2","mt32","doc","qy10","qy20","ns5r","x5d","05rw","k11","sg","sd","krs","s90es","motif","trin"];var ie=["melodic","drum","menu"];var R=[20,21,22,23,24,25,26,28,29,30,31,36,37,48,49,52,53,64,65];var D=[0,1,2,4,5,6,7,8,10,11,32,38,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,84,91,92,93,94,95,98,99,100,101,128,12,13,16,17,18,19,14,15,20,21,26,28,80,81,83,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157];var se={};re.forEach((t,s)=>{se[t]=s});var T={length:D.length};D.forEach((t,s)=>{T[t]=s});var _={length:R.length};R.forEach((t,s)=>{_[t]=s});var ne={};ie.forEach((t,s)=>{ne[t]=s});var H=8,ce={port:H,ch:H<<4,cc:D.length,nn:128,pl:512,tr:256,cmt:14,rpn:6,rpnt:4,ace:8,drm:8,dpn:R.length,dnc:128,ext:3,efx:7,cvn:12,redir:32,invalidCh:255};var I=Z(G(),1);var X=class{#e=!1;constructor(t,s,o,e){this.#e=t,this.start=s,this.end=o,this.data=e}get duration(){return this.ranged?this.end-this.start:0}get ranged(){return this.#e}},O=class extends X{constructor(t,s,o){super(!0,t,s,o)}},V=class extends X{constructor(t,s){super(!1,t,t,s)}},A=class extends Array{#e=-1;constructor(){super(...arguments)}resetIndex(t){this.#e=-1}fresh(){this.sort(function(t,s){return t.start==s.start?0:(+(t.start>s.start)<<1)-1}),this.forEach(function(t,s){t.index=s})}step(t,s=!1){let o=[];if(s)for(let e=0;e<this.length&&!(this[e].start>t);e++){if(this[e].end<t)continue;o.push(this[e])}else{let e=this.getRange(this.#e==-1?0:t-1,t),n=this;e.forEach(function(r){r.index>n.#e&&(o.push(r),n.#e=r.index)})}return o}getRange(t,s){t>s&&([t,s]=[s,t]);let o=[],e=-1,n=Math.ceil(Math.sqrt(this.length)),r=!0;for(let c=0;c<this.length;c+=n)this[c+n]?e<0&&this[c+n].start>=t&&(e=c):e=e<0?c:e;for(;r;)this[e]?.end<s?this[e].start>=t&&o.push(this[e]):r=!1,e++;return o}};var oe=0xffffffffffff,F=function(t){let s=new A,o=this,e=t.timeDivision,n=120,r=new A,c=0,h=0;r.push(new O(0,oe,[120,0])),t.track.forEach(function(a){c=0,a.event.forEach(function(i){c+=i.deltaTime,i.type==255&&i?.metaType==81&&(n=6e7/i.data,r[r.length-1]&&r.push(new O(c,0xffffffffffff,[n,0])))})}),r.fresh(),r.forEach(function(a,i,d){i>0&&(d[i-1].end=a.start)});let g=120;r.forEach(function(a,i,d){i>0&&(a.end==a.start?d.splice(d.indexOf(a),1):g==a.data[0]&&(d[i-1].end=a.end,d.splice(d.indexOf(a),1)),g=a.data[0])});let u=0,f=120;return r.forEach(function(a){let i=a.start,d=i/f/e*60+u;f=a.data[0],u=d-i/f/e*60,a.data[1]=u}),console.debug("All tempo changes: ",r),n=120,c=0,h=0,t.track.forEach(function(a,i){c=0,h=0;let d=i+1;a.event.forEach(function(l,b){c+=l.deltaTime;let p=r.step(c,!0)[0];p&&(n=p.data[0],h=p.data[1]);let m={type:l.type,data:l.data,track:d,part:0};l.type>14?m.meta=l.metaType:m.part=l.channel,s.push(new V(c/n/e*60+h,m))})}),s.fresh(),self.midiEvents=s,console.debug(`Parsed a type ${t.formatType} MIDI sequence.`),s};I.default.customInterpreter=B;var E=function(t,s,o){t.addEventListener(o,e=>{s.dispatchEvent(o,e.data)})},ut=class extends C{device;#e;#n={};#f=[];#a="";#c=[];#h=[];#o=new Uint8ClampedArray(128);#u=new Uint8ClampedArray(128);#i=.5;#s=120;#t=4;#l=4;#r=0;#d=0;smoothingAtk=0;smoothingDcy=0;reset(){let t=this;t.dispatchEvent("reset"),t.#e?.resetIndex(),t.device.init(),t.#a="",t.#i=.5,t.#s=120,t.#t=4,t.#l=4,t.#r=0,t.#d=0,t.dispatchEvent("tempo",t.#s),t.dispatchEvent("title",t.#a)}init(){this.reset(),this.#e=void 0}async loadFile(t){this.#e=F(I.default.parse(new Uint8Array(await t.arrayBuffer())))}async loadMap(t,s){let o=this,e=0,n=0,r=0,c,h;t.split(`
`).forEach((g,u)=>{if(!g)return;let f=g.split(" ");if(u){if(!r)return;let a="",i="";f.forEach((d,l)=>{switch(l){case c:{a=d;break}case h:{i=d;break}}}),!o.#n[a]||s?(o.#n[a]=i,e++):self.debugMode&&console.debug(`Voice "${i}" (${a}) seems to be in conflict with (${o.#n[a]}).`),n++}else f.forEach((a,i)=>{switch(a){case"ID":{c=i,r++;break}case"Name":{h=i,r++;break}default:console.debug(`Unknown map field: ${a}`)}})}),console.debug(`Voice names: ${n} total, ${e} loaded.`),o?.device.forceVoiceRefresh()}async loadEfx(t,s){let o=this,e=0,n=0,r,c,h;t.split(`
`).forEach((g,u)=>{if(g)if(u){let f=0,a;g.split(" ").forEach((i,d)=>{switch(d){case r:{f|=parseInt(i,16)<<8;break}case c:{f|=parseInt(i,16);break}case h:{a=i;break}}}),!o.#f[f]||s?(o.#f[f]=a,e++):self.debugMode&&console.debug(`EFX ID 0x${f.toString(16).padStart(4,"0")} (${a}) seems to be in conflict.`),n++}else g.split(" ").forEach((f,a)=>{switch(f){case"MSB":{r=a;break}case"LSB":{c=a;break}case"Name":{h=a;break}default:console.debug(`Unknown EFX field: ${f}`)}})}),console.debug(`EFX: ${n} total, ${e} loaded.`),o.dispatchEvent("efxreverb",o.device.getEffectType(0)),o.dispatchEvent("efxchorus",o.device.getEffectType(1)),o.dispatchEvent("efxdelay",o.device.getEffectType(2)),o.dispatchEvent("efxinsert0",o.device.getEffectType(3)),o.dispatchEvent("efxinsert1",o.device.getEffectType(4)),o.dispatchEvent("efxinsert2",o.device.getEffectType(5)),o.dispatchEvent("efxinsert3",o.device.getEffectType(6))}switchMode(t,s=!1){this.device.switchMode(t,s)}getMode(){return this.device.getMode()}getVoice(){return this.device.getVoice(...arguments)}getChVoice(t){return this.device.getChVoice(t)}getMapped(t){return this.#n[t]||t}getEfx([t,s]){let o=t<<8|s;return this.#f[o]||`0x${o.toString(16).padStart(4,"0")}`}get noteProgress(){return this.#d/this.#i}get noteOverall(){return this.noteProgress-this.#r}get noteBar(){return Math.floor(this.noteOverall/this.#t)}get noteBeat(){let t=this.noteOverall%this.#t;return t<0&&(t+=this.#t),t}getTimeSig(){return[this.#t,this.#l]}getTempo(){return this.#s}sendCmd(t){this.device.runJson(t)}render(t){t>this.#d&&(this.#d=t);let s=this.#e?.step(t)||[],o=0,e=new Set,n={},r=[],c=this,h=[];for(c.device.getStrength().forEach((v,y)=>{c.#u[y]=v}),c.device.newStrength(),s.forEach(function(v){let y=v.data,k=c.device.runJson(y);switch(k?.reply){case"meta":{h.push(k);break}}k?.reply&&delete k.reply});c.#h.length>0;){let v=c.#h.shift(),y=v.part<<7|v.note;v.state?(e.add(y),n[y]=v.velo):e.has(y)&&(r.push({part:v.part,note:v.note,velo:n[y],state:c.device.NOTE_SUSTAIN}),o++)}h?.length>0&&c.dispatchEvent("meta",h);let g=c.device.getActive(),u=[],f=c.device.getPitch(),a=c.device.getCcAll(),i=c.device.getProgram(),d=c.device.getChType(),l=[],b=c.device.getStrength();b.forEach(function(v,y,k){k[y]=Math.max(c.#u[y],v);let w=k[y]-c.#o[y],L=S.length*y;if(w>=0){let T=4*.25**(a[L+S[73]]/64);c.#o[y]+=Math.ceil(w-w*c.smoothingAtk**T)}else{let T=4*.25**(a[L+S[72]]/64);c.#o[y]+=Math.floor(w-w*c.smoothingDcy**T)}});let p=0;return g.forEach(function(v,y){v&&(u[y]=c.device.getVel(y),l[y]=c.device.getExt(y),p+=u[y].size)}),{extraPoly:o,extraNotes:r,curPoly:p,chInUse:g,chKeyPr:u,chPitch:f,chProgr:i,chContr:a,chType:d,chExt:l,eventCount:s.length,title:c.#a,bitmap:c.device.getBitmap(),letter:c.device.getLetter(),texts:c.device.getTexts(),master:c.device.getMaster(),mode:c.device.getMode(),strength:c.#o.slice(),velo:b,rpn:c.device.getRpn(),tSig:c.getTimeSig(),tempo:c.getTempo(),noteBar:c.noteBar,noteBeat:c.noteBeat,ace:c.device.getAce(),rawVelo:c.device.getStrength(),rawStrength:c.device.getRawStrength(),rawPitch:c.device.getRawPitch(),efxSink:c.device.getEffectSink()}}constructor(t,s=.5,o=.5){super();let e=this;e.smoothingAtk=s,e.smoothingDcy=o,e.device=t,e.addEventListener("meta",function(n){n?.data?.forEach(function(r){(e.#c[r.meta]||console.debug).call(e,r.meta,r.data)})}),E(e.device,e,"mode"),E(e.device,e,"mastervolume"),E(e.device,e,"channelactive"),E(e.device,e,"channelmin"),E(e.device,e,"channelmax"),E(e.device,e,"portrange"),E(e.device,e,"portstart"),E(e.device,e,"channelreset"),E(e.device,e,"channeltoggle"),E(e.device,e,"screen"),E(e.device,e,"metacommit"),E(e.device,e,"voice"),E(e.device,e,"pitch"),E(e.device,e,"note"),E(e.device,e,"reset"),E(e.device,e,"banklevel"),E(e.device,e,"efxreverb"),E(e.device,e,"efxchorus"),E(e.device,e,"efxdelay"),E(e.device,e,"efxinsert0"),E(e.device,e,"efxinsert1"),E(e.device,e,"efxinsert2"),E(e.device,e,"efxinsert3"),E(e.device,e,"partefxtoggle"),e.addEventListener("note",function({data:n}){e.#h.push(n)}),e.#c[3]=function(n,r){e.#a?.length<1&&(e.#a=r,e.dispatchEvent("title",e.#a))},e.#c[81]=function(n,r){let c=e.noteProgress,h=e.#i||.5;e.#s=6e7/r,e.#i=r/1e6,e.#r+=c*(h/e.#i)-c,e.dispatchEvent("tempo",e.#s)},e.#c[88]=function(n,r){let c=e.noteProgress,h=e.noteOverall,g=e.noteBar,u=e.noteBeat,f=e.#t,a=e.#l;e.#t=r[0],e.#l=1<<r[1];let i=24*(32/r[3])/r[2];if(f!=e.#t){let d=g;e.#r-=d*(e.#t-f),u+1>=f&&(f<e.#t?e.#r-=Math.ceil(e.#t-u-1):e.#r+=e.#t)}e.dispatchEvent("tsig",e.getTimeSig())}}};export{ut as RootDisplay,ce as allocated,S as ccToPos,_ as dnToPos};
`).forEach((g,u)=>{if(g)if(u){let f=0,a;g.split(" ").forEach((i,d)=>{switch(d){case r:{f|=parseInt(i,16)<<8;break}case c:{f|=parseInt(i,16);break}case h:{a=i;break}}}),!o.#f[f]||s?(o.#f[f]=a,e++):self.debugMode&&console.debug(`EFX ID 0x${f.toString(16).padStart(4,"0")} (${a}) seems to be in conflict.`),n++}else g.split(" ").forEach((f,a)=>{switch(f){case"MSB":{r=a;break}case"LSB":{c=a;break}case"Name":{h=a;break}default:console.debug(`Unknown EFX field: ${f}`)}})}),console.debug(`EFX: ${n} total, ${e} loaded.`),o.dispatchEvent("efxreverb",o.device.getEffectType(0)),o.dispatchEvent("efxchorus",o.device.getEffectType(1)),o.dispatchEvent("efxdelay",o.device.getEffectType(2)),o.dispatchEvent("efxinsert0",o.device.getEffectType(3)),o.dispatchEvent("efxinsert1",o.device.getEffectType(4)),o.dispatchEvent("efxinsert2",o.device.getEffectType(5)),o.dispatchEvent("efxinsert3",o.device.getEffectType(6))}switchMode(t,s=!1){this.device.switchMode(t,s)}getMode(){return this.device.getMode()}getVoice(){return this.device.getVoice(...arguments)}getChVoice(t){return this.device.getChVoice(t)}getMapped(t){return this.#n[t]||t}getEfx([t,s]){let o=t<<8|s;return this.#f[o]||`0x${o.toString(16).padStart(4,"0")}`}get noteProgress(){return this.#d/this.#i}get noteOverall(){return this.noteProgress-this.#r}get noteBar(){return Math.floor(this.noteOverall/this.#t)}get noteBeat(){let t=this.noteOverall%this.#t;return t<0&&(t+=this.#t),t}getTimeSig(){return[this.#t,this.#l]}getTempo(){return this.#s}sendCmd(t){this.device.runJson(t)}render(t){t>this.#d&&(this.#d=t);let s=this.#e?.step(t)||[],o=0,e=new Set,n={},r=[],c=this,h=[];for(c.device.getStrength().forEach((v,y)=>{c.#u[y]=v}),c.device.newStrength(),s.forEach(function(v){let y=v.data,k=c.device.runJson(y);switch(k?.reply){case"meta":{h.push(k);break}}k?.reply&&delete k.reply});c.#h.length>0;){let v=c.#h.shift(),y=v.part<<7|v.note;v.state?(e.add(y),n[y]=v.velo):e.has(y)&&(r.push({part:v.part,note:v.note,velo:n[y],state:c.device.NOTE_SUSTAIN}),o++)}h?.length>0&&c.dispatchEvent("meta",h);let g=c.device.getActive(),u=[],f=c.device.getPitch(),a=c.device.getCcAll(),i=c.device.getProgram(),d=c.device.getChType(),l=[],b=c.device.getStrength();b.forEach(function(v,y,k){k[y]=Math.max(c.#u[y],v);let w=k[y]-c.#o[y],L=T.length*y;if(w>=0){let S=4*.25**(a[L+T[73]]/64);c.#o[y]+=Math.ceil(w-w*c.smoothingAtk**S)}else{let S=4*.25**(a[L+T[72]]/64);c.#o[y]+=Math.floor(w-w*c.smoothingDcy**S)}});let p=0;return g.forEach(function(v,y){v&&(u[y]=c.device.getVel(y),l[y]=c.device.getExt(y),p+=u[y].size)}),{extraPoly:o,extraNotes:r,curPoly:p,chInUse:g,chKeyPr:u,chPitch:f,chProgr:i,chContr:a,chType:d,chExt:l,eventCount:s.length,title:c.#a,bitmap:c.device.getBitmap(),letter:c.device.getLetter(),texts:c.device.getTexts(),master:c.device.getMaster(),mode:c.device.getMode(),strength:c.#o.slice(),velo:b,rpn:c.device.getRpn(),tSig:c.getTimeSig(),tempo:c.getTempo(),noteBar:c.noteBar,noteBeat:c.noteBeat,ace:c.device.getAce(),rawVelo:c.device.getStrength(),rawStrength:c.device.getRawStrength(),rawPitch:c.device.getRawPitch(),efxSink:c.device.getEffectSink()}}constructor(t,s=.5,o=.5){super();let e=this;e.smoothingAtk=s,e.smoothingDcy=o,e.device=t,e.addEventListener("meta",function(n){n?.data?.forEach(function(r){(e.#c[r.meta]||console.debug).call(e,r.meta,r.data)})}),E(e.device,e,"mode"),E(e.device,e,"mastervolume"),E(e.device,e,"channelactive"),E(e.device,e,"channelmin"),E(e.device,e,"channelmax"),E(e.device,e,"portrange"),E(e.device,e,"portstart"),E(e.device,e,"channelreset"),E(e.device,e,"channeltoggle"),E(e.device,e,"screen"),E(e.device,e,"metacommit"),E(e.device,e,"voice"),E(e.device,e,"pitch"),E(e.device,e,"note"),E(e.device,e,"reset"),E(e.device,e,"banklevel"),E(e.device,e,"efxreverb"),E(e.device,e,"efxchorus"),E(e.device,e,"efxdelay"),E(e.device,e,"efxinsert0"),E(e.device,e,"efxinsert1"),E(e.device,e,"efxinsert2"),E(e.device,e,"efxinsert3"),E(e.device,e,"partefxtoggle"),e.addEventListener("note",function({data:n}){e.#h.push(n)}),e.#c[3]=function(n,r){e.#a?.length<1&&(e.#a=r,e.dispatchEvent("title",e.#a))},e.#c[81]=function(n,r){let c=e.noteProgress,h=e.#i||.5;e.#s=6e7/r,e.#i=r/1e6,e.#r+=c*(h/e.#i)-c,e.dispatchEvent("tempo",e.#s)},e.#c[88]=function(n,r){let c=e.noteProgress,h=e.noteOverall,g=e.noteBar,u=e.noteBeat,f=e.#t,a=e.#l;e.#t=r[0],e.#l=1<<r[1];let i=24*(32/r[3])/r[2];if(f!=e.#t){let d=g;e.#r-=d*(e.#t-f),u+1>=f&&(f<e.#t?e.#r-=Math.ceil(e.#t-u-1):e.#r+=e.#t)}e.dispatchEvent("tsig",e.getTimeSig())}}};export{ut as RootDisplay,ce as allocated,T as ccToPos,_ as dnToPos};
Loading

0 comments on commit f4399b2

Please sign in to comment.