Lines Matching defs:ambitus
4 //ambitus.js-module to insert an ambitus at start of a voice
5 abc2svg.ambitus={do_ambitus:function(){var C=abc2svg.C,s,v,p_v,min,max,voice_tb=this.get_voice_tb()
24 if(!last_s&&this.cfmt().ambitus)
25 abc2svg.ambitus.do_ambitus.call(this)},set_fmt:function(of,cmd,param){if(cmd=="ambitus"){this.cfmt().ambitus=param
27 of(cmd,param)},set_width:function(of,s){if(s.clef_type!=undefined&&s.nhd>0){s.wl=40;s.wr=12}else{of(s)}},set_hooks:function(abc){abc.draw_symbols=abc2svg.ambitus.draw_symbols.bind(abc,abc.draw_symbols);abc.set_pitch=abc2svg.ambitus.set_pitch.bind(abc,abc.set_pitch);abc.set_format=abc2svg.ambitus.set_fmt.bind(abc,abc.set_format);abc.set_width=abc2svg.ambitus.set_width.bind(abc,abc.set_width)}}
28 abc2svg.modules.hooks.push(abc2svg.ambitus.set_hooks);abc2svg.modules.ambitus.loaded=true