Lines Matching refs:s
5 abc2svg.sth={recal_beam:function(bm,s){var staff_tb=this.get_staff_tb(),y=staff_tb[s.st].y,s2=bm.s2,y2=staff_tb[s2.st].y
6 if(s.sth)
7 s.ys=s.sth
9 s2.ys=s2.sth;bm.a=(s.ys+y-s2.ys-y2)/(s.xs-s2.xs);bm.b=s.ys-s.xs*bm.a+y
10 while(1){s.ys=bm.a*s.xs+bm.b-y
11 if(s.stem>0)
12 s.ymx=s.ys+2.5
14 s.ymn=s.ys-2.5;s=s.next
15 if(s==s2)
16 break}},set_sth:function(){var s,h,v,sth_a,p_voice,voice_tb=this.get_voice_tb()
21 for(s=p_voice.sym;s;s=s.next){if(s.sth){sth_a=s.sth;s.sth=null}
22 if(sth_a.length==0||s.nflags<=-2||s.stemless||!(s.beam_st||s.beam_end))
27 if(h=='|'){for(s=s.next;s;s=s.next){if(s.bar_type)
33 if(s.stem>=0){s.ys=s.y+h;s.ymx=(s.ys+2.5)|0}else{s.ys=s.y-h;s.ymn=(s.ys-2.5)|0}
34 s.sth=s.ys}}},calculate_beam:function(of,bm,s1){var done=of(bm,s1)
37 return done},new_note:function(of,grace,tp_fact){var C=abc2svg.C,s=of(grace,tp_fact),curvoice=this.get_curvoice()
38 if(curvoice.sth&&s&&s.type==C.NOTE){s.sth=curvoice.sth;curvoice.sth=null}
39 return s},set_fmt:function(of,cmd,param){if(cmd=="sth"){if(this.parse.state==2)