@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user