Lines Matching refs:dy

707 function draw_partempo(st,top){var s,some_part,some_tempo,h,w,y,dy=0,ht=0
723 dy=ymin+ht-top
739 if(top+dy<ymin+h+ht)
740 dy=ymin+h+ht-top
747 return dy}
774 Abc.prototype.calculate_beam=function(bm,s1){var s,s2,g,notes,nflags,st,v,two_staves,two_dir,x,y,ys,a,b,stem_err,max_stem_err,p_min,p_max,s_closest,stem_xoff,scale,visible,dy
908 dy=BEAM_DEPTH+BEAM_SHIFT*(nflags-1)
910 if(s1.stem>0){y-=dy
914 break}else{y+=dy
929 function draw_beam(x1,x2,dy,h,bm,n){var y1,dy2,s=bm.s1,nflags=s.nflags
933 y1=bm.a*x1+bm.b-dy;x2-=x1;x2/=stv_g.scale;dy2=bm.a*x2
1354 function slur_out(x1,y1,x2,y2,dir,height,dotted){var dx,dy,dz,alfa=.3,beta=.45;dy=y2-y1
1355 if(dy<0)
1356 dy=-dy;dx=x2-x1
1357 if(dx>40.&&dy/dx<.7){alfa=.3+.002*(dx-40.)
1361 var xx2=mx+alfa*(x2-mx),yy2=my+alfa*(y2-my)+height;xx2=x2+beta*(xx2-x2);yy2=y2+beta*(yy2-y2);dy=2*dir;dz=.2+.001*dx
1380 ((y2+dz-yy2-dy)/scale_y).toFixed(1)+' '+
1382 ((y2+dz-yy1-dy)/scale_y).toFixed(1)+' '+
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]
1445 z=-z;dx=.5*z;dy=.3*y
1446 if(y*dir>0){x2-=dx;y2-=dy}else{x1+=dx;y1+=dy}
1584 function draw_tuplet(s1){var s2,s3,g,upstaff,nb_only,some_slur,x1,x2,y1,y2,xm,ym,a,s0,yy,yx,dy,a,dir,r,tp=s1.tp.shift()
1680 dy=0
1685 if(yx-yy>dy)
1686 dy=yx-yy
1689 ym+=dy;y1=ym+a*(x1-xm);y2=ym+a*(x2-xm);ym+=6
1709 dy=0
1714 if(yx-yy<dy)
1715 dy=yx-yy
1718 ym+=dy-8
1986 function set_staff(){var s,i,st,prev_staff,v,y,staffsep,dy,maxsep,mbot,val,p_voice,p_staff,sy=cur_sy
2009 staffsep=sy_staff_prev.sep||cfmt.sysstaffsep;maxsep=sy_staff_prev.maxsep||cfmt.maxsysstaffsep;dy=0
2012 if(dy<val)
2013 dy=val}
2014 dy*=p_staff.staffscale}else{for(i=0;i<YSTEP;i++){val=p_staff.top[i]*p_staff.staffscale
2016 if(dy<val)
2017 dy=val}}
2019 if(dy<staffsep)
2020 dy=staffsep;maxsep+=p_staff.topbar*p_staff.staffscale
2021 if(dy>maxsep)
2022 dy=maxsep;y+=dy;p_staff.y=-y;prev_staff=st;while(1){sy_staff_prev=sy.staves[prev_staff]
2032 for(st=0;st<=nstaff;st++){p_staff=staff_tb[st];dy=p_staff.y
2034 (posy-dy).toFixed(1)+') '+'scale('+p_staff.staffscale.toFixed(2)+')"'}}
2039 dy=-mbot;staffsep=cfmt.staffsep*.5
2040 if(dy<staffsep)
2041 dy=staffsep;maxsep=cfmt.maxstaffsep*.5
2042 if(dy>maxsep)
2043 dy=maxsep;return y+dy}
2045 function bar_set(){var st,staffscale,top,bot,dy=0
2049 if(dy==0)
2050 dy=staff_tb[st].y+top;bar_bot[st]=staff_tb[st].y+bot;bar_height[st]=dy-bar_bot[st];dy=(cur_sy.staves[st].flags&STOP_BAR)?0:bar_bot[st]}}
2051 function draw_staff(st,x1,x2){var w,ws,i,dy,ty,y=0,ln="",stafflines=staff_tb[st].stafflines,l=stafflines.length
2059 dy=0
2060 for(;i<l;i++,y-=6,dy-=6){switch(stafflines[i]){case'.':case'-':continue
2061 case ty:ln+='m-'+ws.toFixed(1)+' '+dy+'h'+ws.toFixed(1);dy=0
2066 (ty=='['?'slthW':'slW')+'" d="m0 '+y+'h'+ws.toFixed(1);dy=0}
2316 function set_tie_room(){var p_voice,s,s2,v,dx,y,dy
2335 dy=9
2337 dy=12
2339 dy=16
2340 if(s.notes[s.nhd].pit>24){y=3*(s.notes[s.nhd].pit-18)+dy
2345 if(s.notes[0].pit<20){y=3*(s.notes[0].pit-18)-dy
7167 \n.box{outline: 1px solid black;outline-offset: 1px}',font_style='',posx=cfmt.leftmargin/cfmt.scale,posy=0,img={width:cfmt.pagewidth,lm:cfmt.leftmargin,rm:cfmt.rightmargin},defined_glyph={},defs='',fulldefs='',stv_g={scale:1,dy:0,st:-1,v:-1,g:0},blkdiv=0
7217 (posy-stv_g.dy).toFixed(1)+') scale('+stv_g.scale.toFixed(2)+')"'}
7225 function set_sscale(st){var new_scale,dy
7229 dy=staff_tb[st].y
7231 dy=posy
7232 if(new_scale==stv_g.scale&&dy==stv_g.dy)
7234 stv_g.scale=new_scale;stv_g.dy=dy;stv_g.st=st;stv_g.v=-1;set_g()}
7240 if(new_scale==stv_g.scale&&stv_g.dy==posy)
7242 stv_g.scale=new_scale;stv_g.dy=new_dy;stv_g.st=staff_tb[s.st].staffscale==1?-1:s.st;stv_g.v=s.v;set_g()}
7248 stv_g.scale=no_scale?1:staff_tb[st].staffscale;stv_g.st=st;stv_g.dy=0}
7302 return(stv_g.dy-y)/voice_tb[stv_g.v].scale
7303 return stv_g.dy-y}
7310 return posy+(stv_g.dy-y)*stv_g.scale-stv_g.dy}
7350 function out_acciac(x,y,dx,dy,up){if(up){x-=1;y+=4}else{x-=5;y-=4}
7351 out_XYAB('<path class="stroke" d="mX YlF G"/>\n',x,y,dx,-dy)}
7393 function out_tubr(x,y,dx,dy,up){var h=up?-3:3;y+=h;dx/=stv_g.scale;output+='<path class="stroke" d="m';out_sxsy(x,' ',y);output+='v'+h.toFixed(1)+'l'+dx.toFixed(1)+' '+(-dy).toFixed(1)+'v'+(-h).toFixed()+'"/>\n'}
7394 function out_tubrn(x,y,dx,dy,up,str){var sw=str.length*10,h=up?-3:3;set_font("tuplet")
7395 xy_str(x+dx/2,y+dy/2-gene.curfont.size*.5+2,str,'c')
7398 y+=6;output+='<path class="stroke" d="m';out_sxsy(x,' ',y);output+='v'+h.toFixed(1)+'m'+dx.toFixed(1)+' '+(-dy).toFixed(1)+'v'+(-h).toFixed(1)+'"/>\n'+'<path class="stroke" stroke-dasharray="'+
7399 ((dx-sw)/2).toFixed(1)+' '+sw.toFixed(1)+'" d="m';out_sxsy(x,' ',y-h);output+='l'+dx.toFixed(1)+' '+(-dy).toFixed(1)+'"/>\n'}
7401 var deco_str_style={crdc:{dx:0,dy:5,style:'font:italic 14px serif'},dacs:{dx:0,dy:3,style:'font:16px serif',anchor:' text-anchor="middle"'},fng:{dx:0,dy:1,style:'font-family:Bookman; font-size:8px',anchor:' text-anchor="middle"'},pf:{dx:0,dy:5,style:'font:italic bold 16px serif'},'@':{dx:0,dy:5,style:'font: 12px sans-serif'}}
7405 x+=a_deco.dx;y+=a_deco.dy;if(!a_deco.def){style+="\n."+name+" {"+a_deco.style+"}";a_deco.def=true}
7429 <tspan dy="-4" style="font-size:10px">va</tspan></text>\n',x-8,y);x+=12;val-=12}else{val-=5}
7435 <tspan dy="-4" style="font-size:10px">vb</tspan></text>\n',x-8,y);x+=4;val-=4}else{val-=5}
7441 <tspan dy="-4" style="font-size:10px">ma</tspan></text>\n',x-10,y);x+=20;val-=20}else{val-=5}
7447 <tspan dy="-4" style="font-size:10px">mb</tspan></text>\n',x-10,y);x+=7;val-=7}else{val-=5}
7483 function tempo_build(s){var i,j,bx,p,wh,dy,w=0,str=[]
7491 if(s.tempo_notes){dy=' dy="-.05em"'
7496 dy+'>'+
7500 dy=''}
7501 str.push('<tspan dy=".065em">=</tspan>')
7510 (gene.curfont.size*1.3).toFixed(1)+'px" dy="-.05em">'+
7514 dy='y'}}
7515 if(s.tempo_str2){if(dy)
7524 if(dy)
7525 s.tempo_dy=dy}