Lines Matching refs:i2

1386 function draw_slur(path,not1,sl){var i,k,g,x1,y1,x2,y2,height,addy,a,y,z,h,dx,dy,ty=sl.ty,dir=(ty&0x07)==C.SL_ABOVE?1:-1,n=path.length,i1=0,i2=n-1,k1=path[0],k2=path[i2]
1426 k=path[i2-1]
1452 for(i=1;i<i2;i++){k=path[i]
1498 for(i=0;i<i2;i++){k=path[i]
1506 if(i==i2-1){dx=x2
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
3403 if(dir>=0){i1=1;i2=n+1;ps=s.notes[0].pit}else{dx=-dx;i1=n-1;i2=-1;ps=s.notes[n].pit}
3405 for(i=i1;i!=i2;i+=dir){d=s.notes[i].pit-ps;ps=s.notes[i].pit
3410 if(i+dir!=i2&&ps+dir==s.notes[i+dir].pit){s.notes[i].shhd=-dx
3421 function acc_shift(notes,dx_head){var i,i1,i2,dx,dx1,dx2,ps,p1,acc,n=notes.length
3445 for(i2=0;i2<i1;i2++){if(notes[i2].acc){ps=notes[i2].pit
3446 dx2=notes[i2].shac
3447 if(!dx2){dx2=notes[i2].shhd
3453 if(i1==i2){notes[i1].shac=dx1
3457 notes[i1].shac=notes[i2].shac=dx2}else{notes[i1].shac=dx1
3458 notes[i2].shac=dx2=dx1+7}
3460 for(i=i1;--i>i2;){acc=notes[i].acc
4979 function same_head(s1,s2){var i1,i2,l1,l2,head,i11,i12,i21,i22,sh1,sh2
4992 i1=i2=0
4995 while(s2.notes[i2].pit!=s1.notes[0].pit){if(++i2>s2.nhd)
5000 if(s2.notes[i2].acc!=s1.notes[i1].acc)
5001 return false;i11=i1;i21=i2;sh1=s1.notes[i1].shhd;sh2=s2.notes[i2].shhd
5002 do{i1++;i2++
5004 if(i2>s2.nhd){break}
5005 if(s2.notes[i2].acc!=s1.notes[i1].acc)
5009 if(sh2<s2.notes[i2].shhd)
5010 sh2=s2.notes[i2].shhd}while(s2.notes[i2].pit==s1.notes[i1].pit)
5011 if(i1<=s1.nhd){if(i2<=s2.nhd)
5014 return false}else if(i2<=s2.nhd){if(s1.stem>0)
5016 i12=i1;i22=i2;head=0
5026 if(head==1){for(i2=i21;i2<i22;i2++){s2.notes[i2].invis=true
5027 delete s2.notes[i2].acc}
5028 for(i2=0;i2<=s2.nhd;i2++)
5029 s2.notes[i2].shhd+=sh1}else{for(i1=i11;i1<i12;i1++){s1.notes[i1].invis=true
5034 function unison_acc(s1,s2,i1,i2){var m,d,acc
5035 acc=s2.notes[i2].acc
5043 s1.xmx+=d}else{d=w_note[s1.head]*2+s1.xmx+s2.notes[i2].shac+2
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
5166 while(1){dp=s1.notes[i1].pit-s2.notes[i2].pit
5175 case 0:if(s1.notes[i1].acc!=s2.notes[i2].acc&&!s1.notes[i1].acc&&!s2.notes[i2].acc){t=-1
5177 if(s2.notes[i2].acc){if(!s1.notes[i1].acc)
5178 s1.notes[i1].acc=s2.notes[i2].acc
5179 s2.notes[i2].acc=0}
5195 if(dp<=0){if(--i2<0)
5197 if(t<0){unison_acc(s1,s2,i1,i2)
6966 function put_words(words){var p,i,j,nw,w,lw,x1,x2,i1,i2,do_flush,maxn=0,n=1
6992 i1=i2=0
6999 if(j<=0){i2=i+1
7002 if(i2){x1=(w-lw)/2+10
7005 for(i=0;i<i1||i2<nw;i++,i2++){vskip(cfmt.lineskipfac*gene.curfont.size)
7011 if(i2<nw){p=words[i2]
7012 if(p){put_wline(p,x2)}else{if(--n==0){if(i<i1){n++}else if(i2<nw-1){x2=w-lw/2+10
7014 if(!words[i+1]&&!words[i2+1]){if(do_flush){svg_flush()