SightNote constructor

const SightNote(
  1. int ticks, {
  2. List<SightTone> tones = const [],
  3. bool tie = false,
  4. SightTuplet? tuplet,
  5. List<SightTone> grace = const [],
  6. bool longGrace = false,
  7. SightOrnament? ornament,
  8. Set<SightArticulation> marks = const {},
  9. SightSlur? slur,
  10. bool cue = false,
  11. int tremolo = 0,
  12. bool hidden = false,
})

Implementation

const SightNote(
  this.ticks, {
  this.tones = const [],
  this.tie = false,
  this.tuplet,
  this.grace = const [],
  this.longGrace = false,
  this.ornament,
  this.marks = const {},
  this.slur,
  this.cue = false,
  this.tremolo = 0,
  this.hidden = false,
}) : assert(ticks > 0),
     assert(tremolo >= 0 && tremolo <= 3);