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
-7
View File
@@ -190,10 +190,6 @@ def write_note(parent, event: dict, voice: str, divisions: int, tuplets: list[di
element(group, 'tuplet-dot')
if tremolo := event.get('tremolo'):
element(element(notations, 'ornaments'), 'tremolo', tremolo['marks'], type=tremolo['type'])
if pitch and (tab := pitch.get('tablature')):
technical = element(notations, 'technical')
element(technical, 'string', tab['string'])
element(technical, 'fret', tab['fret'])
if not len(notations):
node.remove(notations)
if index == 0:
@@ -217,9 +213,6 @@ def musicxml_tree(document: dict) -> ElementTree.ElementTree:
element(identification, 'creator', metadata.get('composer', ''), type='composer')
miscellaneous = element(identification, 'miscellaneous')
element(miscellaneous, 'miscellaneous-field', metadata.get('style', 'Medium Swing'), name='vamp:style')
if metadata.get('transpose_origin'):
from generator.model import pitch_name
element(miscellaneous, 'miscellaneous-field', pitch_name(metadata['transpose_origin']), name='vamp:tonic')
defaults = element(root, 'defaults')
element(defaults, 'music-font', font_family='Petaluma')
element(defaults, 'word-font', font_family='Petaluma Script')