Lines Matching +defs:n +defs:y
10 function slice(s){var m,n,s2,s3,d,d_orig
17 n=1}else{if(s.dur>=C.BLEN)
18 n=3
20 n=1
22 n=2
28 while(--n>=0){s2={type:C.REST,v:s.v,p_v:s.p_v,st:s.st,dur:d,dur_orig:d_orig,stem:1,multi:0,nhd:0,notes:[{pit:s.notes[0].pit,jn:8}],xmx:0,beam_on:true,noplay:true,time:s.time+s.dur,prev:s,next:s.next}
94 of()},draw_symbols:function(of,p_voice){var i,m,nl,note,s,s2,x,y,C=abc2svg.C,abc=this,dot="\ue1e7",staff_tb=abc.get_staff_tb(),out_svg=abc.out_svg,out_sxsy=abc.out_sxsy,xypath=abc.xypath
97 function draw_dur(s1,y,s2,n,nl){var s,s3
98 xypath(s1.x-3,y+24)
99 out_svg('h'+(s2.x-s1.x+8).toFixed(1)+'"/>\n')
100 y-=2.5
101 while(++n<=nl){s=s1
102 while(1){if(s.nflags&&s.nflags>=n){s3=s
103 while(s!=s2){if(s.next.beam_br1||(s.next.beam_br2&&n>2)||(s.next.nflags&&s.next.nflags<n))
106 draw_dur(s3,y,s,n,nl)}
110 function out_mus(x,y,p){out_svg('<text x="')
111 out_sxsy(x,'" y="',y)
112 out_svg('">'+p+'</text>\n')}
113 function out_txt(x,y,p){out_svg('<text class="bn" x="')
114 out_sxsy(x,'" y="',y)
115 out_svg('">'+p+'</text>\n')}
116 function draw_hd(s,x,y){var m,note,ym
118 out_txt(x-3.5,y+8,"01234567."[note.jn])
120 if(note.acc>0){out_sxsy(x-6,' ',y+10)
121 out_svg("l12 -6")}else{out_sxsy(x-6,' ',y+16)
123 out_svg('"/>\n')}
124 if(note.jo>2){out_mus(x-1,y+23,dot)
125 if(note.jo>3){y+=3
126 out_mus(x-1,y+23.4,dot)}}else if(note.jo<2){ym=y+4
128 y+=20}}
132 y=staff_tb[s.st].y
133 draw_hd(s,x,y)
143 draw_dur(s,y+7,s2,1,nl)}}
172 abc.add_style("\n.bn {font-family:sans-serif; font-size:16px}")}}