measuretools.make_underfull_spacer_skip — Abjad v1.1.1 documentation

### Navigation

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

# measuretools.make_underfull_spacer_skip

`abjad.tools.measuretools.` `make_underfull_spacer_skip`(rigid_measure)

  New in version 1.1.1.

  If rigid_measure is underfull, create spacer skip with the correct duration to remedy underfull measure.

      abjad> rigid_measure = RigidMeasure((4, 12), construct.scale(4))
      abjad> rigid_measure.meter.forced = Meter(5, 12)
      abjad> rigid_measure.duration.is_underfull
      True

      abjad> skip = measuretools.make_underfull_spacer_skip(rigid_measure)
      abjad> skip
      Skip(1 * 1/8)

      abjad> rigid_measure.append(skip)
      abjad> rigid_measure.duration.is_underfull
      False
      abjad> print rigid_measure.format
      {
              \time 5/12
              \scaleDurations #'(2 . 3) {
                      c'8
                      d'8
                      e'8
                      f'8
                      s1 * 1/8
              }
      }

  If rigid_measure is full or overfull, return `None`.

### Navigation

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