Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aure committed Aug 11, 2024
1 parent 6d020f7 commit cc8c546
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/Tonic/NoteClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ public struct NoteClass: Equatable, Hashable, Codable {
/// Accidental of the note class
public var accidental: Accidental

private static let canonicalOctave = Note.MiddleCStandard.yamaha.middleCNumber

/// A representative note for this class, in the canonical octave, which is 4
/// A representative note for this class, in the canonical octave
public var canonicalNote: Note {
Note(letter, accidental: accidental, octave: NoteClass.canonicalOctave)
Note(letter, accidental: accidental, octave: Note.MiddleCStandard.yamaha.middleCNumber)
}

/// Initialize the note class
Expand Down

0 comments on commit cc8c546

Please sign in to comment.