Lines Matching +defs:p +defs:e

16 abc2svg.pab40=function(p,a){p+=19
17 var b40=((p/7)|0)*40+abc2svg.p_b40[p%7]
102 var decos={dot:"0 stc 5 1 1",tenuto:"0 emb 5 3 3",slide:"1 sld 3 7 0",arpeggio:"2 arp 12 10 0",roll:"3 roll 7 6 6",fermata:"3 hld 10 7 7",emphasis:"3 accent 7 4 4",lowermordent:"3 lmrd 10 5 5",coda:"3 coda 24 10 10",uppermordent:"3 umrd 10 5 5",segno:"3 sgno 22 8 8",trill:"3 trl 14 5 5",upbow:"3 upb 10 5 5",downbow:"3 dnb 9 5 5",gmark:"3 grm 6 5 5",wedge:"0 wedge 7 3 3",turnx:"3 turnx 10 0 5",breath:"3 brth 0 1 20",longphrase:"3 lphr 0 1 1",mediumphrase:"3 mphr 0 1 1",shortphrase:"3 sphr 0 1 1",invertedfermata:"3 hld 10 7 7",invertedturn:"3 turn 10 0 5",invertedturnx:"3 turnx 10 0 5","0":"3 fng 8 3 3 0","1":"3 fng 8 3 3 1","2":"3 fng 8 3 3 2","3":"3 fng 8 3 3 3","4":"3 fng 8 3 3 4","5":"3 fng 8 3 3 5",plus:"3 dplus 7 3 3","+":"3 dplus 7 3 3",accent:"3 accent 7 4 4",">":"3 accent 7 4 4",marcato:"3 marcato 9 3 3","^":"3 marcato 9 3 3",mordent:"3 lmrd 10 5 5",open:"3 opend 10 3 3",snap:"3 snap 14 3 3",thumb:"3 thumb 14 3 3",dacapo:"3 dacs 16 20 20 Da Capo",dacoda:"3 dacs 16 20 20 Da Coda","D.C.":"3 dcap 16 10 10","D.S.":"3 dsgn 16 10 10","D.C.alcoda":"3 dacs 16 38 38 D.C. al Coda","D.S.alcoda":"3 dacs 16 38 38 D.S. al Coda","D.C.alfine":"3 dacs 16 38 38 D.C. al Fine","D.S.alfine":"3 dacs 16 38 38 D.S. al Fine",fine:"3 dacs 16 10 10 Fine",turn:"3 turn 10 0 5","trill(":"3 ltr 8 4 0","trill)":"3 ltr 8 4 0",f:"6 f 18 1 7",ff:"6 ff 18 2 10",fff:"6 fff 18 4 13",ffff:"6 ffff 18 6 16",mf:"6 mf 18 6 13",mp:"6 mp 18 6 16",p:"6 p 18 2 8",pp:"6 pp 18 5 14",ppp:"6 ppp 18 8 20",pppp:"6 pppp 18 10 25",pralltriller:"3 umrd 10 5 5",sfz:"6 sfz 18 4 10",ped:"4 ped 18 6 10","ped-up":"4 pedoff 12 4 4","ped(":"4 lped 20 5 5","ped)":"4 lped 20 5 5","crescendo(":"6 cresc 18 0 0","crescendo)":"6 cresc 18 0 0","<(":"6 cresc 18 0 0","<)":"6 cresc 18 0 0","diminuendo(":"6 dim 18 0 0","diminuendo)":"6 dim 18 0 0",">(":"6 dim 18 0 0",">)":"6 dim 18 0 0","-(":"8 gliss 0 0 0","-)":"8 gliss 0 0 0","~(":"8 glisq 0 0 0","~)":"8 glisq 0 0 0","8va(":"3 8va 10 0 0","8va)":"3 8va 10 0 0","8vb(":"4 8vb 10 0 0","8vb)":"4 8vb 10 0 0","15ma(":"3 15ma 10 0 0","15ma)":"3 15ma 10 0 0","15mb(":"4 15mb 10 0 0","15mb)":"4 15mb 10 0 0",invisible:"32 0 0 0 0",beamon:"33 0 0 0 0",trem1:"34 0 0 0 0",trem2:"34 0 0 0 0",trem3:"34 0 0 0 0",trem4:"34 0 0 0 0",xstem:"35 0 0 0 0",beambr1:"36 0 0 0 0",beambr2:"36 0 0 0 0",rbstop:"37 0 0 0 0","/":"38 0 0 6 6","//":"38 0 0 6 6","///":"38 0 0 6 6","beam-accel":"39 0 0 0 0","beam-rall":"39 0 0 0 0",stemless:"40 0 0 0 0",rbend:"41 0 0 0 0",editorial:"42 0 0 0 0","sacc-1":"3 sacc-1 6,4 4 4",sacc3:"3 sacc3 6,5 4 4",sacc1:"3 sacc1 6,4 4 4",courtesy:"43 0 0 0 0","cacc-1":"3 cacc-1 0 0 0",cacc3:"3 cacc3 0 0 0",cacc1:"3 cacc1 0 0 0"},f_near=[true,true,true],f_note=[false,false,false,true,true,true,false,false,true],f_staff=[false,false,false,false,false,false,true,true]
561 function draw_repbra(p_voice){var s,s1,x,y,y2,i,p,w,wh,first_repeat;y=staff_tb[p_voice.st].topbar+25
1251 function draw_basic_note(x,s,m,y_tb){var i,p,yy,dotx,doty,inv,old_color=false,note=s.notes[m],staffb=staff_tb[s.st].y,y=3*(note.pit-18),shhd=note.shhd*stv_g.scale,x_note=x+shhd,y_note=y+staffb
1253 if(note.invis){}else if(s.grace){p="ghd";x_note-=4.5*stv_g.scale}else if(note.map&&note.map[0]){i=s.head;p=note.map[0][i]
1254 if(!p)
1255 p=note.map[0][note.map[0].length-1]
1256 i=p.indexOf('/')
1258 p=p.slice(0,i)
1260 p=p.slice(i+1)}}else if(s.type==C.CUSTOS){p="custos"}else{switch(head){case C.OVAL:p="HD"
1262 case C.OVALBARS:if(s.head!=C.SQUARE){p="HDD"
1264 case C.SQUARE:if(nflags>-4){p="breve"}else{p="longa"
1270 case C.EMPTY:p="Hd"
1272 default:p="hd"
1276 if(p){if(inv){g_open(x_note,y_note,0,1,-1);x_note=y_note=0}
1277 if(!self.psxygl(x_note,y_note,p))
1278 xygl(x_note,y_note,p)
1641 xy_str(xm,ym,tp.p.toString(),'c')
1643 xy_str(xm,ym,tp.p+':'+tp.q,'c')
1728 out_tubrn(x1,y1,x2-x1,y2-y1,dir==C.SL_ABOVE,tp.f[2]==0?tp.p.toString():tp.p+':'+tp.q);if(dir==C.SL_ABOVE)
1732 function draw_note_ties(not1,job){var m,x1,x2,s,y,h,time,not2=not1.tie_n,p=job==2?not1.pit:not2.pit,dir=(not1.tie_ty&0x07)==C.SL_ABOVE?1:-1,s1=not1.s,st=s1.st,s2=not2.s,x2=s2.x,sh=not1.shhd
1736 if(dir>0){if(m<s1.nhd&&p+1==s1.notes[m+1].pit)
1738 sh=s1.notes[m+1].shhd}else{if(m>0&&p==s1.notes[m-1].pit+1)
1746 if(dir>0){if(m<s2.nhd&&p+1==s2.notes[m+1].pit)
1748 sh=s2.notes[m+1].shhd}else{if(m>0&&p==s2.notes[m-1].pit+1)
1752 switch(job){case 0:p=(not1.pit&1)?not1.pit:not2.pit
1758 p=not2.pit
1776 y=staff_tb[st].y+3*(p-18)+dir
1942 function draw_vname(indent,stl){var p_voice,n,st,v,a_p,p,y,name_type,h,h2,staff_d=[]
1966 delete p_voice.new_name;p=name_type==2?p_voice.nm:p_voice.snm
1967 if(!p)
1970 staff_d[st]=p
1972 staff_d[st]+="\n"+p}
1985 for(n=0;n<a_p.length;n++){p=a_p[n];xy_str(indent,y,p,"c");y-=h}}}
2768 function param_set_font(xxxfont,p){var font,n,a
2774 cfmt[xxxfont]=font;a=p.match(/\s+(no)?box(\s|$)/)
2778 p=p.replace(a[0],a[2])}
2779 a=p.match(/\s+padding=([\d.]+)(\s|$)/)
2781 p=p.replace(a[0],a[2])}
2782 a=p.match(/\s+class=(.*?)(\s|$)/)
2783 if(a){font.class=a[1];p=p.replace(a[0],a[2])}
2784 a=p.match(/\s+wadj=(.*?)(\s|$)/)
2794 p=p.replace(a[0],a[2])}
2795 a=p.match(/\s+([0-9.]+|\*)$/)
2798 p=p.replace(a[0],"")}
2799 a=p.match(/[- ]?[nN]ormal/)
2801 p=p.replace(a[0],'')}
2802 a=p.match(/[- ]?[bB]old/)
2804 p=p.replace(a[0],'')}
2805 a=p.match(/[- ]?[iI]talic/)
2807 p=p.replace(a[0],'')}
2808 a=p.match(/[- ]?[oO]blique/)
2810 p=p.replace(a[0],'')}
2815 switch(p){case"":case"*":return
2816 case"Times-Roman":case"Times":p="serif";break
2817 case"Helvetica":p="sans-serif";break
2818 case"Courier":p="monospace";break}
2819 if(p[3]=='('){font.src=p
2822 p='ft'+font.fid}
2823 font.name=p}
4535 var delta_tb={t:0-2*2,c:6-3*2,b:12-4*2,p:0-3*2}
4900 function set_indent(first){var st,v,w,p_voice,p,i,j,font,nv=voice_tb.length,maxw=0
4905 p=((first||p_voice.new_name)&&p_voice.nm)?p_voice.nm:p_voice.snm
4906 if(!p)
4910 while(1){j=p.indexOf("\n",i)
4912 w=strwh(p.slice(i))
4914 w=strwh(p.slice(i,j))
5556 case't':if(clef_def[1]=='e'){s.clef_type="c";s.clef_line=4
5560 case'p':i=4
5561 case'P':s.clef_type="p";s.clef_line=3;curvoice.key.k_sf=0;curvoice.ckey.k_sf=0
5794 if(sf<-1){switch(param[0]){case'H':if(param[1].toLowerCase()!='p'){syntax(1,"Unknown bagpipe-like key")
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)
5850 if(p.indexOf("none")==0){i=4;wmeasure=1}else{wmeasure=0
5851 while(i<p.length){if(p[i]=='=')
5853 switch(p[i]){case'C':meter.top=p[i++]
5856 case'c':case'o':meter.top=p[i++]
5857 if(!m1){if(p[i-1]=='c'){m1=2;m2=4}else{m1=3;m2=4}
5858 switch(p[i]){case'|':m2/=2
5863 case'.':case'|':m1=0;meter.top=p[i++]
5865 case'(':if(p[i+1]=='('){in_parenth=true;meter.top=p[i++];s.a_meter.push(meter);meter={}}
5867 while(j<p.length){if(p[j]==')'||p[j]=='/')
5870 if(p[j]==')'&&p[j+1]=='/'){i++
5872 case')':in_parenth=p[i]=='(';meter.top=p[i++];s.a_meter.push(meter);meter={}
5874 default:if(p[i]<='0'||p[i]>'9'){syntax(1,"Bad char '$1' in M:",p[i])
5876 m2=2;meter.top=p[i++]
5877 for(;;){while(p[i]>='0'&&p[i]<='9')
5878 meter.top+=p[i++]
5879 if(p[i]==')'){if(p[i+1]!='/')
5882 if(p[i]=='/'){i++;if(p[i]<='0'||p[i]>'9'){syntax(1,"Bad char '$1' in M:",p[i])
5884 meter.bot=p[i++]
5885 while(p[i]>='0'&&p[i]<='9')
5886 meter.bot+=p[i++]
5888 if(p[i]!=' '&&p[i]!='+')
5890 if(i>=p.length||p[i+1]=='(')
5892 meter.top+=p[i++]}
5898 while(p[i]==' ')
5900 if(p[i]=='+'){meter.top=p[i++];s.a_meter.push(meter);meter={}}}}
5901 if(p[i]=='='){val=p.substring(++i).match(/^(\d+)\/(\d+)$/)
5902 if(!val){syntax(1,"Bad duration '$1' in M:",p.substring(i))
5908 if(parse.state!=3){info.M=p;glovar.meter=s
5916 function get_nd(p){var n,d,nd=p.match(/(\d+)\/(\d+)/)
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)
6143 while(1){e=a.shift()
6144 if(!e)
6146 switch(e){case'[':if(parenth||brace+bracket>=2){syntax(1,errs.misplaced,'[');err=true
6165 default:vid=e
6166 while(1){e=a.shift()
6167 if(!e)
6169 switch(e){case']':if(!(flags_st&OPEN_BRACKET)){syntax(1,errs.misplaced,']');err=true
6187 if(!e)
6189 a.unshift(e)
6291 function pit2mid(pit,acc){var p=[0,2,4,5,7,9,11][pit%7],o=((pit/7)|0)*12,p0,p1,s,b40
6298 return p+o+s}else{s=acc}}else{if(cfmt.temper)
6300 return p+o}
6301 if(!cfmt.nedo){if(!cfmt.temper){p+=o+s
6302 return p}}else{if(typeof acc=="number"){b40=abc2svg.p_b40[pit%7]+acc
6553 curvoice=clone_voice(curv.id+'-p')
6630 tp.push({p:pplet,q:qplet,r:rplet,ro:rplet,f:cfmt.tuplets})
6695 while(1){tp_adj(tps,k.q/k.p)
6767 var add_fstyle=typeof document!="undefined"?function(s){var e
6769 e=sheet.cssRules.length
6770 while(--e>=0)
6771 sheet.deleteRule(e)}else{e=document.createElement('style')
6772 document.head.appendChild(e)
6773 abc2svg.sheet=sheet=e.sheet}}
6775 while(1){e=s.shift()
6776 if(!e)
6778 sheet.insertRule(e,sheet.cssRules.length)}}:function(s){font_style+="\n"+s}
6966 function put_words(words){var p,i,j,nw,w,lw,x1,x2,i1,i2,do_flush,maxn=0,n=1
6967 function put_wline(p,x){var i=0,j,k
6968 if(p[i]=='$'&&p[i+1]>='0'&&p[i+1]<='9')
6970 if((p[i]>='0'&&p[i]<='9')||p[i+1]=='.'){while(i<p.length){i++
6971 if(p[i]==' '||p[i-1]==':'||p[i-1]=='.')
6974 while(p[i]==' ')
6977 xy_str(x,0,p.slice(j,k),'r')
6978 if(i<p.length)
6979 xy_str(x+5,0,p.slice(i),'l')}
6985 for(i=0;i<nw;i++){p=words[i]
6986 if(!p){while(i+1<nw&&!words[i+1])
6988 n++}else if(p.length>maxn){maxn=p.length
6994 for(i=0;i<nw;i++){p=words[i]
6995 if(!p){if(--j<=0)
7006 if(i<i1){p=words[i]
7007 if(p)
7008 put_wline(p,x1)
7011 if(i2<nw){p=words[i2]
7012 if(p){put_wline(p,x2)}else{if(--n==0){if(i<i1){n++}else if(i2<nw-1){x2=w-lw/2+10
7031 var fmt="",p=cfmt.titleformat,j=0,i=0
7032 while(1){while(p[i]==' ')
7034 c=p[i++]
7038 c=p[i++]
7043 c=p[i++]
7046 c=p[i++]
7047 break}}else{switch(p[i]){case'-':align='l'
7061 var ya={l:cfmt.titlespace,c:cfmt.titlespace,r:cfmt.titlespace},xa={l:0,c:lwidth*.5,r:lwidth},yb={},str;p=fmt;i=0
7063 while(1){align=p[j++]
7066 c=p[j++]
7080 while(1){align=p[i++]
7083 c=p[i++]
7087 if(p[i]=='+'){info_nb[c]--;i++
7088 c=p[i++];if(info_val[c].length){if(str)
7115 if(i>=p.length)
7168 var tgls={"mtr ":{x:0,y:0,c:"\u0020"},brace:{x:0,y:0,c:"\ue000"},lphr:{x:0,y:24,c:"\ue030"},mphr:{x:0,y:24,c:"\ue038"},sphr:{x:0,y:27,c:"\ue039"},rdots:{x:-1,y:0,c:"\ue043"},dsgn:{x:-4,y:-4,c:"\ue045"},dcap:{x:-4,y:-4,c:"\ue046"},sgno:{x:-6,y:0,c:"\ue047"},coda:{x:-12,y:-6,c:"\ue048"},tclef:{x:-8,y:0,c:"\ue050"},cclef:{x:-8,y:0,c:"\ue05c"},bclef:{x:-8,y:0,c:"\ue062"},pclef:{x:-6,y:0,c:"\ue069"},spclef:{x:-6,y:0,c:"\ue069"},stclef:{x:-8,y:0,c:"\ue07a"},scclef:{x:-8,y:0,c:"\ue07b"},sbclef:{x:-7,y:0,c:"\ue07c"},oct:{x:0,y:2,c:"\ue07d"},mtr0:{x:0,y:0,c:"\ue080"},mtr1:{x:0,y:0,c:"\ue081"},mtr2:{x:0,y:0,c:"\ue082"},mtr3:{x:0,y:0,c:"\ue083"},mtr4:{x:0,y:0,c:"\ue084"},mtr5:{x:0,y:0,c:"\ue085"},mtr6:{x:0,y:0,c:"\ue086"},mtr7:{x:0,y:0,c:"\ue087"},mtr8:{x:0,y:0,c:"\ue088"},mtr9:{x:0,y:0,c:"\ue089"},mtrC:{x:0,y:0,c:"\ue08a"},"mtr+":{x:0,y:0,c:"\ue08c"},"mtr(":{x:0,y:0,c:"\ue094"},"mtr)":{x:0,y:0,c:"\ue095"},HDD:{x:-7,y:0,c:"\ue0a0"},breve:{x:-7,y:0,c:"\ue0a1"},HD:{x:-5.2,y:0,c:"\ue0a2"},Hd:{x:-3.8,y:0,c:"\ue0a3"},hd:{x:-3.7,y:0,c:"\ue0a4"},ghd:{x:2,y:0,c:"\ue0a4",sc:.66},pshhd:{x:-3.7,y:0,c:"\ue0a9"},pfthd:{x:-3.7,y:0,c:"\ue0b3"},x:{x:-3.7,y:0,c:"\ue0a9"},"circle-x":{x:-3.7,y:0,c:"\ue0b3"},srep:{x:-5,y:0,c:"\ue101"},"dot+":{x:-5,y:0,sc:.7,c:"\ue101"},diamond:{x:-4,y:0,c:"\ue1b9"},triangle:{x:-4,y:0,c:"\ue1bb"},dot:{x:-1,y:0,c:"\ue1e7"},flu1:{x:-.3,y:0,c:"\ue240"},fld1:{x:-.3,y:0,c:"\ue241"},flu2:{x:-.3,y:0,c:"\ue242"},fld2:{x:-.3,y:0,c:"\ue243"},flu3:{x:-.3,y:3.5,c:"\ue244"},fld3:{x:-.3,y:-4,c:"\ue245"},flu4:{x:-.3,y:8,c:"\ue246"},fld4:{x:-.3,y:-9,c:"\ue247"},flu5:{x:-.3,y:12.5,c:"\ue248"},fld5:{x:-.3,y:-14,c:"\ue249"},"acc-1":{x:-1,y:0,c:"\ue260"},"cacc-1":{x:-18,y:0,c:"\ue26a\ue260\ue26b"},"sacc-1":{x:-1,y:0,sc:.7,c:"\ue260"},acc3:{x:-1,y:0,c:"\ue261"},"cacc3":{x:-18,y:0,c:"\ue26a\ue261\ue26b"},sacc3:{x:-1,y:0,sc:.7,c:"\ue261"},acc1:{x:-2,y:0,c:"\ue262"},"cacc1":{x:-18,y:0,c:"\ue26a\ue262\ue26b"},sacc1:{x:-2,y:0,sc:.7,c:"\ue262"},acc2:{x:-3,y:0,c:"\ue263"},"acc-2":{x:-3,y:0,c:"\ue264"},"acc-1_2":{x:-2,y:0,c:"\ue280"},"acc-3_2":{x:-3,y:0,c:"\ue281"},acc1_2:{x:-1,y:0,c:"\ue282"},acc3_2:{x:-3,y:0,c:"\ue283"},accent:{x:-3,y:0,c:"\ue4a0"},stc:{x:-1,y:-2,c:"\ue4a2"},emb:{x:-4,y:-2,c:"\ue4a4"},wedge:{x:-1,y:0,c:"\ue4a8"},marcato:{x:-3,y:0,c:"\ue4ac"},hld:{x:-7,y:0,c:"\ue4c0"},brth:{x:0,y:0,c:"\ue4ce"},r00:{x:-1.5,y:0,c:"\ue4e1"},r0:{x:-1.5,y:0,c:"\ue4e2"},r1:{x:-3.5,y:-6,c:"\ue4e3"},r2:{x:-3.2,y:0,c:"\ue4e4"},r4:{x:-3,y:0,c:"\ue4e5"},r8:{x:-3,y:0,c:"\ue4e6"},r16:{x:-4,y:0,c:"\ue4e7"},r32:{x:-4,y:0,c:"\ue4e8"},r64:{x:-4,y:0,c:"\ue4e9"},r128:{x:-4,y:0,c:"\ue4ea"},mrest:{x:-10,y:0,c:"\ue4ee"},mrep:{x:-6,y:0,c:"\ue500"},mrep2:{x:-9,y:0,c:"\ue501"},p:{x:-4,y:-6,c:"\ue520"},f:{x:-4,y:-6,c:"\ue522"},pppp:{x:-4,y:-6,c:"\ue529"},ppp:{x:-4,y:-6,c:"\ue52a"},pp:{x:-4,y:-6,c:"\ue52b"},mp:{x:-4,y:-6,c:"\ue52c"},mf:{x:-4,y:-6,c:"\ue52d"},ff:{x:-4,y:-6,c:"\ue52f"},fff:{x:-4,y:-6,c:"\ue530"},ffff:{x:-4,y:-6,c:"\ue531"},sfz:{x:-4,y:-6,c:"\ue539"},trl:{x:-4,y:-4,c:"\ue566"},turn:{x:-5,y:-4,c:"\ue567"},turnx:{x:-5,y:-4,c:"\ue569"},umrd:{x:-7,y:-2,c:"\ue56c"},lmrd:{x:-7,y:-2,c:"\ue56d"},dplus:{x:-4,y:10,c:"\ue582"},sld:{x:-8,y:12,c:"\ue5d0"},grm:{x:-2,y:0,c:"\ue5e2"},dnb:{x:-4,y:0,c:"\ue610"},upb:{x:-3,y:0,c:"\ue612"},opend:{x:-2,y:0,c:"\ue614"},roll:{x:0,y:0,c:"\ue618"},thumb:{x:0,y:0,c:"\ue624"},snap:{x:-2,y:0,c:"\ue630"},ped:{x:-10,y:0,c:"\ue650"},pedoff:{x:-5,y:0,c:"\ue655"},mtro:{x:0,y:0,c:"\ue911"},mtrc:{x:0,y:0,c:"\ue915"},"mtr.":{x:0,y:0,c:"\ue920"},"mtr|":{x:0,y:0,c:"\ue925"},longa:{x:-4.7,y:0,c:"\ue95d"},custos:{x:-4,y:3,c:"\uea02"},ltr:{x:2,y:6,c:"\ueaa4"}}
7170 function m_gl(s){return s.replace(/[Cco]\||[co]\.|./g,function(e){var m=tgls["mtr"+e]
7322 function glout(){var e,v=[]
7323 if(gla[0].length){while(1){e=gla[0].shift()
7324 if(e==undefined)
7326 v.push(e.toFixed(1))}
7329 while(1){e=gla[1].shift()
7330 if(e==undefined)
7332 v.push(e.toFixed(1))}
7339 while(1){e=gla[3].shift()
7340 if(e==undefined)
7342 output+='M'+e.toFixed(1)+' '+gla[3].shift().toFixed(1)+'v'+gla[3].shift().toFixed(1)}
7468 function tempo_note(s,dur){var p,elts=identify_note(s,dur)
7469 switch(elts[0]){case C.OVAL:p="\ueca2"
7471 case C.EMPTY:p="\ueca3"
7473 default:switch(elts[2]){case 2:p="\ueca9"
7475 case 1:p="\ueca7"
7477 default:p="\ueca5"
7481 p+='<tspan dx=".1em">\uecb7</tspan>'
7482 return p}
7483 function tempo_build(s){var i,j,bx,p,wh,dy,w=0,str=[]
7492 for(i=0;i<s.tempo_notes.length;i++){p=tempo_note(s,s.tempo_notes[i])
7497 p+'</tspan>')
7498 j=p.length>1?2:1
7507 w+=strwh(s.tempo.toString())[0]}else{p=tempo_note(s,s.new_beat)
7511 p+'</tspan>')
7512 j=p.length>1?2:1
8445 function get_sym(p,cont){var s,c,i,j,d
8456 while(1){while(p[i]==' '||p[i]=='\t')
8457 i++;c=p[i]
8467 i=p.indexOf(c,j)
8468 if(i<0){syntax(1,c=='!'?"No end of decoration":"No end of guitar chord");i=p.length
8470 d=p.slice(j-1,i+1)
8492 function get_lyrics(text,cont){var s,word,p,i,j,ly,dfnt
8506 p=text;i=0
8507 while(1){while(p[i]==' '||p[i]=='\t')
8509 if(!p[i])
8512 switch(p[i]){case'|':while(s&&s.type!=C.BAR)
8524 default:if(p[i]=='\\'&&i==p.length-1){curvoice.lyric_cont=s
8526 word="";while(1){if(!p[i])
8528 switch(p[i]){case'_':case'*':case'|':i--
8534 case'\\':word+=p[++i];i++
8536 default:word+=p[i++]
8552 function ly_width(s,wlw){var ly,sz,swfac,align,xx,w,i,j,k,shift,p,a_ly=s.a_ly;align=0
8556 p=ly.t;if(p=="-\n"||p=="_\n"){ly.shift=0
8559 if(s.type==C.GRACE){shift=s.wl}else if((p[0]>='0'&&p[0]<='9'&&p.length>2)||p[1]==':'||p[0]=='('||p[0]==')'){if(p[0]=='('){sz=cwid('(')*swfac}else{j=p.indexOf(' ');set_font(ly.font)
8561 sz=strwh(p.slice(0,j))[0]
8594 function draw_lyric_line(p_voice,j,y){var p,lastx,w,s,s2,ly,lyl,hyflag,lflag,x0,font,shift
8607 gene.curfont=font=ly.font;p=ly.t;w=ly.wh[0];shift=ly.shift
8608 if(hyflag){if(p=="_\n"){p="-\n"}else if(p!="-\n"){out_hyph(lastx,y,s.x-shift-lastx);hyflag=false;lastx=s.x+s.wr}}
8609 if(lflag&&p!="_\n"){out_wln(lastx+3,y,x0-lastx+3);lflag=false;lastx=s.x+s.wr}
8610 if(p=="-\n"||p=="_\n"){if(x0==0&&lastx>s.x-18)
8612 if(p[0]=='-')
8617 x0=s.x-shift;if(p.slice(-1)=='\n'){p=p.slice(0,-1);hyflag=true}
8620 xy_str(x0,y,p,null,null,ly.wh);anno_stop(s2,'lyrics')
8772 function gch_tr1(p,transp){var i,o,n,a,ip,b40,csa=p.split('/')
8773 for(i=0;i<csa.length;i++){p=csa[i];o=p.search(/[A-G]/)
8778 while(p[ip]=='#'||p[ip]=='\u266f'){a++;ip++}
8779 while(p[ip]=='b'||p[ip]=='\u266d'){a--;ip++}
8780 n=note_names.indexOf(p[o])+16
8783 csa[i]=p.slice(0,o)+
8786 p.slice(ip)}