Lines Matching defs:chordnames
4 //abc2svg-chordnames.js-change the names of the chord symbols
5 abc2svg.chordnames={gch_build:function(of,s){var gch,i,ix,t,cfmt=this.cfmt()
6 if(s.a_gch&&cfmt.chordnames){for(ix=0;ix<s.a_gch.length;ix++){gch=s.a_gch[ix]
11 gch.text=cfmt.chordnames.Z
13 gch.text=t.replace(/[A-GZ]/g,function(c){return cfmt.chordnames[c]})
14 if(cfmt.chordnames.B=='H')
17 if(cmd=="chordnames"){parm=parm.split(',')
18 cfmt.chordnames={Z:"N.C."}
20 cfmt.chordnames['CDEFGABZ'[i]]=parm[i]
22 of(cmd,parm)},set_hooks:function(abc){abc.gch_build=abc2svg.chordnames.gch_build.bind(abc,abc.gch_build)
23 abc.set_format=abc2svg.chordnames.set_fmt.bind(abc,abc.set_format)}}
24 abc2svg.modules.hooks.push(abc2svg.chordnames.set_hooks)
25 abc2svg.modules.chordnames.loaded=true