Lines Matching +full:cell +full:- +full:c

1 // abc2svg - ABC to SVG translator
3 // Copyright (C) 2014-2020 Jean-Francois Moine - LGPL3+
4 //grid3.js-module to insert a manual chords
8 … i,k,l,line,bl,bar,w,hr,x0,x,y,yl,cl,cell,lc='',path='<path class="stroke" stroke-width="1" d="M',…
11 cell[n]+'</text>\n'}
12 function build_cell(cell,x,y,yl,hr){var line argument
13 if(cell.length>1){line=path+
14 (x-wc/2).toFixed(1)+' '+
16 wc.toFixed(1)+' -'+hr.toFixed(1)+'"/>\n'
17 if(cell[1]){line+=path+
18 (x-wc/2).toFixed(1)+' '+
19 (yl-hr).toFixed(1)+'l'+
21 build_ch(cls+sf,x-wc/3,y,0)+
22 build_ch(cls+sf,x,y-hr*.32,1)}else{line+=build_ch(cls+sf,x-wc*.2,y-hr/4,0)}
23 if(cell.length>=3){if(cell[3]){line+=path+
25 (yl-hr/2).toFixed(1)+'l'+
35 y=3-font.size*.7
36 x0=(img.width/cfmt.scale-w)/2
43 while(1){cell=cl.shift()
44 if(!cell)
46 lc+=build_cell(cell,x,y,yl,hr)
57 y=3-font.size*.7
68 (x-5).toFixed(1)+'" y="'+y.toFixed(1)+'" style="font-weight:bold;font-size:'+
70 if(bar.slice(-1)==':')
72 (x+5).toFixed(1)+'" y="'+y.toFixed(1)+'" style="font-weight:bold;font-size:'+
82 abc.add_style("\n.mid {text-anchor:middle}")
91 i=-1
98 if(cl=='.'||cl=='-')
126 if(opt.indexOf("chord-define")>=0)
129 …pe,text:txt})}}},output_music:function(of){var ln,i,dt,ss,ntim,p_vc,s3,C=abc2svg.C,abc=this,s=abc.…
130 function add_cs(ss,ch){var s={type:C.REST,fname:ss.fname,istart:ss.istart,iend:ss.iend,v:p_vc.v,p_v…
131 if(ch!='.'&&ch!='-'){abc.set_a_gch(s,[{type:'g',text:ch,otext:ch,istart:ss.istart,iend:ss.iend,font…
151 if(ln[ln.length-1]!='|')
167 dt=(s.time-ntim)/cs.length
169 for(i=0;i<cs.length;i++){if((cs[i]!='.'&&cs[i]!='-')||!s3){while(ss.time<ntim)
175 while(s&&s.type!=C.BAR)
177 ss={type:C.BAR,bar_type:"|",fname:s.fname,istart:s.istart,iend:s.iend,v:p_vc.v,p_v:p_vc,st:0,time:s…