Lines Matching refs:p
6 var prn={"a-b-d":35,"a-s":38,"b-d-1":36,"ca":69,"cl":75,"co":56,"c-c":52,"c-c-1":49,"c-c-2":57,"c-h-h":42,"e-s":40,"h-a":67,"h-b":60,"h-c":39,"h-f-t":43,"h-m-t":48,"h-ti":65,"h-to":50,"h-w-b":76,"l-a":68,"l-b":61,"l-c":64,"l-f-t":41,"l-g":74,"l-m-t":47,"l-ti":66,"l-to":45,"l-w":72,"l-w-b":77,"m":70,"m-c":78,"m-h-c":62,"m-t":80,"o-c":79,"o-h-c":63,"o-h-h":46,"o-t":81,"p-h-h":44,"r-b":53,"r-c-1":51,"r-c-2":59,"s-c":55,"s-g":73,"s-s":37,"s-w":71,"t":54,"v":58}
7 function abc_b40(p){var pit,acc=0,i=0
8 switch(p[0]){case'^':if(p[++i]=='^'){acc=2
13 case'_':if(p[++i]=='_'){acc=-2
16 pit='CDEFGABcdefgab'.indexOf(p[i++])+16
19 while(p[i]=="'"){pit+=7
21 while(p[i]==","){pit-=7
23 if(p[i])
26 function topit(p){var i,j,s,b40,pit=Number(p)
27 if(isNaN(pit)){b40=abc_b40(p)
28 if(!b40){p=p.toLowerCase(p);s=p[0];i=0
29 while(1){j=p.indexOf('-',i)
32 i=j+1;s+='-'+p[i]}
34 if(!pit){switch(p[0]){case'c':switch(p[1]){case'a':pit=prn.ca;break
38 case'h':case'l':i=p.indexOf('-')
39 if(p[i+1]!='t')
41 switch(p[1]){case'i':case'o':pit=prn[s+p[1]]
46 if(!b40){p=(pit/12)|0
47 pit=pit%12;b40=p*40+abc2svg.isb40[pit]+2}