Lines Matching refs:C
3 // Copyright (C) 2014-2020 Jean-Francois Moine - LGPL3+
62 function ToAudio(){return{add:function(first,voice_tb,cfmt){var toaud=this,C=abc2svg.C,p_time=0,abc_time=0,play_fac=C.BLEN/4*120/60,i,n,dt,d,v,c,s=first,rst=s,rst_fac,rsk,b_tim,b_typ,instr=[],chn=[]
88 if(s.type==C.PART){s.part=first
123 if(s.sappo){d=C.BLEN/16}else if((!next||next.type!=C.NOTE)&&s.prev&&s.prev.type==C.NOTE){d=s.prev.dur/2}else{d=next.dur/12
171 switch(s.type){case C.BAR:if(s.time!=b_tim){b_tim=s.time
200 case C.BLOCK:do_block(s)
202 case C.GRACE:if(s.time==0&&abc_time==0){dt=0
204 dt=C.BLEN/16
205 else if(!s.next||s.next.type!=C.NOTE)
210 case C.REST:case C.NOTE:d=s.dur
211 if(s.next&&s.next.type==C.GRACE){dt=0
213 dt=C.BLEN/16
214 else if(!s.next.next||s.next.next.type!=C.NOTE)
225 case C.PART:rst=s
228 case C.TEMPO:if(s.tempo)
236 abc2svg.play_next=function(po){function do_tie(s,midi,d){var i,note,C=abc2svg.C,v=s.v,end_time=s.time+s.dur
240 switch(s.type){case C.BAR:if(s.rep_p){if(!po.repn){s=s.rep_p
250 if(s.type==C.NOTE&&s.v==v)
265 function play_cont(po){var d,i,st,m,note,g,s2,t,maxt,C=abc2svg.C,s=po.s_cur
283 switch(s.type){case C.BAR:if(s.rep_p){po.repv++
304 case C.PART:if(s.part&&po.i_p!=undefined){s2=s.part.p_s[++po.i_p]
309 case C.BLOCK:if(s.subtype=="midictl")
312 case C.GRACE:for(g=s.extra;g;g=g.next){d=g.pdur/po.conf.speed
316 case C.NOTE:d=s.pdur/po.conf.speed
321 case C.REST:d=s.pdur/po.conf.speed