From 3448de35d37355bcd0868b09aa39d6207a3b809b Mon Sep 17 00:00:00 2001 From: Matt Pfeiffer Date: Sat, 13 Apr 2024 09:00:25 -0500 Subject: [PATCH] Removes Codable from definitions --- 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 e370987..f24ac0b 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 4a54149..1e40063 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 { /// Major Triad: Major Third, Perfect Fifth case majorTriad 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