@@ -90,7 +90,7 @@ def place(document: dict) -> None:
|
||||
for note in span.notes:
|
||||
positions = (voicing.bass,) if note['_guitar_lane'] == 'bass' else voicing[1:]
|
||||
for pitch in generator.fretboard.chord_pitches(span.harmony, positions):
|
||||
note['pitches'].append({**pitch, 'id': f'{note["id"]}-s{pitch["tablature"]["string"]}', 'duration': note['duration'], 'written': note['written']})
|
||||
note['pitches'].append({**pitch, 'id': f'{note["id"]}_s{pitch["tablature"]["string"]}', 'duration': note['duration'], 'written': note['written']})
|
||||
for field in ('_harmony', '_guitar_profile', '_guitar_lane'):
|
||||
note.pop(field, None)
|
||||
document['staves'][0]['tablature'] = True
|
||||
|
||||
Reference in New Issue
Block a user