Lines Matching defs:c

52 function errbld(sev,txt,fn,idx){var i,j,l,c,h
63 c=idx-i}
67 h+=":"+(l+1)+":"+(c+1);h+=" "}
71 user.errmsg(h+txt,l,c)}
92 scanBuf.prototype.get_int=function(){var val=0,c=this.buffer[this.index]
93 while(c>='0'&&c<='9'){val=val*10+Number(c);c=this.next_char()}
281 function deco_def(nm){var a,dd,dd2,name2,c,i,elts,str,hd,text=decos[nm]
312 c=dd.name.slice(-1)
313 if(c=='('||(c==')'&&dd.name.indexOf('(')<0)){dd.str=null;name2=dd.name.slice(0,-1)+(c=='('?')':'(');dd2=dd_tb[name2]
314 if(dd2){if(c=='('){dd.dd_en=dd2;dd2.dd_st=dd}else{dd.dd_st=dd2;dd2.dd_en=dd}}else{dd2=deco_def(name2)
1044 function draw_acc(x,y,a){if(typeof a!="number"){var c,n=a[0],d=a[1]
1045 c=n+'_'+d
1046 a=acc_nd[c]
1052 acc_nd[c]=a}}
1233 x1=bet1*x3+(1-bet1)*x0-x0;y1=bet1*y3+(1-bet1)*y0-dy1-y0;x2=bet2*x3+(1-bet2)*x0-x0;y2=bet2*y3+(1-bet2)*y0-dy2-y0;anno_start(s,'slur');xypath(x0,y0+staff_tb[s.st].y);output+='c'+x1.toFixed(1)+' '+(-y1).toFixed(1)+' '+x2.toFixed(1)+' '+(-y2).toFixed(1)+' '+(x3-x0).toFixed(1)+' '+(-y3+y0).toFixed(1)+'"/>\n';anno_stop(s,'slur')}
1294 function draw_note(s,fl){var s2,i,m,y,staffb,slen,c,nflags,x,y,note,y_tb=new Array(s.nhd+1)
1369 output+='<path class="stroke" stroke-dasharray="5,5" d="M';out_sxsy(x1,' ',y1);output+='c'+
1378 (-dz).toFixed(1)+'c'+
1641 xy_str(xm,ym,tp.p.toString(),'c')
1643 xy_str(xm,ym,tp.p+':'+tp.q,'c')
1985 for(n=0;n<a_p.length;n++){p=a_p[n];xy_str(indent,y,p,"c");y-=h}}}
2844 var textopt={align:'j',center:'c',fill:'f',justify:'j',ragged:'f',right:'r',skip:'s'}
2851 function set_writefields(parm){var c,i,a=parm.split(/\s+/)
2852 if(get_bool(a[1])){for(i=0;i<a[0].length;i++){c=a[0][i]
2853 if(cfmt.writefields.indexOf(c)<0)
2854 cfmt.writefields+=c}}else{for(i=0;i<a[0].length;i++){c=a[0][i]
2855 if(cfmt.writefields.indexOf(c)>=0)
2856 cfmt.writefields=cfmt.writefields.replace(c,'')}}}
3039 function cnv_escape(src,flag){var c,c2,dst="",i,j=0
3043 dst+=src.slice(j,i);c=src[++i]
3044 if(!c)
3046 switch(c){case'0':case'2':if(src[i+1]!='0')
3055 c=String.fromCharCode(j)
3056 if(c=='\\'){i+=4
3058 dst+=c
3071 switch(c){case'`':dst+=c2+"\u0300"
3104 case'c':dst+=c2+"\u0327"
3113 dst+=c
3126 function tosvg(in_fname,file,bol,eof){var i,c,eol,end,select,line0,line1,last_info,opt,text,a,b,s,pscom,txt_add='\n'
3224 if(file[bol+2]=='a'&&file[bol+3]=='b'&&file[bol+4]=='c'&&file[bol+5]==' '){bol+=6;line0=file[bol];line1=file[bol+1]}else{pscom=true}}else if(line0=='I'&&line1==':'){pscom=true}
3759 switch(meter.top[0]){case'C':case'c':case'o':s.x_meter[i]=wlw+6;wlw+=12
4272 case"c":s.ymx=s.y+13
4529 case"c":pit=16
4535 var delta_tb={t:0-2*2,c:6-3*2,b:12-4*2,p:0-3*2}
5548 case'C':s.clef_type="c";s.clef_line=3
5556 case't':if(clef_def[1]=='e'){s.clef_type="c";s.clef_line=4
5602 function set_user(parm){var k,c,v,a=parm.match(/(.)[=\s]*(\[I:.+\]|".+"|!.+!)$/)
5605 c=a[1];v=a[2]
5606 if(c[0]=='\\'){if(c[1]=='t')
5607 c='\t'
5608 else if(!c[1])
5609 c=' '}
5610 k=c.charCodeAt(0)
5616 default:syntax(1,"Bad user character '$1'",c)
5675 curvoice.sndtran=get_interval('c'+item)}else{curvoice.sndtran=get_interval('c'+
5780 function new_key(param){var i,clef,key_end,c,tmp,exp,sf="FCGDAEB".indexOf(param[0])-1,mode=0,s={type:C.KEY,dur:0}
5831 c=param[0]
5832 if(c=='^'||c=='_'||c=='='){s.k_a_acc=[];tmp=new scanBuf;tmp.buffer=param
5836 s.k_a_acc.push(note);c=param[tmp.index]
5837 while(c==' ')
5838 c=param[++tmp.index]}while(c=='^'||c=='_'||c=='=');if(!exp)
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}
5915 function new_tempo(text){var i,c,d,nd,txt=text,s={type:C.TEMPO,dur:0}
5921 syntax(1,"Invalid note duration $1",c)}
5925 if(text[0]=='"'){c=text.match(/"([^"]*)"/)
5926 if(!c){syntax(1,"Unterminated string in Q:")
5928 s.tempo_str1=c[1]
5929 text=text.slice(c[0].length).replace(/^\s+/,'')}
5936 while(1){c=d.shift()
5937 if(!c)
5939 nd=get_nd(c)
6044 function new_bar(dotted){var s2,c,bar_type,line=parse.line,s={type:C.BAR,fname:parse.fname,istart:parse.bol+line.index,dur:0,multi:0}
6051 while(1){c=line.next_char()
6052 switch(c){case'|':case'[':case']':case':':bar_type+=c
6066 if(bar_type.slice(-1)=='['&&!(/[0-9" ]/.test(c))){bar_type=bar_type.slice(0,-1);line.index--;c='['}
6069 if(c>'0'&&c<='9'){s.text=c
6070 while(1){c=line.next_char()
6071 if("0123456789,.-".indexOf(c)<0)
6073 s.text+=c}
6074 s.rbstop=2;s.rbstart=2}else if(c=='"'&&bar_type.slice(-1)=='['){s.text=""
6075 while(1){c=line.next_char()
6076 if(!c){syntax(1,"No end of repeat string")
6078 if(c=='"'){line.index++
6080 s.text+=c}
6208 function parse_acc_pit(line){var note,acc,pit,d,nd,c=line.char()
6209 switch(c){case'^':c=line.next_char()
6210 if(c=='^'){acc=2;c=line.next_char()}else{acc=1}
6212 case'=':acc=3;c=line.next_char()
6214 case'_':c=line.next_char()
6215 if(c=='_'){acc=-2;c=line.next_char()}else{acc=-1}
6217 if(acc==1||acc==-1){if((c>='1'&&c<='9')||c=='/'){nd=parse_dur(line);if(acc<0)
6222 c=line.char()}}
6223 pit=ntb.indexOf(c)+16;c=line.next_char()
6226 while(c=="'"){pit+=7;c=line.next_char()}
6227 while(c==','){pit-=7;c=line.next_char()}
6314 Abc.prototype.new_note=function(grace,sls){var note,s,in_chord,c,dcn,type,tie_s,acc_tie,i,n,s2,nd,res,num,dur,apit,sl1=[],line=parse.line,a_dcn_sav=a_dcn
6341 c=line.char()
6342 switch(c){case'X':s.invis=true
6343 case'Z':s.type=C.MREST;c=line.next_char()
6344 s.nmes=(c>'0'&&c<='9')?line.get_int():1;s.dur=curvoice.wmeasure*s.nmes
6349 case'y':s.type=C.SPACE;s.invis=true;s.dur=0;c=line.next_char()
6350 if(c>='0'&&c<='9')
6360 case'[':in_chord=true;c=line.next_char()
6364 while(1){if(in_chord){while(1){if(!c)
6366 i=c.charCodeAt(0);if(i>=128){syntax(1,errs.not_ascii)
6369 switch(type[0]){case'(':sl1.push(parse_vpos());c=line.char()
6374 while(1){c=line.next_char()
6375 if(!c){syntax(1,"No end of decoration")
6377 if(c=='!')
6379 dcn+=c}
6381 c=line.next_char()
6411 c=line.char()
6412 while(1){switch(c){case')':note.s=s
6414 c=line.next_char()
6422 c=line.char()
6424 case'.':c=line.next_char()
6425 switch(c){case'-':case'(':continue}
6429 if(c==']'){line.index++;nd=parse_dur(line);s.nhd=s.notes.length-1
6465 c=line.char()
6466 while(1){switch(c){case'-':var ty=parse_vpos()
6478 c=line.char()
6482 c=line.next_char()
6486 c=line.next_char()
6535 function n2n(n){var c=ntb[n]
6536 while(n<0){n+=7;c+=','}
6537 while(n>14){n-=7;c+="'"}
6538 return c}
6539 function expand(m,b){var c,i,r="",n=m.length
6540 for(i=0;i<n;i++){c=m[i]
6541 if(c>='h'&&c<='z'){r+=n2n(b+c.charCodeAt(0)-'n'.charCodeAt(0))}else{r+=c}}
6571 function parse_seq(in_mac){var c,idx,type,k,s,dcn,i,n,text,note
6572 while(1){c=line.char()
6573 if(!c)
6575 if(curvoice.ignore){while(1){if(c=='['&&line.buffer[line.index+1]=='V'&&line.buffer[line.index+2]==':')
6577 c=line.next_char()
6578 if(!c)
6580 if(c=='.'){switch(line.buffer[line.index+1]){case'(':case'-':case'|':c=line.next_char()
6582 if(!in_mac&&maci[c]){n=0
6583 for(k in mac){if(!mac.hasOwnProperty(k)||k[0]!=c)
6596 idx=c.charCodeAt(0)
6613 c=line.next_char()
6614 if(c==')'){get_vover(')')
6618 case'(':c=line.next_char()
6619 if(c>'0'&&c<='9'){if(grace){syntax(1,errs.bad_grace)
6621 var pplet=line.get_int(),qplet=qplet_tb[pplet],rplet=pplet,c=line.char()
6622 if(c==':'){c=line.next_char()
6623 if(c>'0'&&c<='9'){qplet=line.get_int();c=line.char()}
6624 if(c==':'){c=line.next_char()
6625 if(c>'0'&&c<='9'){rplet=line.get_int();c=line.char()}else{syntax(1,"Invalid 'r' in tuplet")
6632 if(c=='&'){if(grace){syntax(1,errs.bad_grace)
6645 if(!s){syntax(1,errs.bad_char,c)
6653 while(1){c=line.next_char()
6654 if(!c)
6656 if(c=='!')
6658 dcn+=c}
6659 if(!c){line.index=i;syntax(1,"No end of decoration")
6711 n=c=='<'?1:-1
6712 while(c=='<'||c=='>'){n*=2;c=line.next_char()}
6722 sym_link(grace);c=line.next_char()
6723 if(c=='/'){grace.sappo=true
6731 if(!grace||!s){syntax(1,errs.bad_char,c)
6741 default:syntax(1,errs.bad_char,c)
6781 function cwid(c){var i=c.charCodeAt(0)
6785 function cwidf(c){return cwid(c)*gene.curfont.swfac}
6791 var c,font=gene.curfont,h=font.size,w=0,n=str.length,i0=0,i=0
6797 str=str.replace(/<|>|&[^&]*?;|&| /g,function(c){switch(c){case'<':return"&lt;"
6801 return c})
6805 c=str[i+1]
6806 if(c=='0'){font=gene.deffont}else if(c>='1'&&c<='9'){font=get_font("u"+c)}else{i++
6812 return[w,h]}})():function(str){var font=gene.curfont,swfac=font.swfac,h=font.size,w=0,i,j,c,n=str.length
6813 for(i=0;i<n;i++){c=str[i]
6814 switch(c){case'$':c=str[i+1]
6815 if(c=='0'){font=gene.deffont}else if(c>='1'&&c<='9'){font=get_font("u"+c)}else{c='$'
6822 if(j>0&&j-i<10){i=j;c='a'}
6824 w+=cwid(c)*swfac}
6836 o=str.replace(/<|>|&[^&]*?;|&| |\$./g,function(c){switch(c){case'<':return"&lt;"
6840 default:if(c[0]!='$')
6842 if(c[1]=='0')
6844 else if(c[1]>='1'&&c[1]<='9')
6845 n_font=get_font("u"+c[1])
6848 c=''
6850 return c
6852 c="</tspan>"
6855 return c
6856 return c+tspan(c_font,o_font)}
6857 return c})
6876 switch(action){case'c':x-=wh[0]/2;output+='" text-anchor="middle">'
6912 xy_str(get_lwidth()/2,h,title,"c",null,wh)}
6923 switch(action){case'c':x=strlw/2;break
7016 function put_history(){var i,j,c,str,font,h,w,wh,head,names=cfmt.infoname.split("\n"),n=names.length
7017 for(i=0;i<n;i++){c=names[i][0]
7018 if(cfmt.writefields.indexOf(c)<0)
7020 str=info[c]
7030 function write_headform(lwidth){var c,font,font_name,align,x,y,sz,info_val={},info_font=clone(info_font_init),info_sz={A:cfmt.infospace,C:cfmt.composerspace,O:cfmt.composerspace,R:cfmt.infospace},info_nb={}
7034 c=p[i++]
7035 if(!c)
7037 if(c<'A'||c>'Z'){switch(c){case'+':align='+'
7038 c=p[i++]
7043 c=p[i++]
7046 c=p[i++]
7054 default:align='c'
7056 if(!info_val[c]){if(!info[c])
7058 info_val[c]=info[c].split('\n');info_nb[c]=1}else{info_nb[c]++}
7059 fmt+=align+c}
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
7062 while(1){yb.l=yb.c=yb.r=y=0;j=i
7066 c=p[j++]
7069 str=info_val[c]
7072 font_name=info_font[c]
7075 if(info_sz[c])
7076 sz+=info_sz[c]
7079 ya.l+=y-yb.l;ya.c+=y-yb.c;ya.r+=y-yb.r
7083 c=p[i++]
7084 if(!info_val[c].length)
7086 str=info_val[c].shift()
7087 if(p[i]=='+'){info_nb[c]--;i++
7088 c=p[i++];if(info_val[c].length){if(str)
7089 str+=' '+info_val[c].shift()
7091 str=' '+info_val[c].shift()}}
7092 font_name=info_font[c]
7095 if(info_sz[c])
7096 sz+=info_sz[c];set_font(font);x=xa[align];y=ya[align]+sz
7097 if(c=='Q'){self.set_width(glovar.tempo)
7100 if(align=='c')
7102 writempo(glovar.tempo,x,-y)}}else if(str){if(c=='T')
7105 if(c=='T'){font_name=info_font.T="subtitle";info_sz.T=cfmt.subtitlespace}
7106 if(info_nb[c]<=1){if(c=='T'){font=get_font(font_name);sz=font.size*1.1
7107 if(info_sz[c])
7108 sz+=info_sz[c];set_font(font)}
7109 while(info_val[c].length>0){y+=sz;str=info_val[c].shift();xy_str(x,-y,str,align)}}
7110 info_nb[c]--;ya[align]=y}
7111 if(ya.c>ya.l)
7112 ya.l=ya.c
7117 ya.c=ya.r=ya.l}
7138 if(cfmt.aligncomposer<0){xcomp=0;align=' '}else if(cfmt.aligncomposer==0){xcomp=lwidth*.5;align='c'}else{xcomp=lwidth;align='r'}
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"}}
7171 return m.c})}
7276 function out_XYAB(str,x,y,a,b){x=sx(x);y=sy(y);output+=str.replace(/X|Y|A|B|F|G/g,function(c){switch(c){case'X':return x.toFixed(1)
7347 if(tgl.sc){out_XYAB('<text transform="translate(X,Y) scale(A)">B</text>\n',x,y,tgl.sc,tgl.c)}else{gla[0].push(sx(x))
7349 gla[2]+=tgl.c}}else{error(1,null,'no definition of $1',gl)}}}
7353 x.toFixed(1)+','+y.toFixed(1)+') scale(2.5,'+h.toFixed(2)+')">'+tgls.brace.c+'</text>\n'}
7395 xy_str(x+dx/2,y+dy/2-gene.curfont.size*.5+2,str,'c')
7935 s.opt='c'
7938 write_text(param,'c')
8259 if(cmd[1]=='c'){for(st=0;st<nstaff;st++)
8445 function get_sym(p,cont){var s,c,i,j,d
8457 i++;c=p[i]
8458 if(!c)
8460 switch(c){case'|':while(s&&s.type!=C.BAR)
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
8473 default:d=c.charCodeAt(0)
8475 if(d.length>1&&(d[0]=='!'||d[0]=='"')){c=d[0]
8477 syntax(1,errs.bad_char,c)
8483 switch(c){default:break
8710 function parse_gchord(type){var c,text,gch,x_abs,y_abs,type,i,j,istart,iend,ann_font=get_font("annotation"),h_ann=ann_font.size,line=parse.line
8712 while(1){c=text[i++]
8713 if("1234567890.-".indexOf(c)<0)
8715 txt+=c}}
8730 while(1){c=text[i]
8731 if(!c)
8734 switch(c){case'@':type=c;i++;x_abs=get_float()
8735 if(c!=','){syntax(1,"',' lacking in annotation '@x,y'");y_abs=0}else{y_abs=get_float()
8736 if(c!=' ')
8740 case'^':case'_':case'<':case'>':i++;type=c
8748 while(1){c=text[i]
8749 if(!c)
8751 switch(c){case'\\':c=text[++i]
8752 if(!c||c=='n')
8755 default:gch.text+=c;i++
8757 case'&':while(1){gch.text+=c;c=text[++i]
8758 switch(c){default:continue
8761 if(c==';'){i++;gch.text+=c