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