Lines Matching defs:s

5 abc2svg.clair={hl_tb:[new Int8Array([-10,-8,-6,-4,-2]),new Int8Array([-10,-9,-8,-6,-4,-2]),new Int8Array([-8,-6,-4,-2]),new Int8Array([-8,-6,-4,-2]),new Int8Array([-8,-7,-6,-4,-2]),new Int8Array([-6,-4,-2]),new Int8Array([-6,-4,-2]),new Int8Array([-6,-4,-2]),new Int8Array([-6,-5,-4,-2]),new Int8Array([-4,-2]),new Int8Array([-4,-2]),new Int8Array([-4,-2]),new Int8Array([-4,-3,-2]),new Int8Array([-2]),new Int8Array([-2]),new Int8Array([-2]),new Int8Array([-2,-1]),null,null,null,new Int8Array([1]),null,null,null,new Int8Array([3,4]),new Int8Array([4]),new Int8Array([4]),new Int8Array([4]),new Int8Array([4,5]),null,null,null,new Int8Array([7]),null,null,null,new Int8Array([9,10]),new Int8Array([10]),new Int8Array([10]),new Int8Array([10]),new Int8Array([10,11]),new Int8Array([10,11]),new Int8Array([10,12]),new Int8Array([10,12]),new Int8Array([10,12,13]),new Int8Array([10,12,13]),new Int8Array([10,12,14]),new Int8Array([10,12,14]),new Int8Array([10,12,14,15]),new Int8Array([10,12,14,15]),new Int8Array([10,12,14,16])],draw_hl:function(of,s){if(!s.p_v.clair){of(s)
7 var i,m,hl,dx=s.grace?4:[4.7,5,6,7.2,7.5][s.head]*1.4,p_st=this.get_staff_tb()[s.st]
8 for(m=0;m<=s.nhd;m++){hl=abc2svg.clair.hl_tb[s.notes[m].pit]
12 this.set_hl(p_st,hl[i],s.x,-dx,dx)}},draw_keysig:function(of,x,s){if(!s.p_v.clair){of(x,s)
14 var i,staffb=this.get_staff_tb()[s.st].y,a_tb=new Int8Array(24),sc=[0,2,4,5,7,9,11,12,14,16,17,19,21,23],bn_tb=[7,2,-3,4,-1,6,1,8,3,-2,5,0,7,2,-3],bn=bn_tb[s.k_sf+7]
15 if(!s.k_a_acc){if(s.k_sf>0){for(i=1;i<=s.k_sf;i++){a_tb[bn_tb[i]+3]=1;a_tb[bn_tb[i]+12+3]=1}
16 if(bn+sc[s.k_mode]>8)
18 for(i=7;--i>=0;){y=bn+sc[s.k_mode+i]
20 this.xygl(x,staffb+y*3,"sht");switch(s.k_mode+i){case 3:case 7:case 10:x+=4.5
21 break}}}else{for(i=s.k_sf;i<0;i++){a_tb[bn_tb[i+6]+3]=1;a_tb[bn_tb[i+6]+12+3]=1}
22 if(bn+sc[s.k_mode]>8)
24 for(i=0;i<7;i++){y=bn+sc[s.k_mode+i]
26 this.xygl(x,staffb+y*3,"flt");switch(s.k_mode+i){case 2:case 6:case 9:x+=4.5
27 break}}}}else if(s.k_a_acc.length){for(i=0;i<s.k_a_acc.length;i++){var acc=s.k_a_acc[i];j=sc[(acc.pit+3)%7];a_tb[j]=acc.acc;a_tb[j+12]=acc.acc}}},new_clef:function(s){switch(s.clef_type){case't':s.clef_line=3;s.clefpit=-2;s.clef_name="cl4"
29 case'c':s.clef_line=3;s.clefpit=6;s.clef_name="cl3"
31 case'b':s.clef_line=3;s.clefpit=14;s.clef_name="cl2"
32 break}},output_music:function(of){var s,m,mp,p_v,v,cfmt=this.cfmt(),tsfirst=this.get_tsfirst(),voice_tb=this.get_voice_tb()
118 p_v.scale=1.3;for(s=p_v.sym;s;s=s.next){if(!s.dur)
120 for(m=0;m<=s.nhd;m++){mp=s.notes[m].midi
121 if(mp){mp-=46;s.notes[m].pit=mp
122 delete s.notes[m].acc}}}}
128 var p_v,s,v,voice_tb=this.get_voice_tb(),staff_tb=this.get_staff_tb()
133 for(s=p_v.sym;s;s=s.next){if(s.clef_type)
134 abc2svg.clair.new_clef(s)}}
138 of(a)},set_width:function(of,s){if(s.k_sf&&s.p_v&&s.p_v.clair){s.wl=8;s.wr=10}else{of(s)}},set_hooks:function(abc){abc.draw_hl=abc2svg.clair.draw_hl.bind(abc,abc.draw_hl);abc.draw_keysig=abc2svg.clair.draw_keysig.bind(abc,abc.draw_keysig);abc.output_music=abc2svg.clair.output_music.bind(abc,abc.output_music);abc.set_format=abc2svg.clair.set_fmt.bind(abc,abc.set_format);abc.set_pitch=abc2svg.clair.set_pitch.bind(abc,abc.set_pitch);abc.set_vp=abc2svg.clair.set_vp.bind(abc,abc.set_vp);abc.set_width=abc2svg.clair.set_width.bind(abc,abc.set_width)}}