Lines Matching defs:nhd

132 if(s.type==C.NOTE){for(m=0;m<=s.nhd;m++){if(s.notes[m].acc){dx=5+s.notes[m].shac}else{dx=6-s.notes[m].shhd
139 h=3*(s.notes[s.nhd].pit-s.notes[0].pit)+4;m=dd.h
180 de.x+=s.notes[s.stem>=0?0:s.nhd].shhd
199 for(m=0;m<=s.nhd;m++){if(s.notes[m].acc){dx=4+s.notes[m].shac}else{dx=5-s.notes[m].shhd
247 if(s.nhd)
248 x+=s.notes[s.stem>=0?0:s.nhd].shhd;up=-1
330 note=s.notes[s.nhd]
337 for(j=0;j<=s.nhd;j++){note=s.notes[j]
343 case 10:if(s.notes){for(j=0;j<=s.nhd;j++)
354 s.trem2=true;s.beam_end=true;s.beam_st=false;prev.beam_st=true;prev.beam_end=false;s.ntrem=prev.ntrem=Number(dd.name[4]);for(j=0;j<=s.nhd;j++)
355 s.notes[j].dur*=2;for(j=0;j<=prev.nhd;j++)
770 for(m=0;m<=s.nhd;m++){note=s.notes[m]=clone(s.notes[m])
814 if(s.notes[s.nhd].pit>p_max){p_max=s.notes[s.nhd].pit;s_closest=s}}else{x=-stem_xoff+s.notes[s.nhd].shhd
839 if(s.v==v){stem_err=min_tb[s.nhd==0?0:1][s.nflags]
840 if(s.stem>0){if(s.notes[s.nhd].pit>26){stem_err-=2
841 if(s.notes[s.nhd].pit>28)
843 stem_err-=ys-3*(s.notes[s.nhd].pit-18)}else{if(s.notes[0].pit<18){stem_err-=2
862 stem_err-=ys-(3*(s.notes[s.nhd].pit-18))
1069 for(i=0;i<=s.nhd;i++){note=s.notes[i]
1076 note=s.notes[s.stem<0?s.nhd:0]
1122 for(;i>old_sf;i--){xygl(x,staffb+shift,"acc3");shift+=p_seq[-i];x+=5.5}}}}else if(s.k_a_acc.length){var acc,last_acc=s.k_a_acc[0].acc,last_shift=100,s2={st:st,nhd:0,notes:[{}]}
1210 note=g.notes[g.stem<0?0:g.nhd];out_acciac(x_head(g,note),y_head(g,note),x1,y1,g.stem>0)}
1229 x3-=2;y3=3*(s.notes[s.nhd].pit-18)+5;dy1=(x0-x3)*.4
1235 for(m=0;m<=s.nhd;m++){y=3*(s.notes[m].pit-18)
1241 for(m=0;m<s.nhd;m++){if(y_tb[m+1]>y_tb[m])
1294 function draw_note(s,fl){var s2,i,m,y,staffb,slen,c,nflags,x,y,note,y_tb=new Array(s.nhd+1)
1297 note=s.notes[s.stem<0?s.nhd:0];x=x_head(s,note)
1309 if(fl&&s.trem1){var ntrem=s.ntrem||0,x1=x;slen=3*(s.notes[s.stem>0?s.nhd:0].pit-18)
1320 for(m=0;m<=s.nhd;m++)
1455 switch(k.type){case C.NOTE:case C.REST:if(dir>0){y=3*(k.notes[k.nhd].pit-18)+6
1465 case C.GRACE:for(g=k.extra;g;g=g.next){if(dir>0){y=3*(g.notes[g.nhd].pit-18)+6
1575 if(s.sl1){for(m=0;m<=s.nhd;m++){note=s.notes[m]
1656 r=s2.stem>=0?0:s2.nhd
1670 xm=.5*(x1+x2);ym=.5*(y1+y2);a=(y2-y1)/(x2-x1);s0=3*(s2.notes[s2.nhd].pit-s1.notes[s1.nhd].pit)/(x2-x1)
1733 for(m=0;m<s1.nhd;m++)
1736 if(dir>0){if(m<s1.nhd&&p+1==s1.notes[m+1].pit)
1742 if(job!=2){for(m=0;m<s2.nhd;m++)
1746 if(dir>0){if(m<s2.nhd&&p+1==s2.notes[m+1].pit)
1779 function draw_ties(k1,k2,job){var k3,i,j,not1,not3,time,pit,pit2,mhead3=[],nh1=k1.nhd
1807 for(j=k3.nhd;j>=0;j--){not3=k3.notes[j]
1910 if(s.notes[s.nhd].acc){y=s.y+8
2269 for(i=0;i<=s.nhd;i++){ty=s.notes[i].tie_ty
2275 for(i=0;i<=s.nhd;i++){if(s.notes[i].tie_ty){ntie++
2279 for(i=0;i<=s.nhd;i++){ty=s.notes[i].tie_ty
2285 for(i=0;i<=s.nhd;i++){ty=s.notes[i].tie_ty
2296 for(i=0;i<=s.nhd;i++){ty=s.notes[i].tie_ty
2305 for(i=0;i<=s.nhd;i++){if(s.notes[i].tie_ty){if(pit<128&&s.notes[i].pit<=pit+1){ntie=i
2309 for(i=0;i<=s.nhd;i++){ty=s.notes[i].tie_ty
2326 if(s.notes[0].pit<20&&s.notes[0].tie_ty&&(s.notes[0].tie_ty&0x07)==C.SL_BELOW);else if(s.notes[s.nhd].pit>24&&s.notes[s.nhd].tie_ty&&(s.notes[s.nhd].tie_ty&0x07)==C.SL_ABOVE);else
2340 if(s.notes[s.nhd].pit>24){y=3*(s.notes[s.nhd].pit-18)+dy
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
3485 for(i=0;i<=s2.nhd;i++){if(s2.notes[i].acc){acc=true
3535 new_s.nhd=0;while(!s.seqst)
3551 if(s.notes[s.nhd].pit<=12){staff_chg=true
3563 if(s.notes[s.nhd].pit>up-3){staff_chg=false
3569 if(s1.notes[s1.nhd].pit>down)
3570 down=s1.notes[s1.nhd].pit}
3577 up-=s.notes[s.nhd].pit
3588 for(m=g.nhd;m>=0;m--){if(g.notes[m].shac>dx)
3604 if(next&&next.type==C.NOTE){if(g.y>=3*(next.notes[next.nhd].pit-18))
3606 else if(g.beam_st&&g.y<3*(next.notes[next.nhd].pit-18)-4)
3648 for(m=0;m<=s.nhd;m++){xx=s.notes[m].shhd
3867 function _bar(s){return{type:C.BAR,bar_type:"|",fname:s.fname,istart:s.istart,iend:s.iend,v:s.v,p_v:s.p_v,st:s.st,dur:0,nhd:0,notes:[{pit:s.notes?s.notes[0].pit:22}],prev:s}}
4027 new_s.shrink=8+4;new_s.space=s2.space;new_s.wl=0;new_s.wr=4;new_s.nhd=s2.nhd;new_s.notes=[]
4308 if(delta&&!s.p_v.ckey.k_drum){for(m=s.nhd;m>=0;m--){note=s.notes[m];if(!note.opit)
4312 if(delta&&!s.p_v.ckey.k_drum){for(m=0;m<=g.nhd;m++){note=g.notes[m]
4395 if(s.notes[s.nhd].pit>max)
4396 max=s.notes[s.nhd].pit}
4411 if(clef_type=='t'){if(s.notes[0].pit>12||s.notes[s.nhd].pit>20){if(s.notes[0].pit>20)
4419 continue}else{if(s.notes[0].pit<12||s.notes[s.nhd].pit<20){if(s.notes[s.nhd].pit<12)
4555 if(delta&&!s.p_v.ckey.k_drum){for(m=0;m<=g.nhd;m++){note=g.notes[m];note.opit=note.pit
4557 g.ymn=3*(g.notes[0].pit-18)-2;g.ymx=3*(g.notes[g.nhd].pit-18)+2}
4570 if(delta&&!s.p_v.ckey.k_drum){for(m=s.nhd;m>=0;m--){note=s.notes[m]
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))
4857 if(s.type==C.NOTE){if(s.nhd)
4864 s.nhd=0}
4946 n+=g.nhd+1
4947 for(m=0;m<=g.nhd;m++){if(g.notes[m].pit>=mid_p)
4952 if(pu>n){s.stem=-1}else if(pu<n){s.stem=1}else{pu=s.notes[s.nhd].pit;pd=s.notes[0].pit
4954 if(g.notes[g.nhd].pit>pu)
4955 pu=g.notes[g.nhd].pit
4963 s.stem=laststem}else{n=(s.notes[s.nhd].pit+s.notes[0].pit)/2
4964 if(n==mid_p){for(m=0;m<=s.nhd;m++){if(s.notes[m].pit>=mid_p)
4966 n=m*2<s.nhd?mid_p-1:mid_p+1}
4995 while(s2.notes[i2].pit!=s1.notes[0].pit){if(++i2>s2.nhd)
4998 while(s2.notes[0].pit!=s1.notes[i1].pit){if(++i1>s1.nhd)
5003 if(i1>s1.nhd){break}
5004 if(i2>s2.nhd){break}
5011 if(i1<=s1.nhd){if(i2<=s2.nhd)
5014 return false}else if(i2<=s2.nhd){if(s1.stem>0)
5028 for(i2=0;i2<=s2.nhd;i2++)
5031 for(i1=0;i1<=s1.nhd;i1++)
5042 for(m=0;m<=s1.nhd;m++){s1.notes[m].shhd+=d;s1.notes[m].shac-=d}
5048 for(m=0;m<=s2.nhd;m++){s2.notes[m].shhd+=d;s2.notes[m].shac-=d}
5054 if(s.nflags>-2){if(s.stem>0){w=-w;i=s.notes[0].pit*2;j=(Math.ceil((s.ymx-2)/3)+18)*2}else{i=(Math.ceil((s.ymn+2)/3)+18)*2;j=s.notes[s.nhd].pit*2}
5061 shift=s.notes[s.stem>0?0:s.nhd].shhd;for(m=0;m<=s.nhd;m++){w=-s.notes[m].shhd+w_base+shift;i=s.notes[m].pit*2
5078 if(s.nflags>-2){if(s.stem<0){w=-w;i=(Math.ceil((s.ymn+2)/3)+18)*2;j=s.notes[s.nhd].pit*2;k=i+4}else{i=s.notes[0].pit*2;j=(Math.ceil((s.ymx-2)/3)+18)*2}
5086 i=s.notes[s.nhd].pit*2
5097 shift=s.notes[s.stem>0?0:s.nhd].shhd
5098 for(m=0;m<=s.nhd;m++){w=s.notes[m].shhd+w_base-shift;i=s.notes[m].pit*2
5117 if(s.xstem&&s.ts_prev.stem<0){for(m=0;m<=s.nhd;m++){s.notes[m].shhd-=7;s.notes[m].shac+=16}}
5138 if((s1.stem>0&&s2.stem<0&&s1.notes[0].pit==s2.notes[s2.nhd].pit+1)||(s1.stem<0&&s2.stem>0&&s1.notes[s1.nhd].pit+1==s2.notes[0].pit)){if(s1.stem<0){s1=s2;s2=s}
5140 for(m=0;m<=s2.nhd;m++)
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
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
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
5246 for(m=s2.nhd;m>=0;m--){s2.notes[m].shhd+=d}
5256 slen+=1.2*(g.nflags-1);ymn=3*(g.notes[0].pit-18);ymx=3*(g.notes[g.nhd].pit-18)
5284 if(s.nhd>0){slen-=2;ymx=3*(s.notes[s.nhd].pit-18)}else{ymx=ymn}
5288 s.ymx=ymx+4;s.ymn=ymn-4}else if(s.stem>=0){if(s.notes[s.nhd].pit>26&&(nflags<=0||!s.beam_st||!s.beam_end)){slen-=2
5289 if(s.notes[s.nhd].pit>28)
5301 if(s.notes[s.nhd].tie)
6041 for(i=0;i<=s2.nhd;i++)
6099 for(var m=0;m<=curvoice.tie_s.nhd;m++){curvoice.tie_s.notes[m]=clone(curvoice.tie_s.notes[m])
6316 for(m=0;m<=s.nhd;m++){note=s.notes[m]
6318 if(tie_s.type!=C.GRACE){for(i=0;i<=tie_s.nhd;i++){if(!tie_s.notes[i].tie_ty)
6332 a_dcn=null;parse.stemless=false;s={type:C.NOTE,fname:parse.fname,stem:0,multi:0,nhd:0,xmx:0}
6429 if(c==']'){line.index++;nd=parse_dur(line);s.nhd=s.notes.length-1
6430 for(i=0;i<=s.nhd;i++){note=s.notes[i];note.dur=note.dur*nd[0]/nd[1]}
6450 for(i=0;i<=s.nhd;i++)
6452 for(i=0;i<=s2.nhd;i++)
6454 for(i=0;i<=s.nhd;i++)
6456 for(i=0;i<=s2.nhd;i++)
6460 for(i=0;i<=s.nhd;i++)
6467 for(i=0;i<=s.nhd;i++){s.notes[i].tie_ty=ty
6473 for(i=0;i<=s.nhd;i++){note=s.notes[i]
6735 if(!s.prev&&!curvoice.ckey.k_bagpipe){for(i=0;i<=s.nhd;i++)
7900 for(;s;s=s.next){switch(s.type){case C.GRACE:for(g=s.extra;g;g=g.next){for(i=0;i<=g.nhd;i++)
7903 case C.NOTE:for(i=0;i<=s.nhd;i++)
8195 for(i=0;i<=s.nhd;i++){if(s.notes[i].pit==pit&&s.notes[i].tie_ty)
8198 case C.NOTE:for(i=0;i<=s.nhd;i++){if(s.notes[i].pit==pit)
8843 y+=(s.type==C.NOTE?(((s.notes[s.nhd].pit+s.notes[0].pit)>>1)-
8851 case'@':y+=(s.type==C.NOTE?(((s.notes[s.nhd].pit+s.notes[0].pit)>>1)-