Tab Generation
ci / checks (push) Successful in 1h19m14s

This commit is contained in:
khodowany
2026-09-20 16:20:43 -05:00
parent 68ded4d8c8
commit cf7c0c010c
423 changed files with 1422 additions and 1332 deletions
+1 -8
View File
@@ -70,13 +70,6 @@ class ScoreIndex:
def pitch_position(self, tone: dict, time: Fraction) -> float:
state = self.state(time)
clef = state['clef']
if clef['sign'] == 'TAB':
if 'tablature' not in tone:
raise EngravingError(f'{tone["id"]}: TAB notes require explicit string and fret')
string = tone['tablature']['string']
if not 1 <= string <= state['staff_details']['lines']:
raise EngravingError(f'{tone["id"]}: TAB string is outside the staff')
return 2 * (state['staff_details']['lines'] - string)
pitch = tone.get('unpitched', tone)
sign = clef['sign']
reference = {'G': 4 * 7 + 4, 'F': 3 * 7 + 3, 'C': 4 * 7}.get(sign, 4 * 7 + 4)
@@ -101,7 +94,7 @@ class ScoreIndex:
if event.value.get('hidden') or tone.get('print', {}).get('print-object') == 'no' or hidden_head:
result[tone['id']] = False
continue
if 'unpitched' in tone or state['clef']['sign'] == 'TAB':
if 'unpitched' in tone:
result[tone['id']] = False
continue
identity = (tone['letter'], tone['octave'])