singleSpelled function

bool singleSpelled(
  1. Pitch pitch
)

Se a nota se escreve com um acidente só (ou nenhum). A dupla alteração (Dó𝄪, Fá𝄫) o noteLabel não desenha, então o gerador não a usa.

Implementation

bool singleSpelled(Pitch pitch) => pitch.alter.abs() <= 1;