Lines Matching defs:stem

167 up=s.stem<0
180 de.x+=s.notes[s.stem>=0?0:s.nhd].shhd
181 if(dd.name[0]=='d'&&s.nflags>=-1){if(up){if(s.stem>0)
182 de.x+=3.5}else{if(s.stem<0)
248 x+=s.notes[s.stem>=0?0:s.nhd].shhd;up=-1
253 switch(dd.glyph){case"accent":case"roll":if(!up||(up<0&&(s.multi<0||(!s.multi&&s.stem>0)))){yc=y_get(s.st,false,s.x-dd.wl,w)-2
435 if(i>0){if(s.stem>=0)
697 if(s.next.type==C.NOTE){if(s.next.stem>0){if(y<s.next.ys-gene.curfont.size)
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
785 if(s2.stem!=s1.stem)
813 if(s.stem>=0){x=stem_xoff+s.notes[0].shhd
831 if(s1.stem!=s2.stem&&s1.nflags<s2.nflags)
832 b+=ys*s2.stem
834 b+=ys*s1.stem}else if(!s1.grace){var beam_h=BEAM_DEPTH+BEAM_SHIFT*(nflags-1)
840 if(s.stem>0){if(s.notes[s.nhd].pit>26){stem_err-=2
847 stem_err+=BEAM_DEPTH+BEAM_SHIFT*(s.nflags-1)}else{if(s1.stem>0){if(s.stem>0){if(s.ymn>ys+4||s.ymx<ys-beam_h-2)
852 stem_err=s.ymn+8-ys}else{stem_err=s.ymx-ys}}else{if(s.stem<0){if(s.ymx<ys-4||s.ymn>ys-beam_h-2)
861 if(s.stem>0)
870 b+=s1.stem*max_stem_err
878 if(s1.stem>0){y=s.ymx-y
889 if(s1.stem>0){y=g.ymx-y
902 b+=b_pos(s1.grace,s1.stem,nflags,b-staff_tb[st].y)
904 if(s.stem>0){s.ymx=s.ys+2.5
905 if(s.ts_prev&&s.ts_prev.stem>0&&s.ts_prev.st==s.st&&s.ts_prev.ymn<s.ymx&&s.ts_prev.x==s.x&&s.notes[0].shhd==0){s.ts_prev.x-=3;s.ts_prev.xs-=3}}else{s.ymn=s.ys-2.5}
910 if(s1.stem>0){y-=dy
937 beam_dir=s1.stem
938 if(s1.stem!=s2.stem&&s1.nflags<s2.nflags)
939 beam_dir=s2.stem
942 for(s=s1;;s=s.next){if(s.type==C.NOTE&&s.stem!=beam_dir)
945 +bshift*(s.nflags-1)*s.stem
1076 note=s.notes[s.stem<0?s.nhd:0]
1205 if(!g.next){x1=9;y1=g.stem>0?5:-5}else{x1=(g.next.x-g.x)*.5+4;y1=(g.ys+g.next.ys)*.5-g.y
1206 if(g.stem>0)
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)}
1214 if(((g.stem>=0||s.multi<0)&&g.notes[0].pit<=28)||g.notes[0].pit<16){yy=127
1219 if(s.stem<0&&s.nflags>-2)
1228 if(s.stem>=0&&s.nflags>-2)
1257 if(i>=0){if(s.stem>=0)
1265 inv=s.stem>0}
1297 note=s.notes[s.stem<0?s.nhd:0];x=x_head(s,note)
1304 if(!fl||nflags<=0){if(s.nflags>0){if(s.stem>=0)
1308 out_stem(x,y,slen,s.grace)}else{out_stem(x,y,slen,s.grace,nflags,cfmt.straightflags)}}else if(s.xstem){s2=s.ts_prev;slen=(s2.stem>0?s2.y:s2.ys)-s.y;slen+=staff_tb[s2.st].y-staffb;out_stem(x,y,slen)}
1309 if(fl&&s.trem1){var ntrem=s.ntrem||0,x1=x;slen=3*(s.notes[s.stem>0?s.nhd:0].pit-18)
1310 if(s.head==C.FULL||s.head==C.EMPTY){x1+=(s.grace?GSTEM_XOFF:3.5)*s.stem
1311 if(s.stem>0)
1314 slen-=6+5.4}else{if(s.stem>0)
1339 if(k1.grace&&k1.stem>0)
1344 for(s=k1;;s=s.next){if(s.type==C.NOTE){if(!s.stemless){if(s.stem<0)
1401 if(k1.type==C.NOTE){if(dir>0){if(k1.stem>0){x1+=5
1402 if(k1.beam_end&&k1.nflags>=-1&&!k1.in_tuplet){if(k1.nflags>0){x1+=2;y1=k1.ys-3}else{y1=k1.ys-6}}}}else{if(k1.stem<0){x1-=1
1406 if(k2.type==C.NOTE){if(dir>0){if(k2.stem>0){x2+=1
1408 y2=k2.ys-6}}else{if(k2.stem<0){x2-=5
1611 dir=s3.stem>0?C.SL_ABOVE:C.SL_BELOW}
1636 if(s1.stem*s2.stem>0){if(s1.stem>0)
1656 r=s2.stem>=0?0:s2.nhd
1659 if(s2.st==upstaff&&s2.stem>0)
1665 if(s1.stem>0)
1695 y_set(upstaff,true,s3.x,s3.next.x-s3.x,yy)}else if(s3==s2){break}}}else{if(s1.stem<0)
1872 if(s1.stem>0){while(i<=j){y=k*i+b
1904 if(s.stem>0){if(s.stemless){dx=-5;w=10}else if(s.beam_st){dx=3;w=s.beam_end?4:10}else{dx=-8;w=s.beam_end?11:16}
2278 if(ntie<=1){dir=s.stem<0?C.SL_ABOVE:C.SL_BELOW
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
3660 if(s.beam_st&&s.beam_end&&s.stem>0&&s.nflags>0){if(s.wr<s.xmx+9)
3674 if(s2){switch(s2.type){case C.NOTE:if(s2.stem>0&&s.stem<0){if(wlw<7)
3846 if(s.type==C.NOTE&&s.nflags>=-1&&s.stem>0){stemdir=true
3847 for(s2=s.ts_prev;s2&&s2.time==ptime;s2=s2.ts_prev){if(s2.type==C.NOTE&&(s2.nflags<-1||s2.stem>0)){stemdir=false
3849 if(stemdir){for(s2=s.ts_next;s2&&s2.time==s.time;s2=s2.ts_next){if(s2.type==C.NOTE&&(s2.nflags<-1||s2.stem<0)){stemdir=false
4935 if(g.stem==2){s_opp=s
4937 if(!s.stem&&(s.stem=s.multi)==0)
4938 s.stem=1
4939 for(;g;g=g.next){g.stem=s.stem;g.multi=s.multi}
4941 if(!s.stem&&(s.stem=s.multi)==0){mid_p=s.mid/3+18
4942 if(beam){s.stem=laststem}else if(s.beam_st&&!s.beam_end){beam=true;n=pu=0
4944 if(g.stem||g.multi){s.stem=g.stem||g.multi
4951 if(!s.stem){pu*=2
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
4960 if(g.beam_end){if(pu+pd<mid_p*2){s.stem=1}else if(pu+pd>mid_p*2){s.stem=-1}else{if(cfmt.bstemdown)
4961 s.stem=-1}}}}
4962 if(!s.stem)
4963 s.stem=laststem}else{n=(s.notes[s.nhd].pit+s.notes[0].pit)/2
4968 s.stem=1
4970 s.stem=-1
4972 s.stem=-1
4974 s.stem=laststem}}else{if(s.beam_st&&!s.beam_end)
4977 beam=false;laststem=s.stem;if(s_opp){for(g=s_opp.extra;g;g=g.next)
4978 g.stem=-laststem;s_opp.stem=-laststem;s_opp=null}}}
4990 if(s1.stem*s2.stem>0)
4993 if(s1.notes[0].pit>s2.notes[0].pit){if(s1.stem<0)
4996 return false}}else if(s1.notes[0].pit<s2.notes[0].pit){if(s2.stem<0)
5013 if(s2.stem>0)
5014 return false}else if(i2<=s2.nhd){if(s1.stem>0)
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}
5085 if(flags){if(s.stem>0){if(s.xmx==0)
5097 shift=s.notes[s.stem>0?0:s.nhd].shhd
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}
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
5257 if(s.stem>=0){g.y=ymn;g.ys=ymx+slen;ymx=Math.round(g.ys)}else{g.y=ymx;g.ys=ymn-slen;ymn=Math.round(g.ys)}
5287 if(s.stemless){if(s.stem>=0){s.y=ymn;s.ys=ymx}else{s.ys=ymn;s.y=ymx}
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
5686 case"stem=":case"pos=":if(item=="pos=")
6332 a_dcn=null;parse.stemless=false;s={type:C.NOTE,fname:parse.fname,stem:0,multi:0,nhd:0,xmx:0}
6444 if(s.notes){if(!grace){switch(curvoice.pos.stm){case C.SL_ABOVE:s.stem=1;break
6445 case C.SL_BELOW:s.stem=-1;break
6462 if(grace.stem)
6463 s.stem=grace.stem}
6719 switch(curvoice.pos.gst){case C.SL_ABOVE:grace.stem=1;break
6720 case C.SL_BELOW:grace.stem=-1;break
6721 case C.SL_HIDDEN:grace.stem=2;break}