pymusicxml.music_xml_objects.pad_with_rests

pymusicxml.music_xml_objects.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