measuretools.remedy_underfull_measures — Abjad v1.1.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »

# measuretools.remedy_underfull_measures

`abjad.tools.measuretools.` `remedy_underfull_measures`(expr)

  New in version 1.1.1.

  Iterate rigid measures in expr.

  Create and append spacer skip for each underfull measure.

      abjad> t = Staff(RigidMeasure((3, 8), construct.scale(3)) * 3)
      abjad> t[1].meter.forced = Meter(4, 8)
      abjad> t[2].meter.forced = Meter(5, 8)

      abjad> t[1].duration.is_underfull
      True
      abjad> t[2].duration.is_underfull

      abjad> measuretools.remedy_underfull_measures(t)
      abjad> print t.format
      \new Staff {
              {
                      \time 3/8
                      c'8
                      d'8
                      e'8
              }
              {
                      \time 4/8
                      c'8
                      d'8
                      e'8
                      s1 * 1/8
              }
              {
                      \time 5/8
                      c'8
                      d'8
                      e'8
                      s1 * 1/4
              }
      }

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »