Advanced Refinements to Score
for part in score.parts: # score is returned from the previous process_and_output_score function call
# Iterate through all elements in the part
for element in part.recurse():
#Make changes e.g. add Articulation and Expression
musicxml_path = '/mnt/data/song_musicxml.xml'
midi_path = '/mnt/data/song_midi.midi'
score.write('musicxml', fp=musicxml_path)
score.write('midi', fp=midi_path)when to use it
Community prompt sourced from the open-source GitHub repo LouisShark/chatgpt_system_prompt (MIT). A "Advanced Refinements to Score" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
writingcommunitygeneral
source
LouisShark/chatgpt_system_prompt · MIT
more in Writing
Writing✓ tested
Explain anything to a smart friend
great teacher who refuses to dumb things down
Writing✓ tested
Line-edit my draft (keep my voice)
sharp copy editor who tightens without flattening
Writing✓ tested
Outline a long piece before you write it
editor who structures the argument before a word is drafted