Measure constructor

Measure({
  1. bool autoBeaming = true,
  2. BeamingMode beamingMode = BeamingMode.automatic,
  3. List<List<int>> manualBeamGroups = const [],
  4. TimeSignature? inheritedTimeSignature,
  5. int? number,
})

Creates a new Measure.

autoBeaming defaults to true so that eighth notes and smaller are automatically grouped with beams. Set to false to use individual flags.

beamingMode controls the beaming strategy; normally BeamingMode.automatic.

manualBeamGroups is a list of index groups for explicit beam control. Example: [[0, 1, 2], [3, 4]] groups the first three notes and the next two notes into separate beams.

inheritedTimeSignature is set automatically by LayoutEngine when no TimeSignature is present in the measure but one was declared earlier.

Implementation

Measure({
  this.autoBeaming = true,
  this.beamingMode = BeamingMode.automatic,
  this.manualBeamGroups = const [],
  this.inheritedTimeSignature,
  this.number,
});