PatternNote.rest constructor

const PatternNote.rest({
  1. required int ticks,
  2. required String type,
  3. int staff = 1,
  4. bool inner = false,
})

Uma pausa de ticks unidades na pauta staff (o 1.º tempo da cadência do nº 39 do Hanon, em que a direita espera): não soa, não tem id e a pitch só serve para quem confere a lista (a pausa não conta nela).

Implementation

const PatternNote.rest({
  required this.ticks,
  required this.type,
  this.staff = 1,
  this.inner = false,
}) : pitch = const Pitch('C', 0, 4),
     dots = 0,
     tuplet = false,
     bareTuplet = false,
     chord = false,
     finger = null,
     fingerBelow = false,
     mark = null,
     slurStart = false,
     slurStop = false,
     shownStaff = null,
     held = false,
     hollow = false,
     clefChange = null,
     rest = true;