Lines Matching refs:chord
4 //grid.js-module to insert a chord grid before or after a tune
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
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
141 w=abc.strwh(chord[beat_i])[0]
147 if(s.time<wm){if(chord.length){chords.push(chord)
150 chords.push(chord)
152 chord=[]
163 if(chord.length){bars.push('')
164 chords.push(chord)}