Lines Matching defs:abc

7 var abc=this,img,cls,cfmt=abc.cfmt(),grid=cfmt.grid
23 function build_cell(cell,x,y,yl,hr){if(cell.length>1){abc.out_svg(abc2svg.grid.pl)
24 abc.out_sxsy(x-wmx/2,' ',yl)
25 abc.out_svg('l'+
27 if(cell[1]){abc.out_svg(abc2svg.grid.pl)
28 abc.out_sxsy(x-wmx/2,' ',yl+hr)
29 abc.out_svg('l'+
31 abc.set_font('gs')
32 abc.xy_str(x-wmx/3,y,cell[0])
33 abc.xy_str(x,y+hr/3,cell[1])}else{abc.set_font('gs')
34 abc.xy_str(x-wmx*.2,y+hr/4,cell[0])}
35 if(cell.length>=3){if(cell[3]){abc.out_svg(abc2svg.grid.pl)
36 abc.out_sxsy(x,' ',yl+hr/2)
37 abc.out_svg('l'+
39 abc.set_font('gs')
40 abc.xy_str(x,y-hr/3,cell[2])
41 abc.xy_str(x+wmx/3,y,cell[3])}else{abc.set_font('gs')
42 abc.xy_str(x+wmx*.2,y-hr/4,cell[2])}}}else{abc.set_font('grid')
43 abc.xy_str(x,y,cell[0])}}
77 abc.out_svg('<path class="stroke" stroke-width="1" d="\n')
79 for(i=0;i<=nr;i++){abc.out_svg('M')
80 abc.out_sxsy(x0,' ',y)
81 abc.out_svg('h'+w.toFixed(1)+'\n')
84 for(i=0;i<=nc;i++){abc.out_svg('M')
85 abc.out_sxsy(x,' ',-1)
86 abc.out_svg('v'+(hr*nr).toFixed(1)+'\n')
88 abc.out_svg('"/>\n')
92 if(bar[0]==':'){abc.out_svg('<text class="'+cls+'" x="')
93 abc.out_sxsy(x-5,'" y="',y)
94 abc.out_svg('" style="font-weight:bold;font-size:'+
99 if(bar.slice(-1)==':'){abc.out_svg('<text class="'+cls+'" x="')
100 abc.out_sxsy(x+5,'" y="',y)
101 abc.out_svg('" style="font-weight:bold;font-size:'+
104 abc.vskip(hr*nr+6)}
106 img=abc.get_img()
108 abc.param_set_font("gridfont","serif 16")
109 font=abc.get_font('grid')
114 cls=abc.font_class(font)
115 abc.param_set_font("gsfont",font.name+' '+(font.size*.7).toFixed(1))
122 abc.add_style("\n.mid {text-anchor:middle}")
123 abc.blk_flush()
125 abc.blk_flush()},output_music:function(of){var C=abc2svg.C,abc=this,tsfirst=abc.get_tsfirst(),voice_tb=abc.get_voice_tb(),grid=abc.cfmt().grid
141 w=abc.strwh(chord[beat_i])[0]
167 wmx+=abc.strwh(rep?' ':' ')[0]
206 of(cmd,parm)},set_hooks:function(abc){abc.block_gen=abc2svg.grid.block_gen.bind(abc,abc.block_gen)
207 abc.output_music=abc2svg.grid.output_music.bind(abc,abc.output_music);abc.set_format=abc2svg.grid.set_fmt.bind(abc,abc.set_format)}}