/plugin/abc2/abc-libraries/abc-ui/ |
H A D | abc-ui-1.0.0.min.js | 8 function external_eval(param){return eval(param)}function isQuoted(e){return e.q}function quote(e){return e.q=!0,e}function unquote(e){return delete e.q,e}function Symbol(e){return this.nm=e,this}function isSymbol(e){return e&&e.constructor===Symbol}function symbolName(e){return e.nm}function isArray(e){return e&&e.constructor===Array}function inDs(e,t){for(var n=e.length-1;0<=n;--n)if("undefined"!=typeof e[n][t])return e[n];return!1}function member(e,t){return 0<=t.indexOf(e)}function PsParser(){function t(t){e.L=t,e.N=t.length,e.I=0,e.D=0}function n(){return e.I<e.N&&e.L[e.I]}function r(){return e.I<e.N&&e.L[e.I++]}function i(){while(e.I<e.N&&member(e.L[e.I]," \n"))e.I++}function s(){while("%"==n()){while(n()&&"\n"!=n())r();i()}}function o(){r();var e=[],t=1;while(0<t&&n()){var i=r();switch(i){case"(":t++;break;case")":t--,t<=0&&(i=!1);break;case"\\":i=r();switch(i){case"(":break;case")":break;case"\\":break;case"n":i="\n";break;case"r":i="\r";break;case"t":i=" ";break;default:i=!1}}i!==!1&&e.push(i)}return e.join("")}function u(){var e=r();if(member(e,"()<>/% \n"))throw new Error("Symbol expected, got "+e);var t=member(e,"+-0123456789."),i="."==e,s=[e];while(n()&&!member(n(),"()<>[]{}/% \n"))e=r(),s.push(e),t&&!member(e,"0123456789")&&(!i&&"."==e?i=!0:t=!1);return s=s.join(""),1==s.length&&member(s,"+-.")&&(t=!1),t?i?parseFloat(s):parseInt(s,10):new Symbol(s)}function a(){i();switch(n()){case!1:return undefined;case"%":return s();case"[":return new Symbol(r());case"]":return new Symbol(r());case"{":return e.D++,new Symbol(r());case"}":return e.D--,new Symbol(r());case"/":r();var t=u();return quote(t);case"(":return o();case"<":r();if("<"!=n())throw new Error("Encoded strings not implemented yet");return r(),new Symbol("<<");case">":r();if(">"!=n())throw new Error("Unexpected >");return r(),new Symbol(">>");default:return u()}}var e=this;return PsParser.prototype.init=t,PsParser.prototype.peek=n,PsParser.prototype.token=a,this}function Ps0(e,t,n){function r(i,s){if(isSymbol(i)&&!isQuoted(i)){var o=symbolName(i),u=inDs(t,o);if(!u)throw new Error("bind error '"+o+"'");n.push([!1,u[o]])}else if(s&&isArray(i)&&isQuoted(i)){if(0<i.length){var a=i[0],f=quote(i.slice(1));0<f.length&&n.push([!1,f]),r(a,!1)}}else"function"==typeof i?i():e.push(i)}function i(){var t=e.pop();r(t,!1)}function s(){var t=n.pop(),i=t.shift(),s=t.pop();for(var o=0;o<t.length;o++)e.push(t[o]);r(s,!0)}function u(t){o.init(t);while(o.peek()){var r=o.token();if(r||r===0){e.push(r);if(o.D<=0||isSymbol(r)&&(member(symbolName(r),"[]{}")||"<<"==symbolName(r)||">>"==symbolName(r))){i();while(0<n.length)s()}}}return e}var o=new PsParser;return Ps0.prototype.run=r,Ps0.prototype.exec=i,Ps0.prototype.step=s,Ps0.prototype.parse=u,this}function Wps(e){function f(e){if(isSymbol(e)&&!isQuoted(e))return e;if(isArray(e)&&isQuoted(e)){var t=e.length,n=[];for(var r=0;r<t;r++){var i=e[r],s=f(i);isArray(i)?n=n.concat(isQuoted(i)?quote([s]):[s]):n=n.concat(s)}return quote(n)}return e}function l(){var e=arguments;if(e.length)for(var t=0;t<e.length;t++)o.parse(e[t]);else o.parse(e);return n}var t=e,n=[],r={},i=[r],s=[],o=new Ps0(n,i,s);r["true"]=function(){n.push(!0)},r["false"]=function(){n.push(!1)},r["null"]=function(){n.push(nul method in info.V [all...] |
/plugin/abc2/abc-libraries/abc2svg/ |
H A D | MIDI-1.js | 153 abc2svg.modules.hooks.push(abc2svg.MIDI.set_hooks);abc2svg.modules.MIDI.loaded=true
|
H A D | abc2svg-1.js | 333 note.a_dcn.push(dd.name) 340 note.a_dcn.push(dd.name)} 396 s.notes[0].a_dcn.push("cacc"+j) 400 s.a_dd.push(dd)}} 467 new_de.push(de.start)}else if(dd.str!=undefined){str=dd.str 491 a_de.push(de) 513 a_de.push(de) 534 de2.m=de.m;a_de.push(de2)} 544 de.m=de2.m;a_de.push(de);de2.start=de}} 1062 if(i==hl.length){hl.push([ 3492 Array.prototype.push.apply(notes,s.notes) global() method in Array [all...] |
H A D | ambitus-1.js | 28 abc2svg.modules.hooks.push(abc2svg.ambitus.set_hooks);abc2svg.modules.ambitus.loaded=true
|
H A D | break-1.js | 13 if(!c[3]){cfmt.break.push({m:c[1],t:0,sq:sq}) 18 cfmt.break.push({m:c[1],t:d[1]*C.BLEN/d[2],sq:sq})}},do_break:function(){var i,m,t,brk,seq,voice_tb=this.get_voice_tb() 41 abc2svg.modules.hooks.push(abc2svg.break.set_hooks);abc2svg.modules.break.loaded=true
|
H A D | capo-1.js | 32 abc2svg.modules.hooks.push(abc2svg.capo.set_hooks);abc2svg.modules.capo.loaded=true
|
H A D | chord-1.js | 18 r.push(v)} 42 s.notes.push(not)} 60 voice_tb.push(vch)
|
H A D | chordnames-1.js | 24 abc2svg.modules.hooks.push(abc2svg.chordnames.set_hooks)
|
H A D | clair-1.js | 139 abc2svg.modules.hooks.push(abc2svg.clair.set_hooks);abc2svg.modules.clairnote.loaded=true
|
H A D | clip-1.js | 85 abc2svg.modules.hooks.push(abc2svg.clip.set_hooks);abc2svg.modules.clip.loaded=true
|
H A D | combine-1.js | 27 Array.prototype.push.apply(s.notes,s2.notes);s.nhd=nhd=s.notes.length-1;s.notes.sort(abc2svg.pitcmp) method in Array 43 Array.prototype.push.apply(s.sls,s2.sls) 53 Array.prototype.push.apply(s.a_dd,s2.a_dd)} 54 delsym.push({s:s2,r:s});this.unlksym(s2) 100 abc2svg.modules.hooks.push(abc2svg.combine.set_hooks);abc2svg.modules.voicecombine.loaded=true
|
H A D | diag-1.js | 375 abc2svg.modules.hooks.push(abc2svg.diag.set_hooks);abc2svg.modules.diagram.loaded=true
|
H A D | equalbars-1.js | 17 for(s=s2;s.ts_next;s=s.ts_next){if(s.type==C.BAR&&s.seqst){bars.push([s,s.time-t]);t=s.time}} 19 bars.push([s,s.time-t]) 41 abc2svg.modules.hooks.push(abc2svg.equalbars.set_hooks);abc2svg.modules.equalbars.loaded=true
|
H A D | gamelan-1.js | 173 abc2svg.modules.hooks.push(abc2svg.gamelan.set_hooks)
|
H A D | grid-1.js | 53 cells.push(chords[k]);bars.push(bar[k])}}} 134 bars.push('|') 147 if(s.time<wm){if(chord.length){chords.push(chord) 148 bars.push(bt)}else{bars[0]=bt}}else{if(!s.bar_num) 150 chords.push(chord) 151 bars.push(bt)} 163 if(chord.length){bars.push('') 164 chords.push(chord)} 208 abc2svg.modules.hooks.push(abc2sv [all...] |
H A D | grid2-1.js | 33 abc2svg.modules.hooks.push(abc2svg.grid2.set_hooks);abc2svg.modules.grid2.loaded=true
|
H A D | grid3-1.js | 100 cells[nr][i].push(cl)}} 143 vt.push(p_vc) 183 cs=[]}else{cs.push(cl)}}}} 187 abc2svg.modules.hooks.push(abc2svg.grid3.set_hooks)
|
H A D | jazzchord-1.js | 48 r.push(k[0])}} 62 abc2svg.modules.hooks.push(abc2svg.jazzchord.set_hooks)
|
H A D | jianpu-1.js | 182 abc2svg.modules.hooks.push(abc2svg.jianpu.set_hooks)
|
H A D | mdnn-1.js | 31 note.a_dcn.push('n'+nn) 37 note.a_dcn.push('q')} 40 note.a_dcn.push('c') 44 note.a_dcn.push(s.dur>=C.BLEN?'w':'h')} 53 note.a_dcn.push(abc2svg.mdnn.acc_tb[nn])} 74 abc2svg.modules.hooks.push(abc2svg.mdnn.set_hooks)
|
H A D | page-1.js | 183 page.blk.push(p) 232 abc2svg.modules.hooks.push(abc2svg.page.set_hooks);abc2svg.modules.pageheight.loaded=true
|
H A D | pedline-1.js | 30 abc2svg.modules.hooks.push(abc2svg.pedline.set_hooks)
|
H A D | perc-1.js | 75 abc2svg.modules.hooks.push(abc2svg.perc.set_hooks);abc2svg.modules.percmap.loaded=true
|
H A D | psvg-1.js | 25 if(C!==false)L.push(C)} 27 function symbol(){var C=xchar();if(member(C,"()<>/% \t\n"))throw new Error("Symbol expected, got "+C);var N=member(C,"+-0123456789.");var F="."==C;var L=[C];while(peek()&&!member(peek(),"()<>[]{}/% \t\n")){C=xchar();L.push(C);if(N&&!member(C,"0123456789")){if(!F&&"."==C)F=true;else N=false}} 32 throw new Error("bind error '"+K+"'");Es.push([false,D[K]])}else if(Z&&isArray(X)&&isQuoted(X)){if(0<X.length){var F=X[0];var R=quote(X.slice(1));if(0<R.length)Es.push([false,R]);run(F,false)}}else if("function"==typeof X)X();else Os.push(X)} 35 Os.push(C[I]);run(X,true)} 36 var PsP=new PsParser;function parse(L){PsP.init(L);while(PsP.peek()){var T=PsP.token();if(T||T===0){Os.push(T);if(PsP.D<=0||isSymbol(T)&&(member(symbolName(T),"[]{}")||"<<"==symbolName(T)||">>"==symbolName(T))){exec();while(0<Es.length) 40 function Wps(psvg_i){var psvg=psvg_i;var Os=[];var Sd={};var Ds=[Sd];var Es=[];var Ps=new Ps0(Os,Ds,Es);Sd["true"]=function(){Os.push(true)};Sd["false"]=function(){Os.push(false)};Sd["null"]=function(){Os.push(nul [all...] |
H A D | snd-1.js | 27 Array.prototype.push.apply(out,o) 66 case'(':st.push(r.length) 155 rsk.push(s)}} 324 po.timouts.push(setTimeout(po.onnote,st,i,true)) 338 po.timouts.push(setTimeout(play_cont,(t-po.get_time(po))*1000 497 throw new Error('invalid chunk type:'+chunk.type);while(ip<size){presetHeader.push({presetName:String.fromCharCode.apply(null,data.subarray(ip,ip+=20)),preset:data[ip++]|(data[ip++]<<8),bank:data[ip++]|(data[ip++]<<8),presetBagIndex:data[ip++]|(data[ip++]<<8),library:(data[ip++]|(data[ip++]<<8)|(data[ip++]<<16)|(data[ip++]<<24))>>>0,genre:(data[ip++]|(data[ip++]<<8)|(data[ip++]<<16)|(data[ip++]<<24))>>>0,morphology:(data[ip++]|(data[ip++]<<8)|(data[ip++]<<16)|(data[ip++]<<24))>>>0})}};sf2.Parser.prototype.parsePbag=function(chunk){var data=this.input,ip=chunk.offset,presetZone=this.presetZone=[],size=chunk.offset+chunk.size;if(chunk.type!=='pbag') 498 throw new Error('invalid chunk type:'+chunk.type);while(ip<size){presetZone.push({presetGeneratorIndex:data[ip++]|(data[ip++]<<8),presetModulatorIndex:data[ip++]|(data[ip++]<<8)})}};sf2.Parser.prototype.parsePmod=function(chunk){if(chunk.type!=='pmod') 501 throw new Error('invalid chunk type:'+chunk.type);while(ip<size){instrument.push({instrumentName:String.fromCharCode.apply(null,data.subarray(ip,ip+=20)),instrumentBagIndex:data[ip++]|(data[ip++]<<8)})}};sf2.Parser.prototype.parseIbag=function(chunk){var data=this.input,ip=chunk.offset,instrumentZone=this.instrumentZone=[],size=chunk.offset+chunk.size;if(chunk.type!=='ibag') 502 throw new Error('invalid chunk type:'+chunk.type);while(ip<size){instrumentZone.push({instrumentGeneratorIndex:data[ip++]|(data[ip++]<<8),instrumentModulatorIndex:data[ip++]|(data[ip++]<<8)})}};sf2.Parser.prototype.parseImod=function(chunk){if(chunk.type!=='imod') 506 samples.push(sampl [all...] |