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 opts a bar that declares no TimeSignature of its own into capacity checking in add. Nothing in the package writes it for you — see the field's own documentation for why that changed.

Implementation

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