Lines Matching defs:capo
4 //capo.js-module to add a capo chord line
5 abc2svg.capo={gch_build:function(of,s){var t,i,gch,gch2,i2,abc=this,p_v=abc.get_curvoice(),a_gch=s.a_gch
6 if(p_v.capo&&a_gch){t=p_v.capo
14 gch2.capo=false
17 gch2.text+=" (capo: "+t.toString()+")"}
18 gch2.font=abc.get_font(abc.cfmt().capofont?"capo":"annotation")
20 gch.capo=true}
21 of(s)},set_fmt:function(of,cmd,param){if(cmd=="capo"){this.set_v_param("capo_",param)
26 this.syntax(1,"Bad fret number in %%capo")
28 p_v.capo=v
30 of(a)},set_hooks:function(abc){abc.gch_build=abc2svg.capo.gch_build.bind(abc,abc.gch_build);abc.set_format=abc2svg.capo.set_fmt.bind(abc,abc.set_format)
31 abc.set_vp=abc2svg.capo.set_vp.bind(abc,abc.set_vp)}}
32 abc2svg.modules.hooks.push(abc2svg.capo.set_hooks);abc2svg.modules.capo.loaded=true