Lines Matching defs:v

519 function ll_deco(){var i,j,de,de2,dd,dd2,v,s,st,n_de=a_de.length
523 dd=de.dd;dd2=dd.dd_en;s=de.s;v=s.v
525 if(!de2.start&&de2.dd==dd2&&de2.s.v==v)
560 function draw_deco_staff(){var s,p_voice,y,i,v,de,dd,minmax=new Array(nstaff+1),nd=a_de.length
615 output+='m0 20v-20';output+='h'+w.toFixed(1)
645 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
774 Abc.prototype.calculate_beam=function(bm,s1){var s,s2,g,notes,nflags,st,v,two_staves,two_dir,x,y,ys,a,b,stem_err,max_stem_err,p_min,p_max,s_closest,stem_xoff,scale,visible,dy
780 notes=nflags=0;two_staves=two_dir=false;st=s1.st;v=s1.v;stem_xoff=s1.grace?GSTEM_XOFF:3.5
837 for(;s&&s.time<=s2.time;s=s.ts_next){if(s.type!=C.NOTE||s.invis||(s.st!=st&&s.v!=v)){continue}
838 x=s.v==v?s.xs:s.x;ys=a*x+b-staff_tb[s.st].y
839 if(s.v==v){stem_err=min_tb[s.nhd==0?0:1][s.nflags]
849 if(s.v>v)
854 if(s.v<v)
934 xypath(x1,y1,true);output+='l'+x2.toFixed(1)+' '+(-dy2).toFixed(1)+'v'+h.toFixed(1)+'l'+(-x2).toFixed(1)+' '+dy2.toFixed(1)+'z"/>\n'}
1022 yb=staff_tb[j].y+staff_tb[j].botbar*staff_tb[j].staffscale;h=staff_tb[i].y+staff_tb[i].topbar*staff_tb[i].staffscale-yb;xypath(x,yb);output+="v"+(-h).toFixed(1)+'"/>\n'
1166 if(s.rep_nb>2&&s.v==cur_sy.top_voice&&cfmt.measrepnb>0&&!(s.rep_nb%cfmt.measrepnb))
1451 if(k1!=k2&&k1.v==k2.v){addy=y1-a*x1
1516 function draw_sls(s,sl,snote){var k,v,i,dir,path=[],enote=sl.note,s2=enote.s
1524 default:dir=s.v!=s2.v?1:slur_direction(s,s2)
1528 if(s.v==s2.v){v=s.v}if(!cur_sy.voices[s.v]||!cur_sy.voices[s2.v]){v=s.v>s2.v?s.v:s2.v}else if(dir*(cur_sy.voices[s.v].range<=cur_sy.voices[s2.v].range?1:-1)>0)
1529 v=s.v
1531 v=s2.v
1532 if(gr1&&!(s2.grace&&s.v==s2.v&&s.time==s2.time)){do{path.push(s);s=s.next}while(s);s=gr1.next}else{path.push(s);if(s.grace)
1536 if(!s2.grace){while(s){if(s.v==v)
1546 while(1){if(s.v==v)
1838 if(s2.v==s1.v){s_next=s2
1870 function draw_sym_near(){var p_voice,p_st,s,v,st,y,g,w,i,st,dx,top,bot,ymn,output_sav=output;function set_yab(s1,s2){var y,k=realwidth/YSTEP,i=(s1.x/k)|0,j=(s2.x/k)|0,a=(s1.ys-s2.ys)/(s1.xs-s2.xs),b=s1.ys-s1.xs*a,p_st=staff_tb[s1.st]
1885 for(v=0;v<voice_tb.length;v++){var bm={},first_note=true;p_voice=voice_tb[v]
1921 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v];s=p_voice.sym
1938 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
1942 function draw_vname(indent,stl){var p_voice,n,st,v,a_p,p,y,name_type,h,h2,staff_d=[]
1947 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
1948 if(!p_voice.sym||!cur_sy.voices[v])
1950 st=cur_sy.voices[v].st
1959 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
1960 if(!p_voice.sym||!cur_sy.voices[v])
1962 st=cur_sy.voices[v].st
1986 function set_staff(){var s,i,st,prev_staff,v,y,staffsep,dy,maxsep,mbot,val,p_voice,p_staff,sy=cur_sy
1987 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
2084 if(s.v==cur_sy.top_voice)
2146 case C.STBRK:if(cur_sy.voices[s.v]&&cur_sy.voices[s.v].range==0){if(s.xmx>14){var nv=0
2229 function draw_all_sym(){var p_voice,v,n=voice_tb.length
2257 for(v=0;v<n;v++){p_voice=voice_tb[v]
2316 function set_tie_room(){var p_voice,s,s2,v,dx,y,dy
2317 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v];s=p_voice.sym
2368 9AAAAfQAAAH0AAAB9AAAAfQAAAB4AAAALQAAAhwAAAD6AAAA+v/oAcIAAAFIAAABQAAAAgoAAAIK\
2824 function get_unit(param){var v=param.toLowerCase().match(/([\d.]+)(.*)/)
2825 if(!v)
2827 v[1]=Number(v[1])
2828 switch(v[2]){case"cm":return v[1]*CM
2829 case"in":return v[1]*IN
2830 case"pt":return v[1]*.75
2831 case"px":case"":return v[1]}
2847 function set_pos(k,v){k=k.slice(0,3)
2850 set_v_param("pos",k+' '+v)}
2857 function set_v_param(k,v){k=[k+'=',v]
2871 Abc.prototype.set_format=function(cmd,param){var f,f2,v,i
2874 switch(cmd){case"aligncomposer":case"barsperstaff":case"infoline":case"measurenb":case"rbmax":case"rbmin":case"measrepnb":case"shiftunison":v=parseInt(param)
2875 if(isNaN(v)){syntax(1,"Bad integer value");break}
2876 cfmt[cmd]=v
2892 case"chordalias":v=param.split(/\s+/)
2893 if(!v.length)
2896 abc2svg.ch_alias[v[0]]=v[1]||""
2926 case"gracespace":v=param.split(/\s+/)
2928 if(isNaN(Number(v[i]))){syntax(1,errs.bad_val,"%%gracespace")
2931 cfmt[cmd][i]=Number(v[i])
2933 case"tuplets":cfmt[cmd]=param.split(/\s+/);v=cfmt[cmd][3]
2934 if(v&&(posval[v]))
2935 cfmt[cmd][3]=posval[v]
2954 case"staffwidth":v=get_unit(param)
2955 if(isNaN(v)){syntax(1,errs.bad_val,'%%'+cmd)
2957 if(v<100){syntax(1,"%%staffwidth too small")
2959 v=cfmt.pagewidth-v-cfmt.leftmargin
2960 if(v<2){syntax(1,"%%staffwidth too big")
2962 cfmt.rightmargin=v;img.chg=true
2966 case"titletrim":v=Number(param)
2967 if(isNaN(v))
2970 cfmt[cmd]=v
3101 case'v':dst+=c2+"\u030c"
3538 function set_float(){var p_voice,st,staff_chg,v,s,s1,up,down
3539 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
3555 for(s1=s.ts_prev;s1;s1=s1.ts_prev){if(s1.st!=st||s1.v==s.v)
3566 for(s1=s.ts_next;s1;s1=s1.ts_next){if(s1.st!=st+1||s1.v==s.v)
3867 function _bar(s){return{type:C.BAR,bar_type:"|",fname:s.fname,istart:s.istart,iend:s.iend,v:s.v,p_v:s.p_v,st:s.st,dur:0,nhd:0,notes:[{pit:s.notes?s.notes[0].pit:22}],prev:s}}
3902 stup=stup.ts_prev}}else if(stup&&stup.v==s2.v){set_sp_tup(stup,s2)
3928 function set_repeat(s){var s2,s3,i,j,dur,n=s.repeat_n,k=s.repeat_k,st=s.st,v=s.v
3954 if(s2.v==v&&s2.dur)
3959 s.head=C.SQUARE;for(s=s2;s;s=s.ts_next){if(s.st==st&&s.v==v&&s.dur)
3985 if(s2.type==C.BAR){if(s2.v==v)
3996 if(s2.type==C.BAR){if(s2.v==v)
4008 if(s2.type==C.BAR){if(s2.v==v)
4053 while(1){if(s.type!=C.BAR||s.v>s2.v)
4089 if(s1.v==s2.v)
4338 while(s3&&s3.v<s.v&&s3.type==C.BAR)
4365 while(s3&&s3.v<s.v){s3=s3.ts_next
4433 if(s2.type==C.BAR&&s2.v==s.v){s3=s2.bar_type[0]!=':'?s2:s2.next
4443 function set_clefs(){var s,s2,st,v,p_voice,g,new_type,new_line,p_staff,pit,staff_clef=new Array(nstaff+1),sy=cur_sy,mid=[]
4447 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
4448 if(!sy.voices[v])
4450 st=sy.voices[v].st
4451 if(!sy.voices[v].second){sy.staves[st].staffnonote=p_voice.staffnonote
4454 if(sy.voices[v].sep)
4455 sy.staves[st].sep=sy.voices[v].sep
4456 if(sy.voices[v].maxsep)
4457 sy.staves[st].maxsep=sy.voices[v].maxsep;if(!p_voice.clef.clef_auto)
4459 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
4460 if(!sy.voices[v]||sy.voices[v].second)
4462 st=sy.voices[v].st;s=p_voice.clef
4472 for(v=0;v<voice_tb.length;v++){if(!sy.voices[v])
4474 p_voice=voice_tb[v];st=sy.voices[v].st
4475 if(!sy.voices[v].second){sy.staves[st].staffnonote=p_voice.staffnonote
4478 if(sy.voices[v].sep)
4479 sy.staves[st].sep=sy.voices[v].sep
4480 if(sy.voices[v].maxsep)
4481 sy.staves[st].maxsep=sy.voices[v].maxsep}
4487 for(v=0;v<voice_tb.length;v++){if(!sy.voices[v]||sy.voices[v].second)
4489 p_voice=voice_tb[v];st=sy.voices[v].st;s2=p_voice.clef
4498 while(g&&g.time==s.time&&(g.v!=v||g.st!=st))
4501 while(g&&(g.v!=v||g.st!=st))
4521 for(v=0;v<voice_tb.length;v++){if(!sy.voices[v])
4523 s2=voice_tb[v].sym
4526 st=sy.voices[v].st
4579 Abc.prototype.set_stem_dir=function(){var t,u,i,st,rvoice,v,v_st,st_v,vobj,v_st_tb,st_v_tb=[],s=tsfirst,sy=cur_sy,nst=sy.nstaff
4594 v=u.v;v_st=v_st_tb[v]
4596 v_st_tb[v]=v_st}
4600 st_v=st_v_tb[st];rvoice=sy.voices[v].range;for(i=st_v.length;--i>=0;){vobj=st_v[i]
4601 if(vobj.v==rvoice)
4603 if(i<0){vobj={v:rvoice,ymx:0,ymn:24}
4604 for(i=0;i<st_v.length;i++){if(rvoice<st_v[i].v){st_v.splice(i,0,vobj)
4627 st=s.st;v=s.v;v_st=v_st_tb[v];st_v=st_v_tb[st]
4634 s.multi=st==voice_tb[v].st?-1:1
4636 rvoice=sy.voices[v].range
4637 for(i=st_v.length;--i>=0;){if(st_v[i].v==rvoice)
4648 function set_rest_offset(){var s,s2,v,end_time,not_alone,v_s,y,ymax,ymin,shift,dots,dx,v_s_tb=[],sy=cur_sy
4655 v_s=v_s_tb[s.v]
4657 v_s_tb[s.v]=v_s}
4662 for(v=0;v<=v_s_tb.length;v++){v_s=v_s_tb[v]
4663 if(!v_s||!v_s.s||v_s.st!=s.st||v==s.v)
4668 if(sy.voices[v].range<sy.voices[s.v].range){if(s2.time==s.time){if(s2.ymn<ymax){ymax=s2.ymn
4681 if(sy.voices[s2.v].range<sy.voices[s.v].range){if(s2.time==s.time){if(s2.ymn<ymax){ymax=s2.ymn
4707 s.v=p_v.v
4714 function init_music_line(){var p_voice,s,s1,s2,s3,last_s,v,st,shr,shrmx,shl,shlp,p_st,top,nv=voice_tb.length
4715 for(v=0;v<nv;v++){if(!cur_sy.voices[v])
4717 p_voice=voice_tb[v];p_voice.second=cur_sy.voices[v].second;p_voice.last_sym=p_voice.sym;st=cur_sy.voices[v].st
4735 for(v=0;v<nv;v++){p_voice=voice_tb[v]
4736 if(!cur_sy.voices[v]||(cur_sy.voices[v].second&&!p_voice.bar_start))
4738 st=cur_sy.voices[v].st
4741 s=clone(staff_tb[st].clef);s.v=v;s.p_v=p_voice;s.st=st;s.time=tsfirst.time;s.prev=null;s.next=p_voice.sym
4753 delete s.clef_small;s.second=cur_sy.voices[v].second
4756 for(v=0;v<nv;v++){if(!cur_sy.voices[v]||cur_sy.voices[v].second||!cur_sy.st_print[cur_sy.voices[v].st])
4758 p_voice=voice_tb[v]
4764 if(insert_meter&1){for(v=0;v<nv;v++){p_voice=voice_tb[v];s2=p_voice.meter
4765 if(!cur_sy.voices[v]||cur_sy.voices[v].second||!cur_sy.st_print[cur_sy.voices[v].st]||!s2.a_meter.length)
4770 for(v=0;v<nv;v++){p_voice=voice_tb[v]
4774 for(v=0;v<nv;v++){p_voice=voice_tb[v];s2=p_voice.bar_start;p_voice.bar_start=null
4775 if(last_s&&last_s.v==v){for(s3=last_s;s3;s3=s3.ts_next){if(s3.v!=v)
4784 if(!cur_sy.voices[v]||!cur_sy.st_print[cur_sy.voices[v].st])
4885 function set_global(){var p_voice,v,nv=voice_tb.length,sy=cur_sy,st=sy.nstaff
4892 for(v=0;v<nv;v++){p_voice=voice_tb[v];set_words(p_voice)
4900 function set_indent(first){var st,v,w,p_voice,p,i,j,font,nv=voice_tb.length,maxw=0
4901 for(v=0;v<nv;v++){p_voice=voice_tb[v]
4902 if(!cur_sy.voices[v])
4904 st=cur_sy.voices[v].st
5129 if(sy.voices[s1.v].range<sy.voices[s2.v].range)
5351 function set_piece(){var s,last,p_voice,st,v,nv,tmp,non_empty=[],non_empty_gl=[],sy=cur_sy
5430 for(v=0;v<nv;v++){p_voice=voice_tb[v]
5431 if(p_voice.sym&&p_voice.sym.time<=tsnext.time){for(s=tsnext.ts_prev;s;s=s.ts_prev){if(s.v==v){p_voice.s_next=s.next;s.next=null;break}}
5469 function set_sym_line(){var p_v,s,v=voice_tb.length
5470 while(--v>=0){p_v=voice_tb[v]
5496 Abc.prototype.output_music=function(){var v,lwidth,indent,line_height,ts1st,tslast,p_v,nv=voice_tb.length
5503 for(v=0;v<nv;v++)
5504 set_beams(voice_tb[v].sym);self.set_stems()
5507 if(cfmt.singleline){v=get_ck_width();lwidth=indent+v[0]+v[1]+get_width(tsfirst,null)[0];img.width=lwidth*cfmt.scale+img.lm+img.rm+2}else{lwidth=get_lwidth();cut_tune(lwidth,indent)}
5509 v=nv
5510 while(--v>=0)
5511 voice_tb[v].osym=voice_tb[v].sym
5532 v=nv
5533 while(--v>=0){p_v=voice_tb[v]
5541 function new_clef(clef_def){var s={type:C.CLEF,clef_line:2,clef_type:"t",v:curvoice.v,p_v:curvoice,time:curvoice.time,dur:0},i=1
5602 function set_user(parm){var k,c,v,a=parm.match(/(.)[=\s]*(\[I:.+\]|".+"|!.+!)$/)
5605 c=a[1];v=a[2]
5618 switch(v){case"!beambreak!":v=" "
5620 case"!ignore!":v="i"
5622 case"!nil!":case"!none!":v="d"
5624 char_tb[k]=v}
5849 function new_meter(p){var s={type:C.METER,dur:0,a_meter:[]},meter={},val,v,m1=0,m2,i=0,j,wmeasure,in_parenth;set_ref(s)
5913 for(v=0;v<voice_tb.length;v++){voice_tb[v].meter=s;voice_tb[v].wmeasure=wmeasure}}}else{curvoice.wmeasure=wmeasure
5999 curvoice.ignore=!par_sy.voices[curvoice.v]
6140 function parse_staves(p){var v,vid,vids={},a_vf=[],err=false,flags=0,brace=0,bracket=0,parenth=0,flags_st=0,e,a=p.match(/[^[\]|{}()*+\s]+|[^\s]/g)
6554 if(!par_sy.voices[curvoice.v]){curvoice.second=true
6555 par_sy.voices[curvoice.v]={st:curv.st,second:true,range:curvoice.v}}
6608 if(par_sy.voices[curvoice.v]&&par_sy.voices[curvoice.v].range==0)
6764 if(char_tb['\n'.charCodeAt(0)]=='\n'&&par_sy.voices[curvoice.v]&&par_sy.voices[curvoice.v].range==0)
7167 \n.box{outline: 1px solid black;outline-offset: 1px}',font_style='',posx=cfmt.leftmargin/cfmt.scale,posy=0,img={width:cfmt.pagewidth,lm:cfmt.leftmargin,rm:cfmt.rightmargin},defined_glyph={},defs='',fulldefs='',stv_g={scale:1,dy:0,st:-1,v:-1,g:0},blkdiv=0
7212 output+=voice_tb[stv_g.v].scale_str
7213 else if(stv_g.v<0)
7234 stv_g.scale=new_scale;stv_g.dy=dy;stv_g.st=st;stv_g.v=-1;set_g()}
7242 stv_g.scale=new_scale;stv_g.dy=new_dy;stv_g.st=staff_tb[s.st].staffscale==1?-1:s.st;stv_g.v=s.v;set_g()}
7301 if(stv_g.v>=0)
7302 return(stv_g.dy-y)/voice_tb[stv_g.v].scale
7322 function glout(){var e,v=[]
7326 v.push(e.toFixed(1))}
7327 output+='<text x="'+v.join(',')
7328 v=[]
7332 v.push(e.toFixed(1))}
7333 output+='"\ny="'+v.join(',')
7342 output+='M'+e.toFixed(1)+' '+gla[3].shift().toFixed(1)+'v'+gla[3].shift().toFixed(1)}
7356 v'+h.toFixed(1)+'\n\
7368 if(stv_g.v>=0)
7369 slen/=voice_tb[stv_g.v].scale;gla[3].push(sx(x))
7393 function out_tubr(x,y,dx,dy,up){var h=up?-3:3;y+=h;dx/=stv_g.scale;output+='<path class="stroke" d="m';out_sxsy(x,' ',y);output+='v'+h.toFixed(1)+'l'+dx.toFixed(1)+' '+(-dy).toFixed(1)+'v'+(-h).toFixed()+'"/>\n'}
7398 y+=6;output+='<path class="stroke" d="m';out_sxsy(x,' ',y);output+='v'+h.toFixed(1)+'m'+dx.toFixed(1)+' '+(-dy).toFixed(1)+'v'+(-h).toFixed(1)+'"/>\n'+'<path class="stroke" stroke-dasharray="'+
7595 s.v=curvoice.v;s.p_v=curvoice;s.st=curvoice.cst;s.time=curvoice.time
7610 function sort_all(){var s,s2,p_voice,v,time,w,wmin,ir,multi,prev,nb,ir2,v2,fl,new_sy,nv=voice_tb.length,vtb=[],vn=[],sy=cur_sy
7611 for(v=0;v<nv;v++)
7612 vtb.push(voice_tb[v].sym)
7615 for(v=0;v<nv;v++){if(!sy.voices[v])
7617 ir=sy.voices[v].range
7620 vn[ir]=v
7622 v=vn[ir2]
7623 tsfirst=prev=vtb[v]
7626 vtb[v]=tsfirst.next
7630 for(v=0;v<nv;v++){if(!sy.voices[v])
7632 ir=sy.voices[v].range
7633 vn[ir]=v;multi++}}
7635 for(ir=0;ir<nv;ir++){v=vn[ir]
7636 if(v==undefined)
7638 s=vtb[v]
7645 for(ir=0;ir<nv;ir++){v=vn[ir]
7646 if(v==undefined)
7648 s=vtb[v]
7660 vtb[v]=s.next}
7662 function voice_adj(sys_chg){var p_voice,s,s2,v
7675 if(s&&staves_found<=0){v=par_sy.top_voice;p_voice=voice_tb[v];if(p_voice.sym&&p_voice.sym.type!=C.TEMPO&&(!p_voice.sym.next||p_voice.sym.next.type!=C.TEMPO)){s=clone(s);s.v=v;s.p_v=p_voice;s.st=p_voice.st;s.time=0;s.prev=p_voice.sym
7680 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
7717 function new_syst(init){var st,v,sy_new={voices:[],staves:[],top_voice:0}
7720 for(v=0;v<voice_tb.length;v++){if(par_sy.voices[v]){st=par_sy.voices[v].st
7721 var sy_staff=par_sy.staves[st],p_voice=voice_tb[v]
7954 par_sy.voices[curvoice.v].maxsep=val
8059 par_sy.voices[curvoice.v].sep=val
8144 function generate(in_mc){var s,v,p_voice;if(parse.tp){syntax(1,"No end of tuplet")
8168 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v];p_voice.time=0;p_voice.sym=p_voice.last_sym=null;delete p_voice.have_ly;p_voice.sls=[];p_voice.hy_st=0;delete p_voice.bar_start}
8202 function get_staves(cmd,parm){var s,p_voice,p_voice2,i,flags,v,vid,st,range,a_vf=parse_staves(parm)
8207 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
8213 par_sy.voices=[]}else{for(v=0;v<par_sy.voices.length;v++){if(par_sy.voices[v]){curvoice=voice_tb[v]
8218 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
8223 for(i=0;i<a_vf.length;i++){vid=a_vf[i][0];p_voice=new_voice(vid);p_voice.time=maxtime;v=p_voice.v
8224 a_vf[i][0]=p_voice;while(1){par_sy.voices[v]={}
8225 par_sy.voices[v].range=range++
8229 v=p_voice.v}}
8230 par_sy.top_voice=a_vf[0][0].v
8247 v=p_voice.v;p_voice.st=p_voice.cst=par_sy.voices[v].st=st;par_sy.staves[st].flags|=flags
8249 while(i<a_vf.length-1){p_voice=a_vf[++i][0];v=p_voice.v
8252 p_voice.st=p_voice.cst=par_sy.voices[v].st=st
8261 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
8262 if(!par_sy.voices[v])
8265 while(p_voice2){i=p_voice2.v
8268 par_sy.voices[v].second=p_voice.second;st=p_voice.st
8272 function clone_voice(id){var v,p_voice
8273 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v]
8276 p_voice=clone(curvoice);p_voice.v=voice_tb.length;p_voice.id=id;p_voice.sym=p_voice.last_sym=null;p_voice.key=clone(curvoice.key)
8289 function get_vover(type){var p_voice2,p_voice3,range,s,time,v,v2,v3,line=parse.line
8307 if(!p_voice2){p_voice2=clone_voice(curvoice.id+'o');curvoice.voice_down=p_voice2;p_voice2.time=0;p_voice2.second=true;v2=p_voice2.v;par_sy.voices[v2]={st:curvoice.st,second:true}
8308 range=par_sy.voices[curvoice.v].range
8309 for(v=0;v<par_sy.voices.length;v++){if(par_sy.voices[v]&&par_sy.voices[v].range>range)
8310 par_sy.voices[v].range++}
8344 function get_key(parm){var v,p_voice,s,transp,sndtran,a=new_key(parm),s_key=a[0];a=a[1]
8347 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v];p_voice.key=clone(s_key);p_voice.okey=clone(s_key);p_voice.ckey=clone(s_key)}
8378 function new_voice(id){var p_voice,v,p_v_sav,n=voice_tb.length
8383 for(v=0;v<n;v++){p_voice=voice_tb[v]
8386 p_voice={v:v,id:id,time:0,new:true,pos:{dyn:0,gch:0,gst:0,orn:0,stm:0,voc:0,vol:0},scale:1,ulen:glovar.ulen,dur_fact:1,key:clone(parse.ckey),ckey:clone(parse.ckey),okey:clone(parse.ckey),meter:clone(glovar.meter),wmeasure:glovar.meter.wmeasure,staffnonote:1,clef:{type:C.CLEF,clef_auto:true,clef_type:"a",time:0},acc:[],sls:[],hy_st:0}
8400 function get_voice(parm){var v,vs,a=info_split(parm),vid=a.shift()
8426 goto_tune();set_transp();v=curvoice.v
8428 if(staves_found<0){curvoice.st=curvoice.cst=++nstaff;par_sy.nstaff=nstaff;par_sy.voices[v]={st:nstaff,range:v}
8430 if(!curvoice.filtered&&par_sy.voices[v]&&(parse.voice_opts||parse.tune_v_opts)){curvoice.filtered=true;voice_filter()}}
8431 function goto_tune(is_K){var v,p_voice,s={type:C.STAVES,dur:0,sy:par_sy}
8437 for(v=0;v<voice_tb.length;v++){p_voice=voice_tb[v];p_voice.ulen=glovar.ulen
8440 for(v=0;v<=nstaff;v++){p_voice=voice_tb[v];delete p_voice.new;p_voice.st=p_voice.cst=v;par_sy.voices[v]={st:v,range:v}
8441 par_sy.staves[v]={stafflines:p_voice.stafflines||"|||||",staffscale:1}}
8645 function draw_all_lyrics(){var p_voice,s,v,nly,i,x,y,w,a_ly,ly,lyst_tb=new Array(nstaff+1),nv=voice_tb.length,h_tb=new Array(nv),nly_tb=new Array(nv),above_tb=new Array(nv),rv_tb=new Array(nv),top=0,bot=0,st=-1
8646 for(v=0;v<nv;v++){p_voice=voice_tb[v]
8651 if(p_voice.have_ly){if(!h_tb[v])
8652 h_tb[v]=[]
8666 h_tb[v][nly++]=0
8670 if(!h_tb[v][i]||ly.font.size>h_tb[v][i])
8671 h_tb[v][i]=ly.font.size}}}else{y=y_get(p_voice.st,1,0,realwidth)
8678 lyst_tb[st].top=top;lyst_tb[st].bot=bot;nly_tb[v]=nly
8682 above_tb[v]=p_voice.pos.voc==C.SL_ABOVE
8683 else if(voice_tb[v+1]&&voice_tb[v+1].st==st&&voice_tb[v+1].have_ly)
8684 above_tb[v]=true
8686 above_tb[v]=false
8687 if(above_tb[v])
8692 for(v=0;v<nv;v++){p_voice=voice_tb[v]
8697 if(above_tb[v]){rv_tb[i++]=v
8700 if(nly_tb[v]>0)
8701 lyst_tb[st].bot=draw_lyrics(p_voice,nly_tb[v],h_tb[v],lyst_tb[st].bot,1)}
8702 while(--i>=0){v=rv_tb[i];p_voice=voice_tb[v];st=p_voice.st;set_dscale(st,true);lyst_tb[st].top=draw_lyrics(p_voice,nly_tb[v],h_tb[v],lyst_tb[st].top,-1)}
8703 for(v=0;v<nv;v++){p_voice=voice_tb[v]
8709 if(nly_tb[p_voice.v]>0){for(s=p_voice.sym.next;s;s=s.next){if(s.a_ly){y_set(st,0,s.x-2,10,bot)}}}else{y_set(st,0,0,realwidth,bot)}}}}