Lines Matching defs:i1

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]
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
3421 function acc_shift(notes,dx_head){var i,i1,i2,dx,dx1,dx2,ps,p1,acc,n=notes.length
3426 for(i1=n;--i1>=0;){if(!notes[i1].acc)
3428 p1=notes[i1].pit
3433 if(notes[i1].shac<dx)
3434 notes[i1].shac=dx}}
3435 for(i1=n;--i1>=0;){if(notes[i1].acc){p1=notes[i1].pit
3436 dx1=notes[i1].shac
3437 if(!dx1){dx1=notes[i1].shhd
3443 if(i1<0)
3445 for(i2=0;i2<i1;i2++){if(notes[i2].acc){ps=notes[i2].pit
3453 if(i1==i2){notes[i1].shac=dx1
3457 notes[i1].shac=notes[i2].shac=dx2}else{notes[i1].shac=dx1
3460 for(i=i1;--i>i2;){acc=notes[i].acc
3467 for(i1=n;--i1>i;){if(!notes[i1].acc)
3469 p1=notes[i1].pit
3470 if(p1>=ps+4){if(p1>ps+4||acc<0||notes[i1].acc<0)
3472 if(dx>notes[i1].shac-6){dx1=notes[i1].shac+7
4979 function same_head(s1,s2){var i1,i2,l1,l2,head,i11,i12,i21,i22,sh1,sh2
4992 i1=i2=0
4998 while(s2.notes[0].pit!=s1.notes[i1].pit){if(++i1>s1.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++
5003 if(i1>s1.nhd){break}
5005 if(s2.notes[i2].acc!=s1.notes[i1].acc)
5007 if(sh1<s1.notes[i1].shhd)
5008 sh1=s1.notes[i1].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)
5016 i12=i1;i22=i2;head=0
5029 s2.notes[i2].shhd+=sh1}else{for(i1=i11;i1<i12;i1++){s1.notes[i1].invis=true
5030 delete s1.notes[i1].acc}
5031 for(i1=0;i1<=s1.nhd;i1++)
5032 s1.notes[i1].shhd+=sh2}
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
5037 acc=s1.notes[i1].acc
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
5167 switch(dp){case 2:if(!(s1.notes[i1].pit&1))
5170 case 1:if(s1.notes[i1].pit&1)
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
5180 if(s1.dots&&s2.dots&&(s1.notes[i1].pit&1))
5183 case-1:if(s1.notes[i1].pit&1)
5188 case-2:if(!(s1.notes[i1].pit&1))
5193 if(dp>=0){if(--i1<0)
5197 if(t<0){unison_acc(s1,s2,i1,i2)
5210 3;if(!sd){d2=-100;for(i1=0;i1<=s1.nhd;i1++){i=s1.notes[i1].pit
5228 for(i1=0;i1<=s1.nhd;i1++){i=s1.notes[i1].pit
6966 function put_words(words){var p,i,j,nw,w,lw,x1,x2,i1,i2,do_flush,maxn=0,n=1
6989 i1=i}}
6991 lw=strwh(words[i1])[0]
6992 i1=i2=0
6996 i1=i
7005 for(i=0;i<i1||i2<nw;i++,i2++){vskip(cfmt.lineskipfac*gene.curfont.size)
7006 if(i<i1){p=words[i]
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