Lines Matching refs:grace

750 function b_pos(grace,stem,nflags,b){var top,bot,d1,d2,shift=!grace?BEAM_SHIFT:3.5,depth=!grace?BEAM…  argument
780 notes=nflags=0;two_staves=two_dir=false;st=s1.st;v=s1.v;stem_xoff=s1.grace?GSTEM_XOFF:3.5
818 if(s.grace&&cfmt.flatbeams)
829 if(two_dir){ys=((s1.grace?3.5:BEAM_SHIFT)*(nflags-1)+
834 b+=ys*s1.stem}else if(!s1.grace){var beam_h=BEAM_DEPTH+BEAM_SHIFT*(nflags-1)
902 b+=b_pos(s1.grace,s1.stem,nflags,b-staff_tb[st].y)
936 if(!s1.grace){bshift=BEAM_SHIFT;bstub=BEAM_STUB;shift=.34;bh=BEAM_DEPTH}else{bshift=3.5;bstub=3.2;s…
1075 …afflines,top=stafflines.length-1,yu=top,bot=p_staff.botline/6,yl=bot,dx=s.grace?4:hw_tb[s.head]*1.3
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…
1290 if(!s.grace){draw_acc(x,y+staffb,note.acc)}else{g_open(x,y+staffb,0,.75);draw_acc(0,0,note.acc)
1308 out_stem(x,y,slen,s.grace)}else{out_stem(x,y,slen,s.grace,nflags,cfmt.straightflags)}}else if(s.xst…
1310 if(s.head==C.FULL||s.head==C.EMPTY){x1+=(s.grace?GSTEM_XOFF:3.5)*s.stem
1339 if(k1.grace&&k1.stem>0)
1403 if(k2.grace){y1=k1.y-8}else if(k1.beam_end&&k1.nflags>=-1&&(!k1.in_tuplet||k1.ys<y1+3)){if(k1.nflag…
1447 if(k1.grace)
1449 if(k2.grace)
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{…
1536 if(!s2.grace){while(s){if(s.v==v)
1540 s=s.ts_next}}else if(s.grace){while(1){path.push(s)
3401 if(s.grace)
6036 if(!s2.dur||s2.grace)
6278 if(sl.grace)
6279 sl.grace.sl1=true
6280 if(enote.s.grace)
6283 if(enote.grace){error(1,enote.s,errs.bad_slur_end)
6314 Abc.prototype.new_note=function(grace,sls){var note,s,in_chord,c,dcn,type,tie_s,acc_tie,i,n,s2,nd,r… argument
6338 if(grace){s.grace=true}else{if(a_gch)
6384 note=parse_basic_note(line,s.grace?C.BLEN/4:curvoice.ulen<0?C.BLEN:curvoice.ulen)
6437 if(grace)
6438 curvoice.sls[curvoice.sls.length-1].grace=grace}}
6440 if(s.grace&&s.type!=C.NOTE){syntax(1,errs.bad_grace)
6444 if(s.notes){if(!grace){switch(curvoice.pos.stm){case C.SL_ABOVE:s.stem=1;break
6462 if(grace.stem)
6463 s.stem=grace.stem}
6469 if(grace)
6470 grace.tie_s=curvoice.tie_s=grace
6494 if(!grace){if(!curvoice.lyric_restart)
6500 if(parse.ottava.length){if(grace)
6501 grace.ottava=parse.ottava
6512 if(!s.grace){s.time=tim
6522 function parse_music_line(){var grace,last_note_sav,a_dcn_sav,no_eol,s,tps,tp=[],tpn=-1,sls=[],line…
6603 if(grace)
6604 grace.gr_shift=true}
6611 case'&':if(grace){syntax(1,errs.bad_grace)
6619 if(c>'0'&&c<='9'){if(grace){syntax(1,errs.bad_grace)
6632 if(c=='&'){if(grace){syntax(1,errs.bad_grace)
6663 case'"':if(grace){syntax(1,errs.bad_grace)
6670 if('|[]: "'.indexOf(c_next)>=0||(c_next>='1'&&c_next<='9')){if(grace){syntax(1,errs.bar_grace)
6674 if(line.buffer[line.index+2]==':'){if(grace){syntax(1,errs.bad_grace)
6682 case'n':s=self.new_note(grace,sls)
6685 if(grace||!s.notes)
6709 if(grace){syntax(1,"Cannot have a broken rhythm in grace notes")
6716 case'{':if(grace){syntax(1,"'{' in grace note")
6718 last_note_sav=curvoice.last_note;curvoice.last_note=null;a_dcn_sav=a_dcn;a_dcn=undefined;grace={typ… variable
6719 switch(curvoice.pos.gst){case C.SL_ABOVE:grace.stem=1;break
6720 case C.SL_BELOW:grace.stem=-1;break
6721 case C.SL_HIDDEN:grace.stem=2;break}
6722 sym_link(grace);c=line.next_char()
6723 if(c=='/'){grace.sappo=true
6726 case'|':if(grace){syntax(1,errs.bar_grace)
6731 if(!grace||!s){syntax(1,errs.bad_char,c)
6734 syntax(1,"Decoration ignored");grace.extra=grace.next;grace.extra.prev=null;grace.next=null;curvoic…
6757 if(grace){syntax(1,"No end of grace note sequence");curvoice.last_sym=grace.prev;curvoice.last_note…
6758 if(grace.prev)
6759 grace.prev.next=null}
7260 if(s.grace)
7365 function out_stem(x,y,h,grace,nflags,straight){var dx=grace?GSTEM_XOFF:3.5,slen=-h argument
7375 if(h>0){if(!straight){if(!grace){xygl(x,y,"flu"+nflags)
7380grace){while(--nflags>=0){out_XYAB('MX Yl7 3.2 0 3.2 -7 -3.2z\n',x,y);y-=5.4}}else{while(--nflags>…
7385 if(!grace){while(--nflags>=0){out_XYAB('MX Yl7 -3.2 0 -3.2 -7 3.2z\n',x,y);y+=5.4}}}}
7596 if(s.dur&&!s.grace)
8479 while(s&&(s.type!=C.NOTE||s.grace))
8540 while(s&&(s.type!=C.NOTE||s.grace))