pymusicxml.score_components.pad_with_rests

pymusicxml.score_components.pad_with_rests(components, desired_length)[source]

Appends rests to a list of components to fill out the desired length

Parameters
  • components – a list of MusicXMLComponents

  • desired_length – in quarters

Returns

an expanded list of components