Lines Matching defs:grid2
4 //grid2.js-module to replace a voice in the music by a chord grid
5 abc2svg.grid2={do_grid:function(){var s,v,p_v,ix,cs,c_a_cs,bt,voice_tb=this.get_voice_tb()
7 if(!p_v.grid2)
25 if(s.p_v.grid2){this.set_dscale(s.st)
29 this.xy_str(s.x+an.x,12-an.font.size*.5,an.text)}}else{of(i,s,x,y)}},output_music:function(of){abc2svg.grid2.do_grid.call(this);of()},set_fmt:function(of,cmd,param){if(cmd=="grid2"){var curvoice=this.get_curvoice()
30 if(curvoice){this.set_v_param("stafflines","...");curvoice.grid2=param}
32 of(cmd,param)},set_hooks:function(abc){abc.draw_gchord=abc2svg.grid2.draw_gchord.bind(abc,abc.draw_gchord);abc.output_music=abc2svg.grid2.output_music.bind(abc,abc.output_music);abc.set_format=abc2svg.grid2.set_fmt.bind(abc,abc.set_format)}}
33 abc2svg.modules.hooks.push(abc2svg.grid2.set_hooks);abc2svg.modules.grid2.loaded=true