From ed84c6add1c34895c8548632d50a19e9125b28d8 Mon Sep 17 00:00:00 2001 From: Matt Pfeiffer Date: Sat, 20 Apr 2024 12:26:37 -0500 Subject: [PATCH] Removes Codable from definitions (#41) --- Sources/Tonic/Chord.swift | 2 +- Sources/Tonic/ChordType.swift | 2 +- Sources/Tonic/Key.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Tonic/Chord.swift b/Sources/Tonic/Chord.swift index c58932a..945e346 100644 --- a/Sources/Tonic/Chord.swift +++ b/Sources/Tonic/Chord.swift @@ -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 diff --git a/Sources/Tonic/ChordType.swift b/Sources/Tonic/ChordType.swift index dbe8b64..fe7a053 100644 --- a/Sources/Tonic/ChordType.swift +++ b/Sources/Tonic/ChordType.swift @@ -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` diff --git a/Sources/Tonic/Key.swift b/Sources/Tonic/Key.swift index 85abed0..7ccca44 100644 --- a/Sources/Tonic/Key.swift +++ b/Sources/Tonic/Key.swift @@ -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