Lines Matching defs:break
4 //break.js-module to handle the%%break command
5 abc2svg.break={get_break:function(parm){var C=abc2svg.C,b,c,d,sq,a=parm.split(/[ ,]/),cfmt=this.cfmt()
6 if(!cfmt.break)
7 cfmt.break=[]
9 if(!c){this.syntax(1,this.errs.bad_val,"%%break")
13 if(!c[3]){cfmt.break.push({m:c[1],t:0,sq:sq})
16 if(!d||d[2]<1){this.syntax(1,"Bad denominator in %%break")
18 cfmt.break.push({m:c[1],t:d[1]*C.BLEN/d[2],sq:sq})}},do_break:function(){var i,m,t,brk,seq,voice_tb=this.get_voice_tb()
20 for(i=0;i<cfmt.break.length;i++){brk=cfmt.break[i];m=brk.m
22 break}
27 break}}
33 break}}else{s=s.next}
35 s.soln=true}},do_pscom:function(of,text){if(text.slice(0,6)=="break ")
36 abc2svg.break.get_break.call(this,text)
39 if(this.cfmt().break)
40 abc2svg.break.do_break.call(this)},set_hooks:function(abc){abc.do_pscom=abc2svg.break.do_pscom.bind(abc,abc.do_pscom);abc.set_bar_num=abc2svg.break.set_bar_num.bind(abc,abc.set_bar_num)}}
41 abc2svg.modules.hooks.push(abc2svg.break.set_hooks);abc2svg.modules.break.loaded=true