Skip to content

PitchClass should allow working with IntervalClass in transposeBy, interval methods #248

@albertms10

Description

@albertms10

// TODO(albertms10): expect [IntervalClass]. See #248.
PitchClass transposeBy(Interval interval) =>
PitchClass(semitones + interval.semitones);

// TODO(albertms10): return [IntervalClass]. See #248.
Interval interval(PitchClass other) {
final diff = difference(other);

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is neededrefactorThe code needs to be refactored

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions