noteOn method
Uma tecla apertada. Devolve a tentativa só se ela fecha agora (o acorde certo que já passou de holdMs não fecha aqui: é o tick).
Implementation
ChordAttempt? noteOn(int pitch, double atMs) {
_held.add(pitch);
if (_held.length > _largest.length) _largest = {..._held};
_matchedSince = _matches() ? (_matchedSince ?? atMs) : null;
return tick(atMs);
}