home/writing/advanced-refinements-to-score

Advanced Refinements to Score

GPTClaudeGemini··452 copies·updated 2026-07-14
advanced-refinements-to-score.prompt
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