Lines Matching defs:sy
649 function draw_measnb(){var s,st,bar_num,x,y,w,any_nb,font_size,w0,sy=cur_sy
650 for(st=0;st<=nstaff;st++){if(sy.st_print[st])
675 for(;s;s=s.ts_next){switch(s.type){case C.STAVES:sy=s.sy
676 for(st=0;st<nstaff;st++){if(sy.st_print[st])
1986 function set_staff(){var s,i,st,prev_staff,v,y,staffsep,dy,maxsep,mbot,val,p_voice,p_staff,sy=cur_sy
2005 var sy_staff_prev=sy.staves[prev_staff]
2022 dy=maxsep;y+=dy;p_staff.y=-y;prev_staff=st;while(1){sy_staff_prev=sy.staves[prev_staff]
2025 sy=sy.next}}
2044 function draw_systems(indent){var s,s2,st,x,x2,res,sy,staves_bar,bar_force,xstaff=[],stl=[],bar_bot=[],bar_height=[],ba=[],sb=[],thb=[]
2129 sy=s.sy
2131 if(x<0){if(sy.st_print[st]){xstaff[st]=staves_bar?staves_bar:(s.x-s.wl-2)
2134 if(sy.st_print[st]&&sy.staves[st].stafflines==cur_sy.staves[st].stafflines)
2138 if(sy.st_print[st])
2140 cur_sy=sy;bar_set()
2240 sy(p_st.y+d*i).toFixed(1)
4443 function set_clefs(){var s,s2,st,v,p_voice,g,new_type,new_line,p_staff,pit,staff_clef=new Array(nstaff+1),sy=cur_sy,mid=[]
4448 if(!sy.voices[v])
4450 st=sy.voices[v].st
4451 if(!sy.voices[v].second){sy.staves[st].staffnonote=p_voice.staffnonote
4453 sy.staves[st].staffscale=p_voice.staffscale
4454 if(sy.voices[v].sep)
4455 sy.staves[st].sep=sy.voices[v].sep
4456 if(sy.voices[v].maxsep)
4457 sy.staves[st].maxsep=sy.voices[v].maxsep;if(!p_voice.clef.clef_auto)
4460 if(!sy.voices[v]||sy.voices[v].second)
4462 st=sy.voices[v].st;s=p_voice.clef
4465 for(st=0;st<=sy.nstaff;st++)
4466 mid[st]=(sy.staves[st].stafflines.length-1)*3
4469 switch(s.type){case C.STAVES:sy=s.sy
4472 for(v=0;v<voice_tb.length;v++){if(!sy.voices[v])
4474 p_voice=voice_tb[v];st=sy.voices[v].st
4475 if(!sy.voices[v].second){sy.staves[st].staffnonote=p_voice.staffnonote
4477 sy.staves[st].staffscale=p_voice.staffscale
4478 if(sy.voices[v].sep)
4479 sy.staves[st].sep=sy.voices[v].sep
4480 if(sy.voices[v].maxsep)
4481 sy.staves[st].maxsep=sy.voices[v].maxsep}
4485 for(st=0;st<=sy.nstaff;st++)
4486 mid[st]=(sy.staves[st].stafflines.length-1)*3
4487 for(v=0;v<voice_tb.length;v++){if(!sy.voices[v]||sy.voices[v].second)
4489 p_voice=voice_tb[v];st=sy.voices[v].st;s2=p_voice.clef
4520 sy=cur_sy
4521 for(v=0;v<voice_tb.length;v++){if(!sy.voices[v])
4526 st=sy.voices[v].st
4537 Abc.prototype.set_pitch=function(last_s){var s,s2,g,st,delta,pitch,note,dur=C.BLEN,m=nstaff+1,staff_delta=new Int16Array(new Array(m*2)),sy=cur_sy
4579 Abc.prototype.set_stem_dir=function(){var t,u,i,st,rvoice,v,v_st,st_v,vobj,v_st_tb,st_v_tb=[],s=tsfirst,sy=cur_sy,nst=sy.nstaff
4586 sy=s.sy
4587 for(st=nst;st<=sy.nstaff;st++)
4589 nst=sy.nstaff
4600 st_v=st_v_tb[st];rvoice=sy.voices[v].range;for(i=st_v.length;--i>=0;){vobj=st_v[i]
4636 rvoice=sy.voices[v].range
4648 function set_rest_offset(){var s,s2,v,end_time,not_alone,v_s,y,ymax,ymin,shift,dots,dx,v_s_tb=[],sy=cur_sy
4652 sy=s.sy
4668 if(sy.voices[v].range<sy.voices[s.v].range){if(s2.time==s.time){if(s2.ymn<ymax){ymax=s2.ymn
4681 if(sy.voices[s2.v].range<sy.voices[s.v].range){if(s2.time==s.time){if(s2.ymn<ymax){ymax=s2.ymn
4885 function set_global(){var p_voice,v,nv=voice_tb.length,sy=cur_sy,st=sy.nstaff
4886 while(1){sy=sy.next
4887 if(!sy)
4889 if(sy.nstaff>st)
4890 st=sy.nstaff}
5112 function set_overlap(){var s,s1,s2,s3,i,i1,i2,m,sd,t,dp,d,d2,dr,dr2,dx,left1,right1,left2,right2,right3,pl,pr,sy=cur_sy
5115 sy=s.sy
5129 if(sy.voices[s1.v].range<sy.voices[s2.v].range)
5351 function set_piece(){var s,last,p_voice,st,v,nv,tmp,non_empty=[],non_empty_gl=[],sy=cur_sy
5352 function reset_staff(st){var p_staff=staff_tb[st],sy_staff=sy.staves[st]
5356 function set_brace(){var st,i,empty_fl,n=sy.staves.length
5357 for(st=0;st<n;st++){if(!(sy.staves[st].flags&(OPEN_BRACE|OPEN_BRACE2)))
5361 if(sy.staves[st].flags&(CLOSE_BRACE|CLOSE_BRACE2))
5388 nstaff=sy.nstaff
5392 switch(s.type){case C.STAVES:set_brace();sy.st_print=new Uint8Array(non_empty);sy=s.sy;while(nstaff<sy.nstaff)
5411 case C.BAR:if(s.bar_mrep||sy.staves[st].staffnonote>1)
5415 case C.NOTE:case C.REST:case C.SPACE:case C.MREST:if(sy.staves[st].staffnonote>1)
5419 if(sy.staves[st].staffnonote||s.type==C.NOTE)
5424 sy.st_print=new Uint8Array(non_empty);set_top_bot()
5486 case C.STAVES:cur_sy=s.sy
7276 function out_XYAB(str,x,y,a,b){x=sx(x);y=sy(y);output+=str.replace(/X|Y|A|B|F|G/g,function(c){switch(c){case'X':return x.toFixed(1)
7282 function g_open(x,y,rot,sx,sy){glout()
7285 if(sx){if(sy)
7286 output+=') scale('+sx.toFixed(2)+', '+sy.toFixed(2)
7297 function sy(y){if(stv_g.g)
7304 Abc.prototype.sy=sy;Abc.prototype.sh=function(h){if(stv_g.st<0)
7314 function out_sxsy(x,sep,y){x=sx(x);y=sy(y);output+=x.toFixed(1)+sep+y.toFixed(1)}
7348 gla[1].push(sy(y))
7370 gla[3].push(sy(y))
7610 function sort_all(){var s,s2,p_voice,v,time,w,wmin,ir,multi,prev,nb,ir2,v2,fl,new_sy,nv=voice_tb.length,vtb=[],vn=[],sy=cur_sy
7615 for(v=0;v<nv;v++){if(!sy.voices[v])
7617 ir=sy.voices[v].range
7629 while(1){if(new_sy&&fl){sy=new_sy;new_sy=null;multi=-1;vn=[]
7630 for(v=0;v<nv;v++){if(!sy.voices[v])
7632 ir=sy.voices[v].range
7651 if(s.type==C.STAVES){new_sy=s.sy;for(ir2=0;ir2<nv;ir2++){if(vn[ir2]==undefined)
7653 for(v2=0;v2<nv;v2++){if(!new_sy.voices[v2]||sy.voices[v2])
8216 sym_link(s);par_sy.nstaff=nstaff;new_syst();s.sy=par_sy}
8431 function goto_tune(is_K){var v,p_voice,s={type:C.STAVES,dur:0,sy:par_sy}
8931 Abc.prototype.goto_tune=goto_tune;Abc.prototype.info=function(){return info};Abc.prototype.new_block=new_block;Abc.prototype.out_arp=out_arp;Abc.prototype.out_deco_str=out_deco_str;Abc.prototype.out_deco_val=out_deco_val;Abc.prototype.out_ltr=out_ltr;Abc.prototype.param_set_font=param_set_font;Abc.prototype.parse=parse;Abc.prototype.psdeco=empty_function;Abc.prototype.psxygl=empty_function;Abc.prototype.set_cur_sy=function(sy){cur_sy=sy};Abc.prototype.set_dscale=set_dscale;Abc.prototype.set_font=set_font;Abc.prototype.set_a_gch=function(s,a){a_gch=a;csan_add(s)}