Lines Matching refs:s
28 function go_global_time(s,sel){var s2,bar_time,seq
29 if(sel.m<=1){if(sel.m==1){for(s2=s;s2;s2=s2.ts_next){if(s2.type==C.BAR&&s2.time!=0)
32 s=s2}}else{for(;s;s=s.ts_next){if(s.type==C.BAR&&s.bar_num>=sel.m)
34 if(!s)
37 for(s=s.ts_next;s;s=s.ts_next){if(s.type==C.BAR&&s.bar_num==sel.m){if(--seq==0)
39 if(!s)
42 return s;bar_time=s.time+sel.t
43 while(s.time<bar_time){s=s.ts_next
44 if(!s)
45 return s}
46 do{s=s.ts_prev}while(!s.seqst)
47 return s}
48 var s,s2,sy,p_voice,v
49 s=this.get_tsfirst()
50 if(cfmt.clip[0].m>0||cfmt.clip[0].t>0){s=go_global_time(s,cfmt.clip[0])
51 if(!s){this.set_tsfirst(null)
54 for(s2=this.get_tsfirst();s2!=s;s2=s2.ts_next){switch(s2.type){case C.CLEF:s2.p_v.clef=s2
63 for(s2=s;s2;s2=s2.ts_next){if(s2.v==v){delete s2.prev
66 this.set_tsfirst(s)
67 delete s.ts_prev}
68 s=go_global_time(s,cfmt.clip[1])
69 if(!s)
71 do{s=s.ts_next
72 if(!s)
73 return}while(!s.seqst)
75 for(s2=s.ts_prev;s2;s2=s2.ts_prev){if(s2.v==v){delete s2.next
79 delete s.ts_prev.ts_next},do_pscom:function(of,text){if(text.slice(0,5)=="clip ")