Lines Matching defs:s

5 abc2svg.grid={pl:'<path class="stroke" stroke-width="1" d="M',block_gen:function(of,s){if(s.subtype!="grid"){of(s)
124 build_grid(s.chords,s.bars,font,s.wmx)
126 function get_beat(s){var beat=C.BLEN/4
127 if(!s.a_meter[0]||s.a_meter[0].top[0]=='C'||!s.a_meter[0].bot)
129 beat=C.BLEN/s.a_meter[0].bot[0]|0
130 if(s.a_meter[0].bot[0]==8&&s.a_meter[0].top[0]%3==0)
133 function build_chords(sb){var s,i,w,bt,rep,bars=[],chords=[],chord=[],beat=get_beat(voice_tb[0].meter),wm=voice_tb[0].meter.wmeasure,cur_beat=0,beat_i=0,wmx=0
135 for(s=tsfirst;s;s=s.ts_next){while(s.time>cur_beat){if(beat_i<3)
138 switch(s.type){case C.NOTE:case C.REST:if(!s.a_gch)
140 for(i=0;i<s.a_gch.length;i++){if(s.a_gch[i].type=='g'){if(!chord[beat_i]){chord[beat_i]=s.a_gch[i].text
146 case C.BAR:bt=grid.norep?'|':s.bar_type
147 if(s.time<wm){if(chord.length){chords.push(chord)
148 bars.push(bt)}else{bars[0]=bt}}else{if(!s.bar_num)
153 cur_beat=s.time
157 while(s.ts_next&&s.ts_next.type==C.BAR)
158 s=s.ts_next
160 case C.METER:beat=get_beat(s)
161 wm=s.wmeasure
171 if(grid){var C=abc2svg.C,tsfirst=this.get_tsfirst(),voice_tb=this.get_voice_tb(),p_v=voice_tb[this.get_top_v()],s={type:C.BLOCK,subtype:'grid',dur:0,time:0,p_v:p_v,v:p_v.v,st:p_v.st}
172 build_chords(s)
173 if(!s.chords){}else if(grid.nomusic){this.set_tsfirst(s)}else if(grid.n<0){for(var s2=tsfirst;s2.ts_next;s2=s2.ts_next);s.time=s2.time
174 s.prev=p_v.last_sym.prev
175 s.prev.next=s
176 s.next=p_v.last_sym
177 p_v.last_sym.prev=s
178 s.ts_prev=s2.ts_prev
179 s.ts_prev.ts_next=s
180 s.ts_next=s2
181 s2.ts_prev=s
182 if(s2.seqst){s.seqst=true
183 s2.seqst=false}}else{s.next=p_v.sym
184 s.ts_next=tsfirst
185 tsfirst.ts_prev=s
186 this.set_tsfirst(s)
187 p_v.sym.prev=s
188 p_v.sym=s}}
190 parm="1";parm=parm.split(/\s+/)