Lines Matching +defs:d +defs:t

25 abc2svg.rat=function(n,d){var a,t,n0=0,d1=0,n1=1,d0=1
26 while(1){if(d==0)
28 t=d
29 a=(n/d)|0
30 d=n%d
31 n=t
32 t=n0+a*n1
34 n1=t
35 t=d0+a*d1
37 d1=t}
181 if(dd.name[0]=='d'&&s.nflags>=-1){if(up){if(s.stem>0)
285 a=text.match(/(\d+)\s+(.+?)\s+([0-9.,]+)\s+([0-9.]+)\s+([0-9.]+)/)
1044 function draw_acc(x,y,a){if(typeof a!="number"){var c,n=a[0],d=a[1]
1045 c=n+'_'+d
1047 if(!a){a=abc2svg.rat(Math.abs(n),d)
1048 d=a[1]
1050 if(d!=1)
1051 a+='_'+d
1367 output+='<path d="M'
1369 output+='<path class="stroke" stroke-dasharray="5,5" d="M';out_sxsy(x1,' ',y1);output+='c'+
2066 (ty=='['?'slthW':'slW')+'" d="m0 '+y+'h'+ws.toFixed(1);dy=0}
2088 for(i=bar_type.length;--i>=0;){switch(bar_type[i]){case"|":if(s.bar_dotted){set_sscale(-1);w=(5*p_staff.staffscale).toFixed(1);out_XYAB('<path class="bW" stroke-dasharray="A,A" d="MX Yv-G"/>\n',x,bot,w,h)}else if(s.color){out_XYAB('<path class="bW" d="MX Yv-F"/>\n',x,bot,h)}else{sb.push(new Float32Array([x,bot,h]))}
2091 out_XYAB('<path class="bthW" d="MX Yv-F"/>\n',x+1.5,bot,h)
2108 if(l){output+='<path class="bW" d="'
2112 if(l){output+='<path class="bthW" d="'
2231 function hlud(hla,d){var hl,hll,i,xp,dx2,x2,n=hla.length
2238 output+='<path class="stroke" stroke-width="1" d="M'+
2240 sy(p_st.y+d*i).toFixed(1)
2779 a=p.match(/\s+padding=([\d.]+)(\s|$)/)
2824 function get_unit(param){var v=param.toLowerCase().match(/([\d.]+)(.*)/)
2872 if(/.+font(-[\d])?$/.test(cmd)){param_set_font(cmd,param)
3037 var abc_utf={"=D":"Đ","=H":"Ħ","=T":"Ŧ","=d":"đ","=h":"ħ","=t":"ŧ","/O":"Ø","/o":"ø","/L":"Ł","/l":"ł","vL":"Ľ","vl":"ľ","vd":"ď",".i":"ı","AA":"Å","aa":"å","AE":"Æ","ae":"æ","DH":"Ð","dh":"ð","OE":"Œ","oe":"œ","ss":"ß","TH":"Þ","th":"þ"}
3061 case't':dst+=' ';j=i+1
3212 switch(file[eol]){case' ':case'\t':continue}
3292 while(1){switch(file[bol]){case' ':case'\t':bol++
3397 function set_head_shift(s){var i,i1,i2,d,ps,dx,dx_head=dx_tb[s.head],dir=s.stem,n=s.nhd
3405 for(i=i1;i!=i2;i+=dir){d=s.notes[i].pit-ps;ps=s.notes[i].pit
3406 if(!d){if(shift){var new_dx=s.notes[i].shhd=s.notes[i-dir].shhd+dx
3414 if(d<0)
3415 d=-d
3416 if(d>3||(d>=2&&s.head!=C.SQUARE)){shift=false}else{shift=!shift
3476 function set_acc_shft(){var s,s2,st,i,acc,st,t,dx_head,notes
3480 st=s.st;t=s.time;acc=false
3481 for(s2=s;s2;s2=s2.ts_next){if(s2.time!=t||s2.type!=C.NOTE||s2.st!=st)
4032 function new_type(s){var t=s.bar_type.match(/(:*)([^:]*)(:*)/)
4033 if(!t[3]){t1=t[1]+t[2]
4034 t2='['}else if(!t[1]){t1=t[2][0]=='['?t[2].slice(1):t[2]
4035 t2='[|'+t[3]}else{i=(t[2].length/2)|0
4036 t1=t[1]+'|'+t[2].slice(0,i)
4037 t2=t[2].slice(i)+'|'+t[3]}}
4398 return't'
4399 if(max<=13||(max<=19&&clef_type_start!='t'))
4402 clef_type_start='t'
4411 if(clef_type=='t'){if(s.notes[0].pit>12||s.notes[s.nhd].pit>20){if(s.notes[0].pit>20)
4428 if(!s_last_chg){clef_type=clef_type_start=clef_type=='t'?'b':'t';s_last_chg=s
4441 s_last_chg=s;clef_type=clef_type=='t'?'b':'t';s2=insert_clef(s3,clef_type,clef_type=="t"?2:4);s2.clef_auto=true}
4463 if(staff_clef[st].autoclef){s.clef_type=set_auto_clef(st,tsfirst,s.clef_type);s.clef_line=s.clef_type=='t'?2:4}
4490 if(s2.clef_auto){new_type=set_auto_clef(st,s,staff_clef[st].clef?staff_clef[st].clef.clef_type:'a');new_line=new_type=='t'?2:4}else{new_type=s2.clef_type;new_line=s2.clef_line}
4513 if(s.clef_type=='a'){s.clef_type=set_auto_clef(s.st,s.ts_next,staff_clef[s.st].clef.clef_type);s.clef_line=s.clef_type=='t'?2:4}
4535 var delta_tb={t:0-2*2,c:6-3*2,b:12-4*2,p:0-3*2}
4579 Abc.prototype.set_stem_dir=function(){var t,u,i,st,rvoice,v,v_st,st_v,vobj,v_st_tb,st_v_tb=[],s=tsfirst,sy=cur_sy,nst=sy.nstaff
4643 s.multi=-1;t=s.ts_next
4644 if(s.ts_prev&&s.ts_prev.time==s.time&&s.ts_prev.st==s.st&&s.notes[s.nhd].pit==s.ts_prev.notes[0].pit&&s.beam_st&&s.beam_end&&(!t||t.st!=s.st||t.time!=s.time))
4931 function set_beams(sym){var s,t,g,beam,s_opp,n,m,mid_p,pu,pd,laststem=-1
5034 function unison_acc(s1,s2,i1,i2){var m,d,acc
5036 if(!acc){d=w_note[s2.head]*2+s2.xmx+s1.notes[i1].shac+2
5039 d+=2
5041 d+=6
5042 for(m=0;m<=s1.nhd;m++){s1.notes[m].shhd+=d;s1.notes[m].shac-=d}
5043 s1.xmx+=d}else{d=w_note[s1.head]*2+s1.xmx+s2.notes[i2].shac+2
5045 d+=2
5047 d+=6
5048 for(m=0;m<=s2.nhd;m++){s2.notes[m].shhd+=d;s2.notes[m].shac-=d}
5049 s2.xmx+=d}}
5112 function set_overlap(){var s,s1,s2,s3,i,i1,i2,m,sd,t,dp,d,d2,dr,dr2,dx,left1,right1,left2,right2,right3,pl,pr,sy=cur_sy
5113 function v_invert(){s1=s2;s2=s;d=d2;pl=left1;pr=right1;dr2=dr}
5139 d=s1.notes[0].shhd+7
5141 s2.notes[m].shhd+=d
5142 s2.xmx+=d
5149 d=-10
5150 for(i=0;i<MAXPIT;i++){if(left2[i]+right1[i]>d)
5151 d=left2[i]+right1[i]}
5152 if(d<-3&&((s2.notes[0].pit&1)||!(s1.dots||s2.dots)||(!(s1.notes[s1.nhd].pit==s2.notes[0].pit+2&&s1.dot_low)&&!(s1.notes[s1.nhd].pit+2==s2.notes[0].pit&&s2.dot_low))))
5165 t=0;i1=s1.nhd;i2=s2.nhd
5175 case 0:if(s1.notes[i1].acc!=s2.notes[i2].acc&&!s1.notes[i1].acc&&!s2.notes[i2].acc){t=-1
5181 t=1
5191 if(t<0)
5197 if(t<0){unison_acc(s1,s2,i1,i2)
5199 sd=0;if(s1.dots){if(s2.dots){if(!t)
5200 sd=1}else{v_invert()}}else if(s2.dots){if(d2+dr<d+dr2)
5203 if(!s3&&d2+dr<d+dr2)
5205 d+=3
5206 if(d<0)
5207 d=0;m=s1.stem>=0?0:s1.nhd;d+=s1.notes[m].shhd;m=s2.stem>=0?0:s2.nhd;d-=s2.notes[m].shhd
5226 if(dx+d2+2>d)
5227 d=dx+d2+2}else{if(dx<d+dr2+s2.xmx){d2=0
5244 if(d2>4.5&&7.7+s1.xmx+2<d+d2+s2.xmx)
5246 for(m=s2.nhd;m>=0;m--){s2.notes[m].shhd+=d}
5247 s2.xmx+=d
5541 function new_clef(clef_def){var s={type:C.CLEF,clef_line:2,clef_type:"t",v:curvoice.v,p_v:curvoice,time:curvoice.time,dur:0},i=1
5556 case't':if(clef_def[1]=='e'){s.clef_type="c";s.clef_line=4
5606 if(c[0]=='\\'){if(c[1]=='t')
5607 c='\t'
5613 switch(char_tb[k][0]){case'0':case'd':case'i':case' ':break
5622 case"!nil!":case"!none!":v="d"
5811 switch(param.slice(0,3).toLowerCase()){default:if(param[0]!='m'||(param[1]!=' '&&param[1]!='\t'&&param[1]!='\n')){key_end=true
5901 if(p[i]=='='){val=p.substring(++i).match(/^(\d+)\/(\d+)$/)
5915 function new_tempo(text){var i,c,d,nd,txt=text,s={type:C.TEMPO,dur:0}
5916 function get_nd(p){var n,d,nd=p.match(/(\d+)\/(\d+)/)
5917 if(nd){d=Number(nd[2])
5918 if(d&&!isNaN(d)&&!(d&(d-1))){n=Number(nd[1])
5920 return C.BLEN*n/d}}
5934 if(i>0){d=text.slice(0,i).split(/\s+/)
5936 while(1){c=d.shift()
5967 goto_tune();a=text.match(/^1\/(\d+)(=(\d+)\/(\d+))?$/)
6201 var reg_dur=/(\d*)(\/*)(\d*)/g
6208 function parse_acc_pit(line){var note,acc,pit,d,nd,c=line.char()
6521 var nil="0",char_tb=[nil,nil,nil,nil,nil,nil,nil,nil,nil," ","\n",nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil," ","!",'"',"i","\n",nil,"&",nil,"(",")","i",nil,nil,"-","!dot!",nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,"|","i","<","n","<","i","i","n","n","n","n","n","n","n","!fermata!","d","d","d","!emphasis!","!lowermordent!","d","!coda!","!uppermordent!","d","d","!segno!","!trill!","d","d","d","n","d","n","[","\\","|","n","n","i","n","n","n","n","n","n","n","d","d","d","d","d","d","d","d","d","d","d","d","d","!upbow!","!downbow!","d","n","n","n","{","|","}","!gmark!",nil,],ottava={"8va(":1,"8va)":0,"15ma(":2,"15ma)":0,"8vb(":-1,"8vb)":0,"15mb(":-2,"15mb)":0}
7257 function anno_out(s,t,f){if(s.istart==undefined)
7262 f(t||abc2svg.sym_name[type],s.istart,s.iend,s.x-wl-2,staff_tb[s.st].y+s.ymn+h-2,wl+wr+4,h,s)}
7263 function a_start(s,t){anno_out(s,t,user.anno_start)}
7264 function a_stop(s,t){anno_out(s,t,user.anno_stop)}
7317 out_XYAB('<path d="mX Y',x,y)
7319 out_XYAB('<path class="stroke" d="mX Y',x,y)}
7338 output+='<path class="sW" d="'
7351 out_XYAB('<path class="stroke" d="mX YlF G"/>\n',x,y,dx,-dy)}
7354 function out_bracket(x,y,h){x+=posx-5;y=posy-y-3;h+=2;output+='<path d="m'+x.toFixed(1)+' '+y.toFixed(1)+'\n\
7358 function out_hyph(x,y,w){var n,a_y,d=25+((w/20)|0)*3
7360 n=((w-15)/d)|0
7362 n=0;x+=(w-d*n-5)/2;out_XYAB('<path class="stroke" stroke-width="1.2"\n\
7364 d="mX YhB"/>\n',x,y+6,Math.round((d-5)/stv_g.scale),d*n+5)}
7376 return}else{output+='<path d="'
7379 1.4 -4.8 -2.4 -5.4 -3.2 -5.2\n',x,y);y-=3.5}}}}else{output+='<path d="'
7381 return}else{output+='<path d="'
7384 1.4 4.8 -2.4 5.4 -3.2 5.2\n',x,y);y+=3.5}}}}else{output+='<path d="'
7387 function out_trem(x,y,ntrem){out_XYAB('<path d="mX Y\n\t',x-4.5,y)
7393 function out_tubr(x,y,dx,dy,up){var h=up?-3:3;y+=h;dx/=stv_g.scale;output+='<path class="stroke" d="m';out_sxsy(x,' ',y);output+='v'+h.toFixed(1)+'l'+dx.toFixed(1)+' '+(-dy).toFixed(1)+'v'+(-h).toFixed()+'"/>\n'}
7398 y+=6;output+='<path class="stroke" d="m';out_sxsy(x,' ',y);output+='v'+h.toFixed(1)+'m'+dx.toFixed(1)+' '+(-dy).toFixed(1)+'v'+(-h).toFixed(1)+'"/>\n'+'<path class="stroke" stroke-dasharray="'+
7399 ((dx-sw)/2).toFixed(1)+' '+sw.toFixed(1)+'" d="m';out_sxsy(x,' ',y-h);output+='l'+dx.toFixed(1)+' '+(-dy).toFixed(1)+'"/>\n'}
7400 function out_wln(x,y,w){out_XYAB('<path class="stroke" stroke-width="0.8" d="mX YhF"/>\n',x,y+3,w)}
7411 d="mX YlA ',x,y+5,val)
7417 d="mX YlA ',x,y+5,val)
7430 y+=6;out_XYAB('<path class="stroke" stroke-dasharray="6,6" d="mX YhF"/>\n',x,y,val)
7432 out_XYAB('<path class="stroke" d="mX Yv6"/>\n',x+val,y)}
7436 out_XYAB('<path class="stroke" stroke-dasharray="6,6" d="mX YhF"/>\n',x,y,val)
7438 out_XYAB('<path class="stroke" d="mX Yv-6"/>\n',x+val,y)}
7442 y+=6;out_XYAB('<path class="stroke" stroke-dasharray="6,6" d="mX YhF"/>\n',x,y,val)
7444 out_XYAB('<path class="stroke" d="mX Yv6"/>\n',x+val,y)}
7448 out_XYAB('<path class="stroke" stroke-dasharray="6,6" d="mX YhF"/>\n',x,y,val)
7450 out_XYAB('<path class="stroke" d="mX Yv-6"/>\n',x+val,y)}
7663 function set_feathered_beam(s1){var s,s2,t,d,b,i,a,d=s1.dur,n=1
7669 s2=s;b=d/2;a=d/(n-1);t=s1.time
7670 if(s1.feathered_beam>0){for(s=s1,i=n-1;s!=s2;s=s.next,i--){d=((a*i)|0)+b;s.dur=d;s.time=t;t+=d}}else{for(s=s1,i=0;s!=s2;s=s.next,i++){d=((a*i)|0)+b;s.dur=d;s.time=t;t+=d}}
7671 s.dur=s.time+s.dur-t;s.time=t}
7872 function note_transp(s,sk,note){var ak,an,d,b40,n=note.pit,a=note.acc
8172 var d,k_b40=sk.k_b40,n_b40=(k_b40+200+sk.k_transp)%40
8173 d=abc2svg.b40k[n_b40]-n_b40
8174 if(d){if(sk.k_transp>0)
8175 sk.k_transp+=d
8177 sk.k_transp-=d
8178 n_b40+=d}
8231 if(cmd[1]=='t'){for(i=0;i<a_vf.length;i++){flags=a_vf[i][1]
8445 function get_sym(p,cont){var s,c,i,j,d
8456 while(1){while(p[i]==' '||p[i]=='\t')
8470 d=p.slice(j-1,i+1)
8473 default:d=c.charCodeAt(0)
8474 if(d<128){d=char_tb[d]
8475 if(d.length>1&&(d[0]=='!'||d[0]=='"')){c=d[0]
8484 case'!':deco_cnv([d.slice(1,-1)],s,s.prev)
8486 case'"':parse_gchord(d)
8507 while(1){while(p[i]==' '||p[i]=='\t')
8529 case' ':case'\t':break
8544 if(word&&s.pos.voc!=C.SL_HIDDEN){if(word.match(/^\$\d/)){gene.curfont=word[1]=='0'?dfnt:get_font("u"+word[1])
8546 ly={t:word,font:gene.curfont,wh:strwh(word),istart:j,iend:j+word.length}
8556 p=ly.t;if(p=="-\n"||p=="_\n"){ly.shift=0
8567 if(ly.t[0]>='0'&&ly.t[0]<='9'){if(shift>align)
8576 else if(k.a_ly[i].t=="-\n"||k.a_ly[i].t=="_\n")
8591 if(ly&&ly.t[0]>='0'&&ly.t[0]<='9')
8607 gene.curfont=font=ly.font;p=ly.t;w=ly.wh[0];shift=ly.shift
8630 if(ly&&ly.t=="_\n"){lflag=true;x0=realwidth-15
8930 Abc.prototype.draw_note=draw_note;Abc.prototype.errs=errs;Abc.prototype.font_class=font_class;Abc.prototype.gch_tr1=gch_tr1;Abc.prototype.get_bool=get_bool;Abc.prototype.get_cur_sy=function(){return cur_sy};Abc.prototype.get_curvoice=function(){return curvoice};Abc.prototype.get_delta_tb=function(){return delta_tb};Abc.prototype.get_decos=function(){return decos};Abc.prototype.get_font=get_font;Abc.prototype.get_font_style=function(){return font_style};Abc.prototype.get_glyphs=function(){return glyphs};Abc.prototype.get_img=function(){return img};Abc.prototype.get_maps=function(){return maps};Abc.prototype.get_multi=function(){return multicol};Abc.prototype.get_newpage=function(){if(block.newpage){block.newpage=false;return true}};Abc.prototype.get_posy=function(){var t=posy;posy=0;return t};Abc.prototype.get_staff_tb=function(){return staff_tb};Abc.prototype.get_top_v=function(){return par_sy.top_voice};Abc.prototype.get_tsfirst=function(){return tsfirst};Abc.prototype.get_unit=get_unit;Abc.prototype.get_voice_tb=function(){return voice_tb};Abc.prototype.glout=glout