Skip to content

Commit

Permalink
Removes Codable from definitions (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt54 authored Apr 20, 2024
1 parent 76c665b commit ed84c6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Tonic/Chord.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Foundation
///
/// A representation of a chord as a set of note classes, with a root note class,
/// and an inversion defined by the lowest note in the chord.
public struct Chord: Equatable, Codable {
public struct Chord: Equatable {
/// Root note class of the chord
public let root: NoteClass

Expand Down
2 changes: 1 addition & 1 deletion Sources/Tonic/ChordType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Foundation

/// Chord type as defined by a set of intervals from a root note class
public enum ChordType: String, CaseIterable, Codable {
public enum ChordType: String, CaseIterable {

//MARK: - Triads
/// Major Triad: Major Third, Perfect Fifth, e.g. `C`
Expand Down
2 changes: 1 addition & 1 deletion Sources/Tonic/Key.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Foundation
/// The key is the set of notes that are played in a composition, or portion of a composition.
///
/// A key is composed of a Root ``Note``, and a ``Scale``.
public struct Key: Equatable, Codable {
public struct Key: Equatable {
/// The primary note class of the key, also known as the tonic
public let root: NoteClass

Expand Down

0 comments on commit ed84c6a

Please sign in to comment.