Skip to content

PitchClass.resolveSpelling should return the Note with the closest accidental #50

@albertms10

Description

@albertms10

Affected code

// TODO(albertms10): return the note with the closest accidental #50.
.sorted(
(a, b) => a.accidental.semitones
.abs()
.compareTo(b.accidental.semitones.abs()),
)

Failing tests

Note

Addressed in #88.

expect(const KeySignature(10, Accidental.sharp).tonalities, {
const Tonality(Note.aSharp, Modes.major),
// TODO(albertms10): Failing test #50:
// Should be `Note(Notes.f, Accidental.doubleSharp)`.
const Tonality(Note.g, Modes.minor),
});

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions