Lines Matching defs:v

8 function AbcPlay(i_conf){var conf=i_conf,init={},audio=ToAudio(),audio5,midi5,current,abcplay={clear:audio.clear,add:audio.add,set_sfu:function(v){if(v==undefined)
10 conf.sfu=v},set_speed:function(v){if(v==undefined)
12 conf.new_speed=v},set_vol:function(v){if(v==undefined)
13 return conf.gain;conf.gain=v
15 current.set_vol(v)},play:play,stop:vf}
49 var v=localStorage.getItem("sfu")
50 if(v)
51 conf.sfu=v;v=localStorage.getItem("volume")
52 if(v)
53 conf.gain=Number(v)})()
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=[]
63 function build_parts(first){var i,j,c,n,v,s=first,p=s.parts,st=[],r=""
78 v=r.slice(j)
79 if(r.length+v.length*n>128)
82 r+=v}
89 v=s.text[0]
90 for(i=0;i<first.parts.length;i++){if(first.parts[i]==v)
92 function midi_start(){var v,p_v,c,i,ii
93 for(v=0;v<voice_tb.length;v++){p_v=voice_tb[v]
97 c=p_v.v<9?p_v.v:p_v.v+1
106 chn[v]=c
108 function do_block(s){var v=s.v,c=chn[v]
109 switch(s.subtype){case"midichn":chn[v]=s.chn
116 chn[v]=c=9}
137 g.chn=chn[s.v]
220 v=s.v
221 c=chn[v]
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
250 if(s.type==C.NOTE&&s.v==v)
258 function set_ctrl(po,s2,t){var i,p_v=s2.p_v,tim=s2.time,s={subtype:"midictl",p_v:p_v,v:p_v.v,chn:p_v.chn}
264 po.p_v[s2.v]=true}
281 while(1){if(!po.p_v[s.v])
432 parm=po.params[instr][k],o=po.ac.createBufferSource(),v=s.p_v.vol==undefined?1:s.p_v.vol
433 if(!v||!parm)
444 if(parm.hold<0.002){g.gain.setValueAtTime(v,t)}else{if(parm.attack<0.002){g.gain.setValueAtTime(v,t)}else{g.gain.setValueAtTime(0,t)
445 g.gain.linearRampToValueAtTime(v,t+parm.attack)}
446 g.gain.setValueAtTime(v,t+parm.hold)}
447 g.gain.exponentialRampToValueAtTime(parm.sustain*v,t+parm.decay)
481 gain=null}},set_vol:function(v){if(gain)
482 gain.gain.value=v}}}