Skip to content

Script that expands the repetition marks, such as repetition bars, Da Capo or Dal Segno, in a MusicXML score

Notifications You must be signed in to change notification settings

DIDONEproject/RepetitionsExpander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

DOI

Repetitions-Expander

Script that expands the repetition marks, such as repetition bars, Da Capo or Dal Segno, in a MusicXML score.

Copy the file in your project directory and include it in your main script. Given a MusicXML score opened with Music21, a possible execution example would be:

repeat_elements = get_repeat_elements(score)
expanded_score = expand_score_repetitions(score, repeat_elements)

The first line returns a list containing all the repeat elements and the bar where they are found. For instance: [('Segno', 17), ('Dal Segno', 50)]. While the second line returns a complete music21 score.

About

Script that expands the repetition marks, such as repetition bars, Da Capo or Dal Segno, in a MusicXML score

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages