first property

MelodyNote? get first

A nota do tempo 1 do trecho: a primeira forte, ou a primeira nota se não há forte. null num trecho sem nota (um silêncio).

Implementation

MelodyNote? get first {
  if (strong.isNotEmpty) return strong.first;
  return notes.isEmpty ? null : notes.first;
}