Lines Matching defs:stv_g

446 x+=note.shhd*stv_g.scale}else if(f_staff[dd.func]&&!cfmt.dynalign&&((de.up&&st>0)||(!de.up&&st<nstaff))){if(de.up)
462 if(de.has_val){if(dd.func!=2||stv_g.st<0)
463 out_deco_val(x,y,f,de.val/stv_g.scale,de.defl)
470 if(stv_g.g)
933 y1=bm.a*x1+bm.b-dy;x2-=x1;x2/=stv_g.scale;dy2=bm.a*x2
1071 hla.push([note.pit-18,note.shhd*stv_g.scale])}
1157 x+=s.notes[0].shhd*stv_g.scale}
1249 function x_head(s,note){return s.x+note.shhd*stv_g.scale}
1251 function draw_basic_note(x,s,m,y_tb){var i,p,yy,dotx,doty,inv,old_color=false,note=s.notes[m],staffb=staff_tb[s.st].y,y=3*(note.pit-18),shhd=note.shhd*stv_g.scale,x_note=x+shhd,y_note=y+staffb
1253 if(note.invis){}else if(s.grace){p="ghd";x_note-=4.5*stv_g.scale}else if(note.map&&note.map[0]){i=s.head;p=note.map[0][i]
1281 if(dots){dotx=x+(7.7+s.xmx)*stv_g.scale
1289 if(note.acc){x-=note.shac*stv_g.scale
1370 ((xx1-x1)/stv_g.scale).toFixed(1)+' '+
1372 ((xx2-x1)/stv_g.scale).toFixed(1)+' '+
1374 ((x2-x1)/stv_g.scale).toFixed(1)+' '+
1379 ((xx2-dx-x2)/stv_g.scale).toFixed(1)+' '+
1381 ((xx1+dx-x2)/stv_g.scale).toFixed(1)+' '+
1383 ((x1-x2)/stv_g.scale).toFixed(1)+' '+
2054 w=x2-x1;set_sscale(st);ws=w/stv_g.scale
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
7205 function set_g(){if(stv_g.started){stv_g.started=false;glout()
7207 if(stv_g.scale==1&&!stv_g.color)
7211 if(stv_g.scale!=1){if(stv_g.st<0)
7212 output+=voice_tb[stv_g.v].scale_str
7213 else if(stv_g.v<0)
7214 output+=staff_tb[stv_g.st].scale_str
7217 (posy-stv_g.dy).toFixed(1)+') scale('+stv_g.scale.toFixed(2)+')"'}
7218 if(stv_g.color){if(stv_g.scale!=1)
7219 output+=' ';output+='color="'+stv_g.color+'" fill="'+stv_g.color+'"'}
7220 output+=">\n";stv_g.started=true}
7221 function set_color(color){if(color==stv_g.color)
7223 var old_color=stv_g.color;stv_g.color=color;set_g()
7226 if(st!=stv_g.st&&stv_g.scale!=1)
7227 stv_g.scale=0;new_scale=st>=0?staff_tb[st].staffscale:1
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()}
7243 function set_dscale(st,no_scale){if(output){if(stv_g.st<0){staff_tb[0].output+=output}else if(stv_g.scale==1){staff_tb[stv_g.st].output+=output}else{staff_tb[stv_g.st].sc_out+=output}
7246 stv_g.scale=1
7248 stv_g.scale=no_scale?1:staff_tb[st].staffscale;stv_g.st=st;stv_g.dy=0}
7289 output+=')">\n';stv_g.g++}
7291 stv_g.g--;output+='</g>\n'}
7293 function sx(x){if(stv_g.g)
7295 return(x+posx)/stv_g.scale}
7297 function sy(y){if(stv_g.g)
7299 if(stv_g.scale==1)
7301 if(stv_g.v>=0)
7302 return(stv_g.dy-y)/voice_tb[stv_g.v].scale
7303 return stv_g.dy-y}
7304 Abc.prototype.sy=sy;Abc.prototype.sh=function(h){if(stv_g.st<0)
7305 return h/stv_g.scale
7308 Abc.prototype.ay=function(y){if(stv_g.st<0)
7310 return posy+(stv_g.dy-y)*stv_g.scale-stv_g.dy}
7311 Abc.prototype.ah=function(h){if(stv_g.st<0)
7313 return h*stv_g.scale}
7346 if(tgl){x+=tgl.x*stv_g.scale;y-=tgl.y
7364 d="mX YhB"/>\n',x,y+6,Math.round((d-5)/stv_g.scale),d*n+5)}
7367 dx=-dx;x+=dx*stv_g.scale
7368 if(stv_g.v>=0)
7369 slen/=voice_tb[stv_g.v].scale;gla[3].push(sx(x))
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'}
7396 dx/=stv_g.scale
8934 Abc.prototype.set_scale=set_scale;Abc.prototype.set_tsfirst=function(s){tsfirst=s};Abc.prototype.set_v_param=set_v_param;Abc.prototype.strwh=strwh;Abc.prototype.stv_g=function(){return stv_g};Abc.prototype.svg_flush=svg_flush;Abc.prototype.syntax=syntax;Abc.prototype.tunes=tunes