Lines Matching +defs:b +defs:t

21 abc2svg.b40p=function(b){return((b/40)|0)*7+abc2svg.b40_p[b%40]-19}
22 abc2svg.b40a=function(b){return abc2svg.b40_a[b%40]}
23 abc2svg.b40m=function(b){return((b/40)|0)*12+abc2svg.b40_m[b%40]}
25 abc2svg.rat=function(n,d){var a,t,n0=0,d1=0,n1=1,d0=1
28 t=d
31 n=t
32 t=n0+a*n1
34 n1=t
35 t=d0+a*d1
37 d1=t}
750 function b_pos(grace,stem,nflags,b){var top,bot,d1,d2,shift=!grace?BEAM_SHIFT:3.5,depth=!grace?BEAM_DEPTH:1.8
753 if(stem>0){bot=b-(nflags-1)*shift-depth
756 top=b}else{top=b+(nflags-1)*shift+depth
759 bot=b}
774 Abc.prototype.calculate_beam=function(bm,s1){var s,s2,g,notes,nflags,st,v,two_staves,two_dir,x,y,ys,a,b,stem_err,max_stem_err,p_min,p_max,s_closest,stem_xoff,scale,visible,dy
806 return false}else{if(!two_staves){bm.s1=s1;bm.a=(s1.ys-s2.ys)/(s1.xs-s2.xs);bm.b=s1.ys-s1.xs*bm.a+staff_tb[st].y;bm.nflags=nflags
827 b=(y+s2.ys+staff_tb[s2.st].y)/2-a*(s2.xs+s1.xs)/2
832 b+=ys*s2.stem
834 b+=ys*s1.stem}else if(!s1.grace){var beam_h=BEAM_DEPTH+BEAM_SHIFT*(nflags-1)
838 x=s.v==v?s.xs:s.x;ys=a*x+b-staff_tb[s.st].y
860 max_stem_err=stem_err}}else{for(;;s=s.next){ys=a*s.xs+b-staff_tb[s.st].y;stem_err=GSTEM-2
870 b+=s1.stem*max_stem_err
877 case C.CLEF:y=a*s.x+b
882 b+=y}else{y=s.ymn-y
886 b+=y}
888 case C.GRACE:for(g=s.extra;g;g=g.next){y=a*g.x+b
893 b+=y}else{y=g.ymn-y
897 b+=y}}
902 b+=b_pos(s1.grace,s1.stem,nflags,b-staff_tb[st].y)
903 for(s=s1;;s=s.next){switch(s.type){case C.NOTE:s.ys=a*s.xs+b-staff_tb[s.st].y
907 case C.REST:y=a*s.x+b-staff_tb[s.st].y
926 bm.s1=s1;bm.a=a;bm.b=b;bm.nflags=nflags
933 y1=bm.a*x1+bm.b-dy;x2-=x1;x2/=stv_g.scale;dy2=bm.a*x2
943 s.ys=bm.a*s.xs+bm.b
1870 function draw_sym_near(){var p_voice,p_st,s,v,st,y,g,w,i,st,dx,top,bot,ymn,output_sav=output;function set_yab(s1,s2){var y,k=realwidth/YSTEP,i=(s1.x/k)|0,j=(s2.x/k)|0,a=(s1.ys-s2.ys)/(s1.xs-s2.xs),b=s1.ys-s1.xs*a,p_st=staff_tb[s1.st]
1872 if(s1.stem>0){while(i<=j){y=k*i+b
1875 i++}}else{while(i<=j){y=k*i+b
2099 function out_bars(){var i,b,bx,l=ba.length
2103 for(i=0;i<l;i++){b=ba[i];draw_bar(b[0],b[1],b[2])}
2109 for(i=0;i<l;i++){b=sb[i];out_XYAB('MX Yv-F',b[0],b[1],b[2])}
2113 for(i=0;i<l;i++){b=thb[i];out_XYAB('MX Yv-F',b[0],b[1],b[2])}
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
3126 function tosvg(in_fname,file,bol,eof){var i,c,eol,end,select,line0,line1,last_info,opt,text,a,b,s,pscom,txt_add='\n'
3212 switch(file[eol]){case' ':case'\t':continue}
3224 if(file[bol+2]=='a'&&file[bol+3]=='b'&&file[bol+4]=='c'&&file[bol+5]==' '){bol+=6;line0=file[bol];line1=file[bol+1]}else{pscom=true}}else if(line0=='I'&&line1==':'){pscom=true}
3234 if(a[1].slice(0,5)=='begin'){b=a[1].substr(5);end='\n'+line0+line1+"end"+b;i=file.indexOf(end,eol)
3237 self.do_begin_end(b,uncomment(a[2]),file.slice(eol+1,i).replace(new RegExp('^'+line0+line1,'gm'),''));parse.eol=file.indexOf('\n',i+6)
3292 while(1){switch(file[bol]){case' ':case'\t':bol++
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)
3868 function add_end_bar(s){var b=_bar(s)
3869 b.seqst=true
3870 b.invis=true
3871 b.time=s.time+s.dur/2
3872 b.wl=0
3873 b.wr=0
3874 b.ts_prev=s
3875 b.next=s.next
3876 b.ts_next=s.ts_next
3877 b.shrink=s.wr+3
3879 s.next.prev=b
3881 s.ts_next.ts_prev=b
3882 s.next=s.ts_next=b
3883 b.space=set_space(b,s.time)
3884 return b}
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]}}
4275 case"b":s.ymx=s.y+7
4397 if(min>=19||(min>=13&&clef_type_start!='b'))
4398 return't'
4399 if(max<=13||(max<=19&&clef_type_start!='t'))
4400 return'b'
4402 clef_type_start='t'
4404 clef_type_start='b'}
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}
4531 case"b":pit=10
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
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
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)
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
5550 case'b':i=4
5551 case'F':s.clef_type="b";s.clef_line=4
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'
5809 case'b':sf-=7;i++;break}
5811 switch(param.slice(0,3).toLowerCase()){default:if(param[0]!='m'||(param[1]!=' '&&param[1]!='\t'&&param[1]!='\n')){key_end=true
6523 function check_mac(m){var i,j,b
6528 b=ntb.indexOf(line.buffer[j])
6529 if(b<0)
6531 while(line.buffer[j+1]=="'"){b+=7;j++}
6532 while(line.buffer[j+1]==','){b-=7;j++}}
6534 return b}
6539 function expand(m,b){var c,i,r="",n=m.length
6541 if(c>='h'&&c<='z'){r+=n2n(b+c.charCodeAt(0)-'n'.charCodeAt(0))}else{r+=c}}
6543 function parse_mac(k,m,b){var te,ti,curv,s,line_sav=line,istart_sav=parse.istart;parse.line=line=new scanBuf;parse.istart+=line_sav.index;if(cfmt.writefields.indexOf('m')<0){line.buffer=k.replace('n',n2n(b))
6560 line.buffer=b?expand(m,b):m
6568 curvoice=curv}else{line.buffer=b?expand(m,b):m;parse_seq(true)}
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)}
7276 function out_XYAB(str,x,y,a,b){x=sx(x);y=sy(y);output+=str.replace(/X|Y|A|B|F|G/g,function(c){switch(c){case'X':return x.toFixed(1)
7279 case'B':return b
7281 default:return b.toFixed(1)}})}
7387 function out_trem(x,y,ntrem){out_XYAB('<path d="mX Y\n\t',x-4.5,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}
7922 (param.slice(-1)=='b'?abc2svg.ifb40:abc2svg.isb40)[val%12]}}
7923 Abc.prototype.do_pscom=function(text){var h1,val,s,cmd,param,n,k,b
7992 if(!param.length){n=1;k=1}else{b=param.split(/\s+/);n=parseInt(b[0]);k=parseInt(b[1])
8231 if(cmd[1]=='t'){for(i=0;i<a_vf.length;i++){flags=a_vf[i][1]
8456 while(1){while(p[i]==' '||p[i]=='\t')
8507 while(1){while(p[i]==' '||p[i]=='\t')
8529 case' ':case'\t':break
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
8690 lyst_tb[st].b=true}
8708 if(lyst_tb[st].b){bot=lyst_tb[st].bot-2
8771 var note_names="CDEFGAB",acc_name=["bb","b","","#","##"]
8779 while(p[ip]=='b'||p[ip]=='\u266d'){a--;ip++}
8796 if(gch.type=='g'){gch.text=gch.text.replace(/##|#|=|bb|b| /g,function(x){switch(x){case'##':return"&#x1d12a;"
8799 case'b':return"\u266d"
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
8959 var m,i,fn,nreq_i=this.nreq,ls=file.match(/(^|\n)(%%|I:).+?\b/g)