Lines Matching defs:ymx

168 if(up){y=s.ymx|0}else if(dd.name[0]=='w'){de.inv=true
173 s.ymx=y+dd.h
239 s.ymx=s2.ymx=y
257 yc=stafft;y_set(s.st,true,s.x-dd.wl,w,yc+dd.h);s.ymx=yc+dd.h}
260 if(dd.glyph=="brth"&&yc<s.ymx)
261 yc=s.ymx
271 yc=stafft;y_set(s.st,true,s.x-dd.wl,w,yc+dd.h);s.ymx=yc+dd.h}else{yc=y_get(s.st,false,s.x-dd.wl,w)-3+dd.hd
726 if(user.anno_start||user.anno_stop){s.wl=16;s.wr=30;s.ymn=(dosh&1)?h:y;s.ymx=s.ymn+14;anno_start(s)}
743 s.x-=10;if(user.anno_start||user.anno_stop){w=strwh(s.text)[0];s.wl=0;s.wr=w;s.ymn=-ht-h;s.ymx=s.ymn+h;anno_start(s)}
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)
850 stem_err=s.ymx-ys
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)
857 stem_err=ys-s.ymx+8}else{stem_err=ys-s.ymn}}
878 if(s1.stem>0){y=s.ymx-y
889 if(s1.stem>0){y=g.ymx-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}
1400 x1+=3}else{y1=dir>0?k1.ymx+2:k1.ymn-2
1405 x2-=3}else{y2=dir>0?k2.ymx+2:k2.ymn-2
1421 if(k.type!=C.BAR&&k.x<x1+48){if(dir>0){y=k.ymx-2
1427 if(k.type!=C.BAR&&k.x>x2-48){if(dir>0){y=k.ymx-2
1456 if(y<k.ymx)
1457 y=k.ymx;y-=a*k.x+addy
1466 if(y<g.ymx)
1467 y=g.ymx;y-=a*g.x+addy
1502 if(k.ymx<y)
1503 k.ymx=y
1647 if(s3.ymx<ym)
1648 s3.ymx=ym;y_set(upstaff,true,xm-3,6,ym)}else{if(s3.ymn>ym)
1661 if(dir==C.SL_ABOVE){if(s1.st==s2.st){y1=y2=staff_tb[upstaff].topbar+2}else{y1=s1.ymx;y2=s2.ymx}
1691 if(s3.ymx<yy)
1692 s3.ymx=yy
1897 switch(s.type){case C.GRACE:for(g=s.extra;g;g=g.next){y_set(s.st,true,g.x-2,4,g.ymx+1);y_set(s.st,false,g.x-2,4,g.ymn-5)}
1899 case C.MREST:y_set(s.st,true,s.x+16,32,s.ymx+2)
1901 default:y_set(s.st,true,s.x-s.wl,s.wl+s.wr,s.ymx+2);y_set(s.st,false,s.x-s.wl,s.wl+s.wr,s.ymn-2)
1905 y_set(s.st,true,s.x+dx,w,s.ymx);ymn=s.ymn
1908 y_set(s.st,false,s.x-s.wl,s.wl+s.wr,ymn)}else{y_set(s.st,true,s.x-s.wl,s.wl+s.wr,s.ymx);if(s.stemless){dx=-5;w=10}else if(s.beam_st){dx=-6;w=s.beam_end?4:10}else{dx=-8;w=s.beam_end?5:16}
1911 if(s.ymx<y)
1912 s.ymx=y;y_set(s.st,true,s.x,0,y)}
2078 h=p_staff.topbar*p_staff.staffscale;s.ymx=s.ymn+h;anno_start(s)
2199 if(s.clef_octave){if(s.clef_octave>0){y+=s.ymx-10
2341 if(s.ymx<y)
2342 s.ymx=y
2343 if(s2&&s2.ymx<y)
2344 s2.ymx=y;y_set(s.st,true,s.x+5,dx,y)}
4266 function set_yval(s){switch(s.type){case C.CLEF:if(s.second||s.invis){s.ymx=s.ymn=12
4269 switch(s.clef_type){default:s.ymx=s.y+28
4272 case"c":s.ymx=s.y+13
4275 case"b":s.ymx=s.y+7
4278 if(s.clef_small){s.ymx-=2;s.ymn+=2}
4279 if(s.ymx<26)
4280 s.ymx=26
4284 s.ymx+=12
4289 s.ymx=24+10
4291 s.ymx=24+6
4293 s.ymx=24+2;s.ymn=-2
4295 default:s.ymx=24;s.ymn=0
4557 g.ymn=3*(g.notes[0].pit-18)-2;g.ymx=3*(g.notes[g.nhd].pit-18)+2}
4565 s.y=12;s.ymx=24+15;s.ymn=-2
4567 case C.REST:if(voice_tb.length==1){s.y=12;s.ymx=24;s.ymn=0
4573 if(s.type==C.REST){s.y=(((s.notes[0].pit-18)/2)|0)*6;s.ymx=s.y+rest_sp[5-s.nflags][0];s.ymn=s.y-rest_sp[5-s.nflags][1]}
4603 if(i<0){vobj={v:rvoice,ymx:0,ymn:24}
4610 if(u.ymx>vobj.ymx)
4611 vobj.ymx=u.ymx
4642 if(i!=0&&i+2==st_v.length){if(st_v[i].ymn-cfmt.stemheight>=st_v[i+1].ymx)
4671 ymax=s2.y}}else{if(s2.time==s.time){if(s2.ymx>ymin){ymin=s2.ymx
4684 ymax=s2.y}}else{if(s2.time==s.time){if(s2.ymx>ymin){ymin=s2.ymx
4688 if(!not_alone){s.y=12;s.ymx=24;s.ymn=0
4691 s.y+=shift;s.ymx+=shift;s.ymn+=shift}
4693 s.y-=shift;s.ymx-=shift;s.ymn-=shift}
4694 shift=ymax-s.ymx
4696 if(s.ymn-shift>=ymin){s.y-=shift;s.ymx-=shift;s.ymn-=shift
4702 if(s.ymx+shift<=ymax){s.y+=shift;s.ymx+=shift;s.ymn+=shift
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}
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}
5133 if(s1.ymn>s2.ymx||s1.ymx<s2.ymn)
5250 Abc.prototype.set_stems=function(){var s,s2,g,slen,scale,ymn,ymx,nflags,ymin,ymax,res
5256 slen+=1.2*(g.nflags-1);ymn=3*(g.notes[0].pit-18);ymx=3*(g.notes[g.nhd].pit-18)
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)}
5258 ymx+=2;ymn-=2
5261 else if(ymx>ymax)
5262 ymax=ymx;g.ymx=ymx;g.ymn=ymn}
5263 s.ymx=ymax;s.ymn=ymin
5284 if(s.nhd>0){slen-=2;ymx=3*(s.notes[s.nhd].pit-18)}else{ymx=ymn}
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
5293 ymn-=3;s.ymn=ymn-4;s.ys=ymx+slen
5295 s.ys=s.mid;s.ymx=(s.ys+2.5)|0}else{if(s.notes[0].pit<18&&(nflags<=0||!s.beam_st||!s.beam_end)){slen-=2
5300 s.ys=s.mid;s.ymn=(s.ys-2.5)|0;s.y=ymx
5302 ymx+=3;s.ymx=ymx+4}}}
7259 var type=s.type,h=s.ymx-s.ymn+4,wl=s.wl||2,wr=s.wr||2
8618 if(user.anno_start||user.anno_stop){s2={st:s.st,istart:ly.istart,iend:ly.iend,x:x0,y:y,ymn:y,ymx:y+gene.curfont.size,wl:0,wr:w}