Build Information
Successful build of MusicTheory, reference 1.3.1 (c98ffa
), with Swift 6.0 for Linux on 29 Nov 2024 20:18:24 UTC.
Swift 6 data race errors: 132
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
116 | public static let m10 = Interval(quality: .minor, degree: 10, semitones: 15)
117 | /// Minor thirteenth.
118 | public static let m13 = Interval(quality: .minor, degree: 13, semitones: 20)
| |- warning: static property 'm13' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm13' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 | /// Minor fourteenth.
120 | public static let m14 = Interval(quality: .minor, degree: 14, semitones: 22)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:195:21: warning: static property 'A13' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
193 | public static let A12 = Interval(quality: .augmented, degree: 12, semitones: 20)
194 | /// Augmented thirteenth.
195 | public static let A13 = Interval(quality: .augmented, degree: 13, semitones: 22)
| |- warning: static property 'A13' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'A13' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 | /// Augmented fourteenth.
197 | public static let A14 = Interval(quality: .augmented, degree: 14, semitones: 24)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:91:21: warning: static property 'P1' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
89 |
90 | /// Unison.
91 | public static let P1 = Interval(quality: .perfect, degree: 1, semitones: 0)
| |- warning: static property 'P1' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'P1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 | /// Perfect fourth.
93 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
[8/13] Compiling MusicTheory Chord.swift
/host/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:112:21: warning: static property 'flat' is not concurrency-safe because non-'Sendable' type 'Accidental' may have shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// The enum used for calculating values of the `Key`s and `Pitche`s.
103 | public enum Accidental: Codable, Equatable, Hashable, RawRepresentable, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making enum 'Accidental' conform to the 'Sendable' protocol
104 | /// No accidental.
105 | case natural
:
110 |
111 | /// Reduces the `Key` or `Pitch` value one halfstep below.
112 | public static let flat: Accidental = .flats(amount: 1)
| |- warning: static property 'flat' is not concurrency-safe because non-'Sendable' type 'Accidental' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'flat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | /// Increases the `Key` or `Pitch` value one halfstep above.
114 | public static let sharp: Accidental = .sharps(amount: 1)
/host/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:114:21: warning: static property 'sharp' is not concurrency-safe because non-'Sendable' type 'Accidental' may have shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// The enum used for calculating values of the `Key`s and `Pitche`s.
103 | public enum Accidental: Codable, Equatable, Hashable, RawRepresentable, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making enum 'Accidental' conform to the 'Sendable' protocol
104 | /// No accidental.
105 | case natural
:
112 | public static let flat: Accidental = .flats(amount: 1)
113 | /// Increases the `Key` or `Pitch` value one halfstep above.
114 | public static let sharp: Accidental = .sharps(amount: 1)
| |- warning: static property 'sharp' is not concurrency-safe because non-'Sendable' type 'Accidental' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sharp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | /// Reduces the `Key` or `Pitch` value amount two halfsteps below.
116 | public static let doubleFlat: Accidental = .flats(amount: 2)
/host/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:116:21: warning: static property 'doubleFlat' is not concurrency-safe because non-'Sendable' type 'Accidental' may have shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// The enum used for calculating values of the `Key`s and `Pitche`s.
103 | public enum Accidental: Codable, Equatable, Hashable, RawRepresentable, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making enum 'Accidental' conform to the 'Sendable' protocol
104 | /// No accidental.
105 | case natural
:
114 | public static let sharp: Accidental = .sharps(amount: 1)
115 | /// Reduces the `Key` or `Pitch` value amount two halfsteps below.
116 | public static let doubleFlat: Accidental = .flats(amount: 2)
| |- warning: static property 'doubleFlat' is not concurrency-safe because non-'Sendable' type 'Accidental' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'doubleFlat' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | /// Increases the `Key` or `Pitch` value two halfsteps above.
118 | public static let doubleSharp: Accidental = .sharps(amount: 2)
/host/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:118:21: warning: static property 'doubleSharp' is not concurrency-safe because non-'Sendable' type 'Accidental' may have shared mutable state; this is an error in the Swift 6 language mode
101 |
102 | /// The enum used for calculating values of the `Key`s and `Pitche`s.
103 | public enum Accidental: Codable, Equatable, Hashable, RawRepresentable, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making enum 'Accidental' conform to the 'Sendable' protocol
104 | /// No accidental.
105 | case natural
:
116 | public static let doubleFlat: Accidental = .flats(amount: 2)
117 | /// Increases the `Key` or `Pitch` value two halfsteps above.
118 | public static let doubleSharp: Accidental = .sharps(amount: 2)
| |- warning: static property 'doubleSharp' is not concurrency-safe because non-'Sendable' type 'Accidental' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'doubleSharp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | /// A flag for `description` function that determines if it should use double sharp and double flat symbols.
/host/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:122:21: warning: static property 'shouldUseDoubleFlatAndDoubleSharpNotation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
120 | /// A flag for `description` function that determines if it should use double sharp and double flat symbols.
121 | /// It's useful to set it false where the fonts do not support that symbols. Defaults true.
122 | public static var shouldUseDoubleFlatAndDoubleSharpNotation = true
| |- warning: static property 'shouldUseDoubleFlatAndDoubleSharpNotation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shouldUseDoubleFlatAndDoubleSharpNotation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shouldUseDoubleFlatAndDoubleSharpNotation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 |
124 | // MARK: RawRepresentable
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:125:21: warning: static property 'M3' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
123 | public static let M2 = Interval(quality: .major, degree: 2, semitones: 2)
124 | /// Major third.
125 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
| |- warning: static property 'M3' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | /// Major sixth.
127 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:108:21: warning: static property 'm3' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
106 | public static let m2 = Interval(quality: .minor, degree: 2, semitones: 1)
107 | /// Minor third.
108 | public static let m3 = Interval(quality: .minor, degree: 3, semitones: 3)
| |- warning: static property 'm3' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | /// Minor sixth.
110 | public static let m6 = Interval(quality: .minor, degree: 6, semitones: 8)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:95:21: warning: static property 'P5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
93 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
94 | /// Perfect fifth.
95 | public static let P5 = Interval(quality: .perfect, degree: 5, semitones: 7)
| |- warning: static property 'P5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'P5' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | /// Octave.
97 | public static let P8 = Interval(quality: .perfect, degree: 8, semitones: 12)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:148:21: warning: static property 'd5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
146 | public static let d4 = Interval(quality: .diminished, degree: 4, semitones: 4)
147 | /// Diminished fifth.
148 | public static let d5 = Interval(quality: .diminished, degree: 5, semitones: 6)
| |- warning: static property 'd5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'd5' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
149 | /// Diminished sixth.
150 | public static let d6 = Interval(quality: .diminished, degree: 6, semitones: 7)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:179:21: warning: static property 'A5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
177 | public static let A4 = Interval(quality: .augmented, degree: 4, semitones: 6)
178 | /// Augmented fifth.
179 | public static let A5 = Interval(quality: .augmented, degree: 5, semitones: 8)
| |- warning: static property 'A5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'A5' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 | /// Augmented sixth.
181 | public static let A6 = Interval(quality: .augmented, degree: 6, semitones: 10)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:127:21: warning: static property 'M6' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
125 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
126 | /// Major sixth.
127 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
| |- warning: static property 'M6' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M6' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 | /// Major seventh.
129 | public static let M7 = Interval(quality: .major, degree: 7, semitones: 11)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:129:21: warning: static property 'M7' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
127 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
128 | /// Major seventh.
129 | public static let M7 = Interval(quality: .major, degree: 7, semitones: 11)
| |- warning: static property 'M7' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M7' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
130 | /// Major ninth.
131 | public static let M9 = Interval(quality: .major, degree: 9, semitones: 14)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:112:21: warning: static property 'm7' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
110 | public static let m6 = Interval(quality: .minor, degree: 6, semitones: 8)
111 | /// Minor seventh.
112 | public static let m7 = Interval(quality: .minor, degree: 7, semitones: 10)
| |- warning: static property 'm7' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm7' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | /// Minor ninth.
114 | public static let m9 = Interval(quality: .minor, degree: 9, semitones: 13)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:123:21: warning: static property 'M2' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
121 |
122 | /// Major second.
123 | public static let M2 = Interval(quality: .major, degree: 2, semitones: 2)
| |- warning: static property 'M2' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /// Major third.
125 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:93:21: warning: static property 'P4' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
91 | public static let P1 = Interval(quality: .perfect, degree: 1, semitones: 0)
92 | /// Perfect fourth.
93 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
| |- warning: static property 'P4' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'P4' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | /// Perfect fifth.
95 | public static let P5 = Interval(quality: .perfect, degree: 5, semitones: 7)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:131:21: warning: static property 'M9' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
129 | public static let M7 = Interval(quality: .major, degree: 7, semitones: 11)
130 | /// Major ninth.
131 | public static let M9 = Interval(quality: .major, degree: 9, semitones: 14)
| |- warning: static property 'M9' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M9' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
132 | /// Major tenth.
133 | public static let M10 = Interval(quality: .major, degree: 10, semitones: 16)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:99:21: warning: static property 'P11' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
97 | public static let P8 = Interval(quality: .perfect, degree: 8, semitones: 12)
98 | /// Perfect eleventh.
99 | public static let P11 = Interval(quality: .perfect, degree: 11, semitones: 17)
| |- warning: static property 'P11' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'P11' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | /// Perfect twelfth.
101 | public static let P12 = Interval(quality: .perfect, degree: 12, semitones: 19)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:135:21: warning: static property 'M13' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
133 | public static let M10 = Interval(quality: .major, degree: 10, semitones: 16)
134 | /// Major thirteenth.
135 | public static let M13 = Interval(quality: .major, degree: 13, semitones: 21)
| |- warning: static property 'M13' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M13' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
136 | /// Major fourteenth.
137 | public static let M14 = Interval(quality: .major, degree: 14, semitones: 23)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:114:21: warning: static property 'm9' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
112 | public static let m7 = Interval(quality: .minor, degree: 7, semitones: 10)
113 | /// Minor ninth.
114 | public static let m9 = Interval(quality: .minor, degree: 9, semitones: 13)
| |- warning: static property 'm9' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm9' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | /// Minor tenth.
116 | public static let m10 = Interval(quality: .minor, degree: 10, semitones: 15)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:187:21: warning: static property 'A9' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
185 | public static let A8 = Interval(quality: .augmented, degree: 8, semitones: 13)
186 | /// Augmented ninth.
187 | public static let A9 = Interval(quality: .augmented, degree: 9, semitones: 15)
| |- warning: static property 'A9' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'A9' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
188 | /// Augmented tenth.
189 | public static let A10 = Interval(quality: .augmented, degree: 10, semitones: 17)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:191:21: warning: static property 'A11' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
189 | public static let A10 = Interval(quality: .augmented, degree: 10, semitones: 17)
190 | /// Augmented eleventh.
191 | public static let A11 = Interval(quality: .augmented, degree: 11, semitones: 18)
| |- warning: static property 'A11' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'A11' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
192 | /// Augmented twelfth.
193 | public static let A12 = Interval(quality: .augmented, degree: 12, semitones: 20)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:118:21: warning: static property 'm13' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
116 | public static let m10 = Interval(quality: .minor, degree: 10, semitones: 15)
117 | /// Minor thirteenth.
118 | public static let m13 = Interval(quality: .minor, degree: 13, semitones: 20)
| |- warning: static property 'm13' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm13' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 | /// Minor fourteenth.
120 | public static let m14 = Interval(quality: .minor, degree: 14, semitones: 22)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:195:21: warning: static property 'A13' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
193 | public static let A12 = Interval(quality: .augmented, degree: 12, semitones: 20)
194 | /// Augmented thirteenth.
195 | public static let A13 = Interval(quality: .augmented, degree: 13, semitones: 22)
| |- warning: static property 'A13' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'A13' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 | /// Augmented fourteenth.
197 | public static let A14 = Interval(quality: .augmented, degree: 14, semitones: 24)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:91:21: warning: static property 'P1' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
89 |
90 | /// Unison.
91 | public static let P1 = Interval(quality: .perfect, degree: 1, semitones: 0)
| |- warning: static property 'P1' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'P1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 | /// Perfect fourth.
93 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
[9/14] Compiling MusicTheory ChordProgression.swift
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:62:21: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[ChordProgressionNode]' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// A node of chord progression in intervals.
25 | public enum ChordProgressionNode: Int, CustomStringConvertible, Codable, Hashable {
| `- note: consider making enum 'ChordProgressionNode' conform to the 'Sendable' protocol
26 | /// First-degree node
27 | case i
:
60 |
61 | /// All nodes.
62 | public static let all: [ChordProgressionNode] = [.i, .ii, .iii, .iv, .v, .vi, .vii]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[ChordProgressionNode]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | // MARK: CustomStringConvertible
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:83:21: warning: static property 'allNodes' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
| |- warning: static property 'allNodes' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allNodes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | /// I - V - VI - IV progression.
85 | public static let i_v_vi_iv = ChordProgression(nodes: [.i, .v, .vi, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:85:21: warning: static property 'i_v_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
84 | /// I - V - VI - IV progression.
85 | public static let i_v_vi_iv = ChordProgression(nodes: [.i, .v, .vi, .iv])
| |- warning: static property 'i_v_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_v_vi_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | /// VI - V - IV - V progression.
87 | public static let vi_v_iv_v = ChordProgression(nodes: [.vi, .v, .iv, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:87:21: warning: static property 'vi_v_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
85 | public static let i_v_vi_iv = ChordProgression(nodes: [.i, .v, .vi, .iv])
86 | /// VI - V - IV - V progression.
87 | public static let vi_v_iv_v = ChordProgression(nodes: [.vi, .v, .iv, .v])
| |- warning: static property 'vi_v_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'vi_v_iv_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | /// I - VI - IV - V progression.
89 | public static let i_vi_iv_v = ChordProgression(nodes: [.i, .vi, .iv, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:89:21: warning: static property 'i_vi_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
87 | public static let vi_v_iv_v = ChordProgression(nodes: [.vi, .v, .iv, .v])
88 | /// I - VI - IV - V progression.
89 | public static let i_vi_iv_v = ChordProgression(nodes: [.i, .vi, .iv, .v])
| |- warning: static property 'i_vi_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_vi_iv_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | /// I - IV - VI - V progression.
91 | public static let i_iv_vi_v = ChordProgression(nodes: [.i, .iv, .vi, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:91:21: warning: static property 'i_iv_vi_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
89 | public static let i_vi_iv_v = ChordProgression(nodes: [.i, .vi, .iv, .v])
90 | /// I - IV - VI - V progression.
91 | public static let i_iv_vi_v = ChordProgression(nodes: [.i, .iv, .vi, .v])
| |- warning: static property 'i_iv_vi_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_iv_vi_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 | /// I - V - IV - V progression.
93 | public static let i_v_iv_v = ChordProgression(nodes: [.i, .v, .iv, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:93:21: warning: static property 'i_v_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
91 | public static let i_iv_vi_v = ChordProgression(nodes: [.i, .iv, .vi, .v])
92 | /// I - V - IV - V progression.
93 | public static let i_v_iv_v = ChordProgression(nodes: [.i, .v, .iv, .v])
| |- warning: static property 'i_v_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_v_iv_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | /// VI - II - V - I progression.
95 | public static let vi_ii_v_i = ChordProgression(nodes: [.vi, .ii, .v, .i])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:95:21: warning: static property 'vi_ii_v_i' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
93 | public static let i_v_iv_v = ChordProgression(nodes: [.i, .v, .iv, .v])
94 | /// VI - II - V - I progression.
95 | public static let vi_ii_v_i = ChordProgression(nodes: [.vi, .ii, .v, .i])
| |- warning: static property 'vi_ii_v_i' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'vi_ii_v_i' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | /// I - VI - II - V progression.
97 | public static let i_vi_ii_v = ChordProgression(nodes: [.i, .vi, .ii, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:97:21: warning: static property 'i_vi_ii_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
95 | public static let vi_ii_v_i = ChordProgression(nodes: [.vi, .ii, .v, .i])
96 | /// I - VI - II - V progression.
97 | public static let i_vi_ii_v = ChordProgression(nodes: [.i, .vi, .ii, .v])
| |- warning: static property 'i_vi_ii_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_vi_ii_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | /// I - IV - II - V progression.
99 | public static let i_iv_ii_v = ChordProgression(nodes: [.i, .iv, .ii, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:99:21: warning: static property 'i_iv_ii_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
97 | public static let i_vi_ii_v = ChordProgression(nodes: [.i, .vi, .ii, .v])
98 | /// I - IV - II - V progression.
99 | public static let i_iv_ii_v = ChordProgression(nodes: [.i, .iv, .ii, .v])
| |- warning: static property 'i_iv_ii_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_iv_ii_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | /// VI - IV - I - V progression.
101 | public static let vi_iv_i_v = ChordProgression(nodes: [.vi, .iv, .i, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:101:21: warning: static property 'vi_iv_i_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
99 | public static let i_iv_ii_v = ChordProgression(nodes: [.i, .iv, .ii, .v])
100 | /// VI - IV - I - V progression.
101 | public static let vi_iv_i_v = ChordProgression(nodes: [.vi, .iv, .i, .v])
| |- warning: static property 'vi_iv_i_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'vi_iv_i_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | /// I - VI - III - VII progression.
103 | public static let i_vi_iii_vii = ChordProgression(nodes: [.i, .vi, .iii, .vii])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:103:21: warning: static property 'i_vi_iii_vii' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
101 | public static let vi_iv_i_v = ChordProgression(nodes: [.vi, .iv, .i, .v])
102 | /// I - VI - III - VII progression.
103 | public static let i_vi_iii_vii = ChordProgression(nodes: [.i, .vi, .iii, .vii])
| |- warning: static property 'i_vi_iii_vii' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_vi_iii_vii' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | /// VI - V - IV - III progression.
105 | public static let vi_v_iv_iii = ChordProgression(nodes: [.vi, .v, .iv, .iii])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:105:21: warning: static property 'vi_v_iv_iii' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
103 | public static let i_vi_iii_vii = ChordProgression(nodes: [.i, .vi, .iii, .vii])
104 | /// VI - V - IV - III progression.
105 | public static let vi_v_iv_iii = ChordProgression(nodes: [.vi, .v, .iv, .iii])
| |- warning: static property 'vi_v_iv_iii' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'vi_v_iv_iii' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | /// I - V - VI - III - IV - I - IV - V progression.
107 | public static let i_v_vi_iii_iv_i_iv_v = ChordProgression(nodes: [.i, .v, .vi, .iii, .iv, .i, .iv, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:107:21: warning: static property 'i_v_vi_iii_iv_i_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
105 | public static let vi_v_iv_iii = ChordProgression(nodes: [.vi, .v, .iv, .iii])
106 | /// I - V - VI - III - IV - I - IV - V progression.
107 | public static let i_v_vi_iii_iv_i_iv_v = ChordProgression(nodes: [.i, .v, .vi, .iii, .iv, .i, .iv, .v])
| |- warning: static property 'i_v_vi_iii_iv_i_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_v_vi_iii_iv_i_iv_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | /// IV - I - V - IV progression.
109 | public static let iv_i_v_iv = ChordProgression(nodes: [.iv, .i, .v, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:109:21: warning: static property 'iv_i_v_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
107 | public static let i_v_vi_iii_iv_i_iv_v = ChordProgression(nodes: [.i, .v, .vi, .iii, .iv, .i, .iv, .v])
108 | /// IV - I - V - IV progression.
109 | public static let iv_i_v_iv = ChordProgression(nodes: [.iv, .i, .v, .iv])
| |- warning: static property 'iv_i_v_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iv_i_v_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 | /// I - II - VI - IV progression.
111 | public static let i_ii_vi_iv = ChordProgression(nodes: [.i, .ii, .vi, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:111:21: warning: static property 'i_ii_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
109 | public static let iv_i_v_iv = ChordProgression(nodes: [.iv, .i, .v, .iv])
110 | /// I - II - VI - IV progression.
111 | public static let i_ii_vi_iv = ChordProgression(nodes: [.i, .ii, .vi, .iv])
| |- warning: static property 'i_ii_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_ii_vi_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | /// I - III - VI - IV progression.
113 | public static let i_iii_vi_iv = ChordProgression(nodes: [.i, .iii, .vi, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:113:21: warning: static property 'i_iii_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
111 | public static let i_ii_vi_iv = ChordProgression(nodes: [.i, .ii, .vi, .iv])
112 | /// I - III - VI - IV progression.
113 | public static let i_iii_vi_iv = ChordProgression(nodes: [.i, .iii, .vi, .iv])
| |- warning: static property 'i_iii_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_iii_vi_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 | /// I - V - II - IV progression.
115 | public static let i_v_ii_iv = ChordProgression(nodes: [.i, .v, .ii, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:115:21: warning: static property 'i_v_ii_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
113 | public static let i_iii_vi_iv = ChordProgression(nodes: [.i, .iii, .vi, .iv])
114 | /// I - V - II - IV progression.
115 | public static let i_v_ii_iv = ChordProgression(nodes: [.i, .v, .ii, .iv])
| |- warning: static property 'i_v_ii_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_v_ii_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 | /// II - IV - I - V progression.
117 | public static let ii_iv_i_v = ChordProgression(nodes: [.ii, .iv, .i, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:117:21: warning: static property 'ii_iv_i_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
115 | public static let i_v_ii_iv = ChordProgression(nodes: [.i, .v, .ii, .iv])
116 | /// II - IV - I - V progression.
117 | public static let ii_iv_i_v = ChordProgression(nodes: [.ii, .iv, .i, .v])
| |- warning: static property 'ii_iv_i_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ii_iv_i_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
118 |
119 | public let nodes: [ChordProgressionNode]
/host/spi-builder-workspace/Sources/MusicTheory/HarmonicFunctions.swift:29:21: warning: static property 'tonicProlongationFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Represents harmonic functions in music theory.
12 | public enum HarmonicFunctionType: Int, Codable, CaseIterable {
| `- note: consider making enum 'HarmonicFunctionType' conform to the 'Sendable' protocol
13 | /// First interval/chord. I in roman numeral.
14 | case tonic
:
27 |
28 | /// Represents tonic prolongation functions.
29 | public static let tonicProlongationFunctions: [HarmonicFunctionType] = [.mediant, .submediant]
| |- warning: static property 'tonicProlongationFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tonicProlongationFunctions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Represents the pre dominant functions.
/host/spi-builder-workspace/Sources/MusicTheory/HarmonicFunctions.swift:32:21: warning: static property 'predominantFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Represents harmonic functions in music theory.
12 | public enum HarmonicFunctionType: Int, Codable, CaseIterable {
| `- note: consider making enum 'HarmonicFunctionType' conform to the 'Sendable' protocol
13 | /// First interval/chord. I in roman numeral.
14 | case tonic
:
30 |
31 | /// Represents the pre dominant functions.
32 | public static let predominantFunctions: [HarmonicFunctionType] = [.supertonic, .submediant]
| |- warning: static property 'predominantFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'predominantFunctions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// Represents the dominant functions
/host/spi-builder-workspace/Sources/MusicTheory/HarmonicFunctions.swift:35:21: warning: static property 'dominantFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Represents harmonic functions in music theory.
12 | public enum HarmonicFunctionType: Int, Codable, CaseIterable {
| `- note: consider making enum 'HarmonicFunctionType' conform to the 'Sendable' protocol
13 | /// First interval/chord. I in roman numeral.
14 | case tonic
:
33 |
34 | /// Represents the dominant functions
35 | public static let dominantFunctions: [HarmonicFunctionType] = [.dominant, .leading]
| |- warning: static property 'dominantFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dominantFunctions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Represents the possible direction from any harmonic function.
[10/14] Compiling MusicTheory HarmonicFunctions.swift
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:62:21: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[ChordProgressionNode]' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// A node of chord progression in intervals.
25 | public enum ChordProgressionNode: Int, CustomStringConvertible, Codable, Hashable {
| `- note: consider making enum 'ChordProgressionNode' conform to the 'Sendable' protocol
26 | /// First-degree node
27 | case i
:
60 |
61 | /// All nodes.
62 | public static let all: [ChordProgressionNode] = [.i, .ii, .iii, .iv, .v, .vi, .vii]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[ChordProgressionNode]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | // MARK: CustomStringConvertible
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:83:21: warning: static property 'allNodes' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
| |- warning: static property 'allNodes' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allNodes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | /// I - V - VI - IV progression.
85 | public static let i_v_vi_iv = ChordProgression(nodes: [.i, .v, .vi, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:85:21: warning: static property 'i_v_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
84 | /// I - V - VI - IV progression.
85 | public static let i_v_vi_iv = ChordProgression(nodes: [.i, .v, .vi, .iv])
| |- warning: static property 'i_v_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_v_vi_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | /// VI - V - IV - V progression.
87 | public static let vi_v_iv_v = ChordProgression(nodes: [.vi, .v, .iv, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:87:21: warning: static property 'vi_v_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
85 | public static let i_v_vi_iv = ChordProgression(nodes: [.i, .v, .vi, .iv])
86 | /// VI - V - IV - V progression.
87 | public static let vi_v_iv_v = ChordProgression(nodes: [.vi, .v, .iv, .v])
| |- warning: static property 'vi_v_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'vi_v_iv_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | /// I - VI - IV - V progression.
89 | public static let i_vi_iv_v = ChordProgression(nodes: [.i, .vi, .iv, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:89:21: warning: static property 'i_vi_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
87 | public static let vi_v_iv_v = ChordProgression(nodes: [.vi, .v, .iv, .v])
88 | /// I - VI - IV - V progression.
89 | public static let i_vi_iv_v = ChordProgression(nodes: [.i, .vi, .iv, .v])
| |- warning: static property 'i_vi_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_vi_iv_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | /// I - IV - VI - V progression.
91 | public static let i_iv_vi_v = ChordProgression(nodes: [.i, .iv, .vi, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:91:21: warning: static property 'i_iv_vi_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
89 | public static let i_vi_iv_v = ChordProgression(nodes: [.i, .vi, .iv, .v])
90 | /// I - IV - VI - V progression.
91 | public static let i_iv_vi_v = ChordProgression(nodes: [.i, .iv, .vi, .v])
| |- warning: static property 'i_iv_vi_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_iv_vi_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 | /// I - V - IV - V progression.
93 | public static let i_v_iv_v = ChordProgression(nodes: [.i, .v, .iv, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:93:21: warning: static property 'i_v_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
91 | public static let i_iv_vi_v = ChordProgression(nodes: [.i, .iv, .vi, .v])
92 | /// I - V - IV - V progression.
93 | public static let i_v_iv_v = ChordProgression(nodes: [.i, .v, .iv, .v])
| |- warning: static property 'i_v_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_v_iv_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | /// VI - II - V - I progression.
95 | public static let vi_ii_v_i = ChordProgression(nodes: [.vi, .ii, .v, .i])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:95:21: warning: static property 'vi_ii_v_i' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
93 | public static let i_v_iv_v = ChordProgression(nodes: [.i, .v, .iv, .v])
94 | /// VI - II - V - I progression.
95 | public static let vi_ii_v_i = ChordProgression(nodes: [.vi, .ii, .v, .i])
| |- warning: static property 'vi_ii_v_i' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'vi_ii_v_i' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | /// I - VI - II - V progression.
97 | public static let i_vi_ii_v = ChordProgression(nodes: [.i, .vi, .ii, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:97:21: warning: static property 'i_vi_ii_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
95 | public static let vi_ii_v_i = ChordProgression(nodes: [.vi, .ii, .v, .i])
96 | /// I - VI - II - V progression.
97 | public static let i_vi_ii_v = ChordProgression(nodes: [.i, .vi, .ii, .v])
| |- warning: static property 'i_vi_ii_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_vi_ii_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | /// I - IV - II - V progression.
99 | public static let i_iv_ii_v = ChordProgression(nodes: [.i, .iv, .ii, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:99:21: warning: static property 'i_iv_ii_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
97 | public static let i_vi_ii_v = ChordProgression(nodes: [.i, .vi, .ii, .v])
98 | /// I - IV - II - V progression.
99 | public static let i_iv_ii_v = ChordProgression(nodes: [.i, .iv, .ii, .v])
| |- warning: static property 'i_iv_ii_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_iv_ii_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | /// VI - IV - I - V progression.
101 | public static let vi_iv_i_v = ChordProgression(nodes: [.vi, .iv, .i, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:101:21: warning: static property 'vi_iv_i_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
99 | public static let i_iv_ii_v = ChordProgression(nodes: [.i, .iv, .ii, .v])
100 | /// VI - IV - I - V progression.
101 | public static let vi_iv_i_v = ChordProgression(nodes: [.vi, .iv, .i, .v])
| |- warning: static property 'vi_iv_i_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'vi_iv_i_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | /// I - VI - III - VII progression.
103 | public static let i_vi_iii_vii = ChordProgression(nodes: [.i, .vi, .iii, .vii])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:103:21: warning: static property 'i_vi_iii_vii' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
101 | public static let vi_iv_i_v = ChordProgression(nodes: [.vi, .iv, .i, .v])
102 | /// I - VI - III - VII progression.
103 | public static let i_vi_iii_vii = ChordProgression(nodes: [.i, .vi, .iii, .vii])
| |- warning: static property 'i_vi_iii_vii' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_vi_iii_vii' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
104 | /// VI - V - IV - III progression.
105 | public static let vi_v_iv_iii = ChordProgression(nodes: [.vi, .v, .iv, .iii])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:105:21: warning: static property 'vi_v_iv_iii' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
103 | public static let i_vi_iii_vii = ChordProgression(nodes: [.i, .vi, .iii, .vii])
104 | /// VI - V - IV - III progression.
105 | public static let vi_v_iv_iii = ChordProgression(nodes: [.vi, .v, .iv, .iii])
| |- warning: static property 'vi_v_iv_iii' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'vi_v_iv_iii' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | /// I - V - VI - III - IV - I - IV - V progression.
107 | public static let i_v_vi_iii_iv_i_iv_v = ChordProgression(nodes: [.i, .v, .vi, .iii, .iv, .i, .iv, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:107:21: warning: static property 'i_v_vi_iii_iv_i_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
105 | public static let vi_v_iv_iii = ChordProgression(nodes: [.vi, .v, .iv, .iii])
106 | /// I - V - VI - III - IV - I - IV - V progression.
107 | public static let i_v_vi_iii_iv_i_iv_v = ChordProgression(nodes: [.i, .v, .vi, .iii, .iv, .i, .iv, .v])
| |- warning: static property 'i_v_vi_iii_iv_i_iv_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_v_vi_iii_iv_i_iv_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | /// IV - I - V - IV progression.
109 | public static let iv_i_v_iv = ChordProgression(nodes: [.iv, .i, .v, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:109:21: warning: static property 'iv_i_v_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
107 | public static let i_v_vi_iii_iv_i_iv_v = ChordProgression(nodes: [.i, .v, .vi, .iii, .iv, .i, .iv, .v])
108 | /// IV - I - V - IV progression.
109 | public static let iv_i_v_iv = ChordProgression(nodes: [.iv, .i, .v, .iv])
| |- warning: static property 'iv_i_v_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iv_i_v_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 | /// I - II - VI - IV progression.
111 | public static let i_ii_vi_iv = ChordProgression(nodes: [.i, .ii, .vi, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:111:21: warning: static property 'i_ii_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
109 | public static let iv_i_v_iv = ChordProgression(nodes: [.iv, .i, .v, .iv])
110 | /// I - II - VI - IV progression.
111 | public static let i_ii_vi_iv = ChordProgression(nodes: [.i, .ii, .vi, .iv])
| |- warning: static property 'i_ii_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_ii_vi_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
112 | /// I - III - VI - IV progression.
113 | public static let i_iii_vi_iv = ChordProgression(nodes: [.i, .iii, .vi, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:113:21: warning: static property 'i_iii_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
111 | public static let i_ii_vi_iv = ChordProgression(nodes: [.i, .ii, .vi, .iv])
112 | /// I - III - VI - IV progression.
113 | public static let i_iii_vi_iv = ChordProgression(nodes: [.i, .iii, .vi, .iv])
| |- warning: static property 'i_iii_vi_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_iii_vi_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 | /// I - V - II - IV progression.
115 | public static let i_v_ii_iv = ChordProgression(nodes: [.i, .v, .ii, .iv])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:115:21: warning: static property 'i_v_ii_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
113 | public static let i_iii_vi_iv = ChordProgression(nodes: [.i, .iii, .vi, .iv])
114 | /// I - V - II - IV progression.
115 | public static let i_v_ii_iv = ChordProgression(nodes: [.i, .v, .ii, .iv])
| |- warning: static property 'i_v_ii_iv' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'i_v_ii_iv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 | /// II - IV - I - V progression.
117 | public static let ii_iv_i_v = ChordProgression(nodes: [.ii, .iv, .i, .v])
/host/spi-builder-workspace/Sources/MusicTheory/ChordProgression.swift:117:21: warning: static property 'ii_iv_i_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
79 |
80 | /// Chord progression enum that you can create hard-coded and custom progressions.
81 | public struct ChordProgression: CustomStringConvertible, Codable, Hashable {
| `- note: consider making struct 'ChordProgression' conform to the 'Sendable' protocol
82 | /// All nodes from first to seventh.
83 | public static let allNodes = ChordProgression(nodes: [.i, .ii, .iii, .iv, .v, .vi, .vii])
:
115 | public static let i_v_ii_iv = ChordProgression(nodes: [.i, .v, .ii, .iv])
116 | /// II - IV - I - V progression.
117 | public static let ii_iv_i_v = ChordProgression(nodes: [.ii, .iv, .i, .v])
| |- warning: static property 'ii_iv_i_v' is not concurrency-safe because non-'Sendable' type 'ChordProgression' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ii_iv_i_v' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
118 |
119 | public let nodes: [ChordProgressionNode]
/host/spi-builder-workspace/Sources/MusicTheory/HarmonicFunctions.swift:29:21: warning: static property 'tonicProlongationFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Represents harmonic functions in music theory.
12 | public enum HarmonicFunctionType: Int, Codable, CaseIterable {
| `- note: consider making enum 'HarmonicFunctionType' conform to the 'Sendable' protocol
13 | /// First interval/chord. I in roman numeral.
14 | case tonic
:
27 |
28 | /// Represents tonic prolongation functions.
29 | public static let tonicProlongationFunctions: [HarmonicFunctionType] = [.mediant, .submediant]
| |- warning: static property 'tonicProlongationFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tonicProlongationFunctions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | /// Represents the pre dominant functions.
/host/spi-builder-workspace/Sources/MusicTheory/HarmonicFunctions.swift:32:21: warning: static property 'predominantFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Represents harmonic functions in music theory.
12 | public enum HarmonicFunctionType: Int, Codable, CaseIterable {
| `- note: consider making enum 'HarmonicFunctionType' conform to the 'Sendable' protocol
13 | /// First interval/chord. I in roman numeral.
14 | case tonic
:
30 |
31 | /// Represents the pre dominant functions.
32 | public static let predominantFunctions: [HarmonicFunctionType] = [.supertonic, .submediant]
| |- warning: static property 'predominantFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'predominantFunctions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// Represents the dominant functions
/host/spi-builder-workspace/Sources/MusicTheory/HarmonicFunctions.swift:35:21: warning: static property 'dominantFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Represents harmonic functions in music theory.
12 | public enum HarmonicFunctionType: Int, Codable, CaseIterable {
| `- note: consider making enum 'HarmonicFunctionType' conform to the 'Sendable' protocol
13 | /// First interval/chord. I in roman numeral.
14 | case tonic
:
33 |
34 | /// Represents the dominant functions
35 | public static let dominantFunctions: [HarmonicFunctionType] = [.dominant, .leading]
| |- warning: static property 'dominantFunctions' is not concurrency-safe because non-'Sendable' type '[HarmonicFunctionType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dominantFunctions' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Represents the possible direction from any harmonic function.
[11/14] Compiling MusicTheory Scale.swift
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:18:21: warning: static property 'major' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
| |- warning: static property 'major' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'major' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | /// Minor scale.
20 | public static let minor = ScaleType(intervals: ScaleType.aeolian.intervals, description: "Minor")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:34:21: warning: static property 'ionian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
32 | public static let pentatonicNeutral = ScaleType(intervals: [.P1, .M2, .P4, .P5, .m7], description: "Pentatonic Neutral")
33 | /// Ionian scale.
34 | public static let ionian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .M6, .M7], description: "Ionian")
| |- warning: static property 'ionian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ionian' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | /// Aeolian scale.
36 | public static let aeolian = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .m7], description: "Aeolian")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:20:21: warning: static property 'minor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
19 | /// Minor scale.
20 | public static let minor = ScaleType(intervals: ScaleType.aeolian.intervals, description: "Minor")
| |- warning: static property 'minor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'minor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | /// Harmonic minor scale.
22 | public static let harmonicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .M7], description: "Harmonic Minor")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:36:21: warning: static property 'aeolian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
34 | public static let ionian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .M6, .M7], description: "Ionian")
35 | /// Aeolian scale.
36 | public static let aeolian = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .m7], description: "Aeolian")
| |- warning: static property 'aeolian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'aeolian' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | /// Dorian scale.
38 | public static let dorian = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .m7], description: "Dorian")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:22:21: warning: static property 'harmonicMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
20 | public static let minor = ScaleType(intervals: ScaleType.aeolian.intervals, description: "Minor")
21 | /// Harmonic minor scale.
22 | public static let harmonicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .M7], description: "Harmonic Minor")
| |- warning: static property 'harmonicMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'harmonicMinor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | /// Melodic minor scale.
24 | public static let melodicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .M7], description: "Melodic Minor")
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:91:21: warning: static property 'P1' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
89 |
90 | /// Unison.
91 | public static let P1 = Interval(quality: .perfect, degree: 1, semitones: 0)
| |- warning: static property 'P1' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'P1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 | /// Perfect fourth.
93 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:123:21: warning: static property 'M2' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
121 |
122 | /// Major second.
123 | public static let M2 = Interval(quality: .major, degree: 2, semitones: 2)
| |- warning: static property 'M2' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
124 | /// Major third.
125 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:108:21: warning: static property 'm3' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
106 | public static let m2 = Interval(quality: .minor, degree: 2, semitones: 1)
107 | /// Minor third.
108 | public static let m3 = Interval(quality: .minor, degree: 3, semitones: 3)
| |- warning: static property 'm3' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | /// Minor sixth.
110 | public static let m6 = Interval(quality: .minor, degree: 6, semitones: 8)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:93:21: warning: static property 'P4' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
91 | public static let P1 = Interval(quality: .perfect, degree: 1, semitones: 0)
92 | /// Perfect fourth.
93 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
| |- warning: static property 'P4' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'P4' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
94 | /// Perfect fifth.
95 | public static let P5 = Interval(quality: .perfect, degree: 5, semitones: 7)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:95:21: warning: static property 'P5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
93 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
94 | /// Perfect fifth.
95 | public static let P5 = Interval(quality: .perfect, degree: 5, semitones: 7)
| |- warning: static property 'P5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'P5' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | /// Octave.
97 | public static let P8 = Interval(quality: .perfect, degree: 8, semitones: 12)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:110:21: warning: static property 'm6' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
108 | public static let m3 = Interval(quality: .minor, degree: 3, semitones: 3)
109 | /// Minor sixth.
110 | public static let m6 = Interval(quality: .minor, degree: 6, semitones: 8)
| |- warning: static property 'm6' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm6' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | /// Minor seventh.
112 | public static let m7 = Interval(quality: .minor, degree: 7, semitones: 10)
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:129:21: warning: static property 'M7' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
127 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
128 | /// Major seventh.
129 | public static let M7 = Interval(quality: .major, degree: 7, semitones: 11)
| |- warning: static property 'M7' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M7' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
130 | /// Major ninth.
131 | public static let M9 = Interval(quality: .major, degree: 9, semitones: 14)
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:24:21: warning: static property 'melodicMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
22 | public static let harmonicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .M7], description: "Harmonic Minor")
23 | /// Melodic minor scale.
24 | public static let melodicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .M7], description: "Melodic Minor")
| |- warning: static property 'melodicMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'melodicMinor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | /// Pentatonic major scale.
26 | public static let pentatonicMajor = ScaleType(intervals: [.P1, .M2, .M3, .P5, .M6], description: "Pentatonic Major")
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:127:21: warning: static property 'M6' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
125 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
126 | /// Major sixth.
127 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
| |- warning: static property 'M6' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M6' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 | /// Major seventh.
129 | public static let M7 = Interval(quality: .major, degree: 7, semitones: 11)
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:26:21: warning: static property 'pentatonicMajor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
24 | public static let melodicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .M7], description: "Melodic Minor")
25 | /// Pentatonic major scale.
26 | public static let pentatonicMajor = ScaleType(intervals: [.P1, .M2, .M3, .P5, .M6], description: "Pentatonic Major")
| |- warning: static property 'pentatonicMajor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pentatonicMajor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 | /// Pentatonic minor scale.
28 | public static let pentatonicMinor = ScaleType(intervals: [.P1, .m3, .P4, .P5, .m7], description: "Pentatonic Minor")
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:125:21: warning: static property 'M3' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
123 | public static let M2 = Interval(quality: .major, degree: 2, semitones: 2)
124 | /// Major third.
125 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
| |- warning: static property 'M3' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'M3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | /// Major sixth.
127 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:28:21: warning: static property 'pentatonicMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
26 | public static let pentatonicMajor = ScaleType(intervals: [.P1, .M2, .M3, .P5, .M6], description: "Pentatonic Major")
27 | /// Pentatonic minor scale.
28 | public static let pentatonicMinor = ScaleType(intervals: [.P1, .m3, .P4, .P5, .m7], description: "Pentatonic Minor")
| |- warning: static property 'pentatonicMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pentatonicMinor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | /// Pentatonic blues scale.
30 | public static let pentatonicBlues = ScaleType(intervals: [.P1, .m3, .P4, .d5, .P5, .m7], description: "Pentatonic Blues")
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:112:21: warning: static property 'm7' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
110 | public static let m6 = Interval(quality: .minor, degree: 6, semitones: 8)
111 | /// Minor seventh.
112 | public static let m7 = Interval(quality: .minor, degree: 7, semitones: 10)
| |- warning: static property 'm7' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm7' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | /// Minor ninth.
114 | public static let m9 = Interval(quality: .minor, degree: 9, semitones: 13)
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:30:21: warning: static property 'pentatonicBlues' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
28 | public static let pentatonicMinor = ScaleType(intervals: [.P1, .m3, .P4, .P5, .m7], description: "Pentatonic Minor")
29 | /// Pentatonic blues scale.
30 | public static let pentatonicBlues = ScaleType(intervals: [.P1, .m3, .P4, .d5, .P5, .m7], description: "Pentatonic Blues")
| |- warning: static property 'pentatonicBlues' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pentatonicBlues' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 | /// Pentatonic neutral scale.
32 | public static let pentatonicNeutral = ScaleType(intervals: [.P1, .M2, .P4, .P5, .m7], description: "Pentatonic Neutral")
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:148:21: warning: static property 'd5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
146 | public static let d4 = Interval(quality: .diminished, degree: 4, semitones: 4)
147 | /// Diminished fifth.
148 | public static let d5 = Interval(quality: .diminished, degree: 5, semitones: 6)
| |- warning: static property 'd5' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'd5' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
149 | /// Diminished sixth.
150 | public static let d6 = Interval(quality: .diminished, degree: 6, semitones: 7)
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:32:21: warning: static property 'pentatonicNeutral' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
30 | public static let pentatonicBlues = ScaleType(intervals: [.P1, .m3, .P4, .d5, .P5, .m7], description: "Pentatonic Blues")
31 | /// Pentatonic neutral scale.
32 | public static let pentatonicNeutral = ScaleType(intervals: [.P1, .M2, .P4, .P5, .m7], description: "Pentatonic Neutral")
| |- warning: static property 'pentatonicNeutral' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pentatonicNeutral' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | /// Ionian scale.
34 | public static let ionian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .M6, .M7], description: "Ionian")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:38:21: warning: static property 'dorian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
36 | public static let aeolian = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .m7], description: "Aeolian")
37 | /// Dorian scale.
38 | public static let dorian = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .m7], description: "Dorian")
| |- warning: static property 'dorian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dorian' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | /// Mixolydian scale.
40 | public static let mixolydian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .M6, .m7], description: "Mixolydian")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:40:21: warning: static property 'mixolydian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
38 | public static let dorian = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .m7], description: "Dorian")
39 | /// Mixolydian scale.
40 | public static let mixolydian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .M6, .m7], description: "Mixolydian")
| |- warning: static property 'mixolydian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mixolydian' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | /// Phrygian scale.
42 | public static let phrygian = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .m6, .m7], description: "Phrygian")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:42:21: warning: static property 'phrygian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
40 | public static let mixolydian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .M6, .m7], description: "Mixolydian")
41 | /// Phrygian scale.
42 | public static let phrygian = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .m6, .m7], description: "Phrygian")
| |- warning: static property 'phrygian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'phrygian' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | /// Lydian scale.
44 | public static let lydian = ScaleType(intervals: [.P1, .M2, .M3, .A4, .P5, .M6, .M7], description: "Lydian")
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:106:21: warning: static property 'm2' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
104 |
105 | /// Minor second.
106 | public static let m2 = Interval(quality: .minor, degree: 2, semitones: 1)
| |- warning: static property 'm2' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'm2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | /// Minor third.
108 | public static let m3 = Interval(quality: .minor, degree: 3, semitones: 3)
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:44:21: warning: static property 'lydian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
42 | public static let phrygian = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .m6, .m7], description: "Phrygian")
43 | /// Lydian scale.
44 | public static let lydian = ScaleType(intervals: [.P1, .M2, .M3, .A4, .P5, .M6, .M7], description: "Lydian")
| |- warning: static property 'lydian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lydian' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | /// Locrian scale.
46 | public static let locrian = ScaleType(intervals: [.P1, .m2, .m3, .P4, .d5, .m6, .m7], description: "Locrian")
/host/spi-builder-workspace/Sources/MusicTheory/Interval.swift:177:21: warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// Defines the interval between `Pitch`es in semitones.
32 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
33 | /// Quality type of the interval.
34 | public enum Quality: Int, Codable, Hashable, CustomStringConvertible {
:
175 | public static let A3 = Interval(quality: .augmented, degree: 3, semitones: 5)
176 | /// Augmented fourth.
177 | public static let A4 = Interval(quality: .augmented, degree: 4, semitones: 6)
| |- warning: static property 'A4' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'A4' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
178 | /// Augmented fifth.
179 | public static let A5 = Interval(quality: .augmented, degree: 5, semitones: 8)
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:46:21: warning: static property 'locrian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
44 | public static let lydian = ScaleType(intervals: [.P1, .M2, .M3, .A4, .P5, .M6, .M7], description: "Lydian")
45 | /// Locrian scale.
46 | public static let locrian = ScaleType(intervals: [.P1, .m2, .m3, .P4, .d5, .m6, .m7], description: "Locrian")
| |- warning: static property 'locrian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'locrian' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | /// Half diminished scale.
48 | public static let dimHalf = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .P5, .M6, .m7], description: "Half Diminished")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:48:21: warning: static property 'dimHalf' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
46 | public static let locrian = ScaleType(intervals: [.P1, .m2, .m3, .P4, .d5, .m6, .m7], description: "Locrian")
47 | /// Half diminished scale.
48 | public static let dimHalf = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .P5, .M6, .m7], description: "Half Diminished")
| |- warning: static property 'dimHalf' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dimHalf' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | /// Whole diminished scale.
50 | public static let dimWhole = ScaleType(intervals: [.P1, .M2, .m3, .P4, .d5, .m6, .M6, .M7], description: "Whole Diminished")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:50:21: warning: static property 'dimWhole' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
48 | public static let dimHalf = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .P5, .M6, .m7], description: "Half Diminished")
49 | /// Whole diminished scale.
50 | public static let dimWhole = ScaleType(intervals: [.P1, .M2, .m3, .P4, .d5, .m6, .M6, .M7], description: "Whole Diminished")
| |- warning: static property 'dimWhole' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dimWhole' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | /// Whole scale.
52 | public static let whole = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .m7], description: "Whole")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:52:21: warning: static property 'whole' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
50 | public static let dimWhole = ScaleType(intervals: [.P1, .M2, .m3, .P4, .d5, .m6, .M6, .M7], description: "Whole Diminished")
51 | /// Whole scale.
52 | public static let whole = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .m7], description: "Whole")
| |- warning: static property 'whole' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'whole' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | /// Augmented scale.
54 | public static let augmented = ScaleType(intervals: [.m3, .M3, .P5, .m6, .M7], description: "Augmented")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:54:21: warning: static property 'augmented' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
52 | public static let whole = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .m7], description: "Whole")
53 | /// Augmented scale.
54 | public static let augmented = ScaleType(intervals: [.m3, .M3, .P5, .m6, .M7], description: "Augmented")
| |- warning: static property 'augmented' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'augmented' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | /// Chromatic scale.
56 | public static let chromatic = ScaleType(intervals: [.P1, .m2, .M2, .m3, .M3, .P4, .d5, .P5, .m6, .M6, .m7, .M7], description: "Chromatic")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:56:21: warning: static property 'chromatic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
54 | public static let augmented = ScaleType(intervals: [.m3, .M3, .P5, .m6, .M7], description: "Augmented")
55 | /// Chromatic scale.
56 | public static let chromatic = ScaleType(intervals: [.P1, .m2, .M2, .m3, .M3, .P4, .d5, .P5, .m6, .M6, .m7, .M7], description: "Chromatic")
| |- warning: static property 'chromatic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'chromatic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | /// Roumanian minor scale.
58 | public static let romanianMinor = ScaleType(intervals: [.P1, .M2, .m3, .d5, .P5, .M6, .m7], description: "Romanian Minor")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:58:21: warning: static property 'romanianMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
56 | public static let chromatic = ScaleType(intervals: [.P1, .m2, .M2, .m3, .M3, .P4, .d5, .P5, .m6, .M6, .m7, .M7], description: "Chromatic")
57 | /// Roumanian minor scale.
58 | public static let romanianMinor = ScaleType(intervals: [.P1, .M2, .m3, .d5, .P5, .M6, .m7], description: "Romanian Minor")
| |- warning: static property 'romanianMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'romanianMinor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | /// Spanish gypsy scale.
60 | public static let spanishGypsy = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .m7], description: "Spanish Gypsy")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:60:21: warning: static property 'spanishGypsy' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
58 | public static let romanianMinor = ScaleType(intervals: [.P1, .M2, .m3, .d5, .P5, .M6, .m7], description: "Romanian Minor")
59 | /// Spanish gypsy scale.
60 | public static let spanishGypsy = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .m7], description: "Spanish Gypsy")
| |- warning: static property 'spanishGypsy' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'spanishGypsy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | /// Blues scale.
62 | public static let blues = ScaleType(intervals: [.P1, .m3, .P4, .d5, .P5, .m7], description: "Blues")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:62:21: warning: static property 'blues' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
60 | public static let spanishGypsy = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .m7], description: "Spanish Gypsy")
61 | /// Blues scale.
62 | public static let blues = ScaleType(intervals: [.P1, .m3, .P4, .d5, .P5, .m7], description: "Blues")
| |- warning: static property 'blues' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'blues' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | /// Diatonic scale.
64 | public static let diatonic = ScaleType(intervals: [.P1, .M2, .M3, .P5, .M6], description: "Diatonic")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:64:21: warning: static property 'diatonic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
62 | public static let blues = ScaleType(intervals: [.P1, .m3, .P4, .d5, .P5, .m7], description: "Blues")
63 | /// Diatonic scale.
64 | public static let diatonic = ScaleType(intervals: [.P1, .M2, .M3, .P5, .M6], description: "Diatonic")
| |- warning: static property 'diatonic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'diatonic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | /// Dobule harmonic scale.
66 | public static let doubleHarmonic = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .M7], description: "Double Harmonic")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:66:21: warning: static property 'doubleHarmonic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
64 | public static let diatonic = ScaleType(intervals: [.P1, .M2, .M3, .P5, .M6], description: "Diatonic")
65 | /// Dobule harmonic scale.
66 | public static let doubleHarmonic = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .M7], description: "Double Harmonic")
| |- warning: static property 'doubleHarmonic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'doubleHarmonic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | /// Eight tone spanish scale.
68 | public static let eightToneSpanish = ScaleType(intervals: [.P1, .m2, .m3, .M3, .P4, .d5, .m6, .m7], description: "Eight Tone Spanish")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:68:21: warning: static property 'eightToneSpanish' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
66 | public static let doubleHarmonic = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .M7], description: "Double Harmonic")
67 | /// Eight tone spanish scale.
68 | public static let eightToneSpanish = ScaleType(intervals: [.P1, .m2, .m3, .M3, .P4, .d5, .m6, .m7], description: "Eight Tone Spanish")
| |- warning: static property 'eightToneSpanish' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eightToneSpanish' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | /// Enigmatic scale.
70 | public static let enigmatic = ScaleType(intervals: [.P1, .m2, .M3, .d5, .m6, .m7, .M7], description: "Enigmatic")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:70:21: warning: static property 'enigmatic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
68 | public static let eightToneSpanish = ScaleType(intervals: [.P1, .m2, .m3, .M3, .P4, .d5, .m6, .m7], description: "Eight Tone Spanish")
69 | /// Enigmatic scale.
70 | public static let enigmatic = ScaleType(intervals: [.P1, .m2, .M3, .d5, .m6, .m7, .M7], description: "Enigmatic")
| |- warning: static property 'enigmatic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enigmatic' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | /// Leading whole tone scale.
72 | public static let leadingWholeTone = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .M6, .m7], description: "Leading Whole Tone")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:72:21: warning: static property 'leadingWholeTone' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
70 | public static let enigmatic = ScaleType(intervals: [.P1, .m2, .M3, .d5, .m6, .m7, .M7], description: "Enigmatic")
71 | /// Leading whole tone scale.
72 | public static let leadingWholeTone = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .M6, .m7], description: "Leading Whole Tone")
| |- warning: static property 'leadingWholeTone' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'leadingWholeTone' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | /// Lydian augmented scale.
74 | public static let lydianAugmented = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .M6, .M7], description: "Lydian Augmented")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:74:21: warning: static property 'lydianAugmented' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
72 | public static let leadingWholeTone = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .M6, .m7], description: "Leading Whole Tone")
73 | /// Lydian augmented scale.
74 | public static let lydianAugmented = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .M6, .M7], description: "Lydian Augmented")
| |- warning: static property 'lydianAugmented' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lydianAugmented' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | /// Neopolitan major scale.
76 | public static let neopolitanMajor = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .M6, .M7], description: "Neopolitan Major")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:76:21: warning: static property 'neopolitanMajor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
74 | public static let lydianAugmented = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .M6, .M7], description: "Lydian Augmented")
75 | /// Neopolitan major scale.
76 | public static let neopolitanMajor = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .M6, .M7], description: "Neopolitan Major")
| |- warning: static property 'neopolitanMajor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'neopolitanMajor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
77 | /// Neopolitan minor scale.
78 | public static let neopolitanMinor = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .m6, .m7], description: "Neopolitan Minor")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:78:21: warning: static property 'neopolitanMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
76 | public static let neopolitanMajor = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .M6, .M7], description: "Neopolitan Major")
77 | /// Neopolitan minor scale.
78 | public static let neopolitanMinor = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .m6, .m7], description: "Neopolitan Minor")
| |- warning: static property 'neopolitanMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'neopolitanMinor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 | /// Pelog scale.
80 | public static let pelog = ScaleType(intervals: [.P1, .m2, .m3, .d5, .m7, .M7], description: "Pelog")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:80:21: warning: static property 'pelog' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
78 | public static let neopolitanMinor = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .m6, .m7], description: "Neopolitan Minor")
79 | /// Pelog scale.
80 | public static let pelog = ScaleType(intervals: [.P1, .m2, .m3, .d5, .m7, .M7], description: "Pelog")
| |- warning: static property 'pelog' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pelog' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 | /// Prometheus scale.
82 | public static let prometheus = ScaleType(intervals: [.P1, .M2, .M3, .d5, .M6, .m7], description: "Prometheus")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:82:21: warning: static property 'prometheus' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
80 | public static let pelog = ScaleType(intervals: [.P1, .m2, .m3, .d5, .m7, .M7], description: "Pelog")
81 | /// Prometheus scale.
82 | public static let prometheus = ScaleType(intervals: [.P1, .M2, .M3, .d5, .M6, .m7], description: "Prometheus")
| |- warning: static property 'prometheus' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prometheus' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | /// Prometheus neopolitan scale.
84 | public static let prometheusNeopolitan = ScaleType(intervals: [.P1, .m2, .M3, .d5, .M6, .m7], description: "Prometheus Neopolitan")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:84:21: warning: static property 'prometheusNeopolitan' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
82 | public static let prometheus = ScaleType(intervals: [.P1, .M2, .M3, .d5, .M6, .m7], description: "Prometheus")
83 | /// Prometheus neopolitan scale.
84 | public static let prometheusNeopolitan = ScaleType(intervals: [.P1, .m2, .M3, .d5, .M6, .m7], description: "Prometheus Neopolitan")
| |- warning: static property 'prometheusNeopolitan' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'prometheusNeopolitan' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
85 | /// Six tone symmetrical scale.
86 | public static let sixToneSymmetrical = ScaleType(intervals: [.P1, .m2, .M3, .P4, .m6, .M6], description: "Six Tone Symmetrical")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:86:21: warning: static property 'sixToneSymmetrical' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
84 | public static let prometheusNeopolitan = ScaleType(intervals: [.P1, .m2, .M3, .d5, .M6, .m7], description: "Prometheus Neopolitan")
85 | /// Six tone symmetrical scale.
86 | public static let sixToneSymmetrical = ScaleType(intervals: [.P1, .m2, .M3, .P4, .m6, .M6], description: "Six Tone Symmetrical")
| |- warning: static property 'sixToneSymmetrical' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sixToneSymmetrical' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | /// Super locrian scale.
88 | public static let superLocrian = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .m6, .m7], description: "Super Locrian")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:88:21: warning: static property 'superLocrian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
86 | public static let sixToneSymmetrical = ScaleType(intervals: [.P1, .m2, .M3, .P4, .m6, .M6], description: "Six Tone Symmetrical")
87 | /// Super locrian scale.
88 | public static let superLocrian = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .m6, .m7], description: "Super Locrian")
| |- warning: static property 'superLocrian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'superLocrian' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | /// Lydian minor scale.
90 | public static let lydianMinor = ScaleType(intervals: [.P1, .M2, .M3, .d5, .P5, .m6, .m7], description: "Lydian Minor")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:90:21: warning: static property 'lydianMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
88 | public static let superLocrian = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .m6, .m7], description: "Super Locrian")
89 | /// Lydian minor scale.
90 | public static let lydianMinor = ScaleType(intervals: [.P1, .M2, .M3, .d5, .P5, .m6, .m7], description: "Lydian Minor")
| |- warning: static property 'lydianMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lydianMinor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 | /// Lydian diminished scale.
92 | public static let lydianDiminished = ScaleType(intervals: [.P1, .M2, .m3, .d5, .P5, .m6, .m7], description: "Lydian Diminished")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:92:21: warning: static property 'lydianDiminished' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
90 | public static let lydianMinor = ScaleType(intervals: [.P1, .M2, .M3, .d5, .P5, .m6, .m7], description: "Lydian Minor")
91 | /// Lydian diminished scale.
92 | public static let lydianDiminished = ScaleType(intervals: [.P1, .M2, .m3, .d5, .P5, .m6, .m7], description: "Lydian Diminished")
| |- warning: static property 'lydianDiminished' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lydianDiminished' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 | /// Nine tone scale.
94 | public static let nineToneScale = ScaleType(intervals: [.P1, .M2, .m3, .M3, .d5, .P5, .m6, .M6, .M7], description: "Nine Tone Scale")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:94:21: warning: static property 'nineToneScale' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
92 | public static let lydianDiminished = ScaleType(intervals: [.P1, .M2, .m3, .d5, .P5, .m6, .m7], description: "Lydian Diminished")
93 | /// Nine tone scale.
94 | public static let nineToneScale = ScaleType(intervals: [.P1, .M2, .m3, .M3, .d5, .P5, .m6, .M6, .M7], description: "Nine Tone Scale")
| |- warning: static property 'nineToneScale' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nineToneScale' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
95 | /// Auxiliary diminished scale.
96 | public static let auxiliaryDiminished = ScaleType(intervals: [.P1, .M2, .m3, .P4, .d5, .m6, .M6, .M7], description: "Auxiliary Diminished")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:96:21: warning: static property 'auxiliaryDiminished' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
94 | public static let nineToneScale = ScaleType(intervals: [.P1, .M2, .m3, .M3, .d5, .P5, .m6, .M6, .M7], description: "Nine Tone Scale")
95 | /// Auxiliary diminished scale.
96 | public static let auxiliaryDiminished = ScaleType(intervals: [.P1, .M2, .m3, .P4, .d5, .m6, .M6, .M7], description: "Auxiliary Diminished")
| |- warning: static property 'auxiliaryDiminished' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'auxiliaryDiminished' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | /// Auxiliary augmaneted scale.
98 | public static let auxiliaryAugmented = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .m7], description: "Auxiliary Augmented")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:98:21: warning: static property 'auxiliaryAugmented' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
96 | public static let auxiliaryDiminished = ScaleType(intervals: [.P1, .M2, .m3, .P4, .d5, .m6, .M6, .M7], description: "Auxiliary Diminished")
97 | /// Auxiliary augmaneted scale.
98 | public static let auxiliaryAugmented = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .m7], description: "Auxiliary Augmented")
| |- warning: static property 'auxiliaryAugmented' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'auxiliaryAugmented' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | /// Auxiliary diminished blues scale.
100 | public static let auxiliaryDimBlues = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .P5, .M6, .m7], description: "Auxiliary Diminished Blues")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:100:21: warning: static property 'auxiliaryDimBlues' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
98 | public static let auxiliaryAugmented = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .m7], description: "Auxiliary Augmented")
99 | /// Auxiliary diminished blues scale.
100 | public static let auxiliaryDimBlues = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .P5, .M6, .m7], description: "Auxiliary Diminished Blues")
| |- warning: static property 'auxiliaryDimBlues' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'auxiliaryDimBlues' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | /// Major locrian scale.
102 | public static let majorLocrian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .d5, .m6, .m7], description: "Major Locrian")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:102:21: warning: static property 'majorLocrian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
100 | public static let auxiliaryDimBlues = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .P5, .M6, .m7], description: "Auxiliary Diminished Blues")
101 | /// Major locrian scale.
102 | public static let majorLocrian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .d5, .m6, .m7], description: "Major Locrian")
| |- warning: static property 'majorLocrian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'majorLocrian' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
103 | /// Overtone scale.
104 | public static let overtone = ScaleType(intervals: [.P1, .M2, .M3, .d5, .P5, .M6, .m7], description: "Overtone")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:104:21: warning: static property 'overtone' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
102 | public static let majorLocrian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .d5, .m6, .m7], description: "Major Locrian")
103 | /// Overtone scale.
104 | public static let overtone = ScaleType(intervals: [.P1, .M2, .M3, .d5, .P5, .M6, .m7], description: "Overtone")
| |- warning: static property 'overtone' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'overtone' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// Diminished whole tone scale.
106 | public static let diminishedWholeTone = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .m6, .m7], description: "Diminished Whole Tone")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:106:21: warning: static property 'diminishedWholeTone' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
104 | public static let overtone = ScaleType(intervals: [.P1, .M2, .M3, .d5, .P5, .M6, .m7], description: "Overtone")
105 | /// Diminished whole tone scale.
106 | public static let diminishedWholeTone = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .m6, .m7], description: "Diminished Whole Tone")
| |- warning: static property 'diminishedWholeTone' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'diminishedWholeTone' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | /// Pure minor scale.
108 | public static let pureMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .m7], description: "Pure Minor")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:108:21: warning: static property 'pureMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
106 | public static let diminishedWholeTone = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .m6, .m7], description: "Diminished Whole Tone")
107 | /// Pure minor scale.
108 | public static let pureMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .m7], description: "Pure Minor")
| |- warning: static property 'pureMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pureMinor' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | /// Dominant seventh scale.
110 | public static let dominant7th = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .M6, .m7], description: "Dominant 7th")
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:110:21: warning: static property 'dominant7th' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
:
108 | public static let pureMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .m7], description: "Pure Minor")
109 | /// Dominant seventh scale.
110 | public static let dominant7th = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .M6, .m7], description: "Dominant 7th")
| |- warning: static property 'dominant7th' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dominant7th' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 |
112 | /// Intervals of the scale.
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:310:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Scale.HarmonicField]' may have shared mutable state; this is an error in the Swift 6 language mode
295 | extension Scale {
296 | /// Stack of notes to generate chords for each note in the scale.
297 | public enum HarmonicField: Int, Codable {
| `- note: consider making enum 'HarmonicField' conform to the 'Sendable' protocol
298 | /// First, third and fifth degree notes builds a triad chord.
299 | case triad
:
308 |
309 | /// All possible harmonic fields constructed from.
310 | public static let all: [HarmonicField] = [.triad, .tetrad, .ninth, .eleventh, .thirteenth]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Scale.HarmonicField]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
311 | }
312 |
[12/14] Compiling MusicTheory Pitch.swift
/host/spi-builder-workspace/Sources/MusicTheory/Key.swift:59:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Key.KeyType]' may have shared mutable state; this is an error in the Swift 6 language mode
40 | public struct Key: Codable, Equatable, Hashable, ExpressibleByStringLiteral, CustomStringConvertible {
41 | /// Base pitch of the key without accidentals. Accidentals will take account in the parent struct, `Key`. Integer values are based on C = 0 on western chromatic scale.
42 | public enum KeyType: Int, Codable, Equatable, Hashable, ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making enum 'KeyType' conform to the 'Sendable' protocol
43 | /// C key.
44 | case c = 0
:
57 |
58 | /// Returns all members of the `KeyType`.
59 | public static let all: [KeyType] = [.c, .d, .e, .f, .g, .a, .b]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[Key.KeyType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// Returns neighbour `KeyType` at `distance` away. Works on both directions.
/host/spi-builder-workspace/Sources/MusicTheory/Scale.swift:18:21: warning: static property 'major' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Represents scale by the intervals between note sequences.
16 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
17 | /// Major scale.
18 | public static let major = ScaleType(intervals: ScaleType.ionian.intervals, description: "Major")
| |- warning: static property 'major' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'major' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | /// Minor scale.
20 | public static let minor = ScaleType(intervals: ScaleType.aeolian.intervals, description: "Minor")
/host/spi-builder-workspace/Sources/MusicTheory/Key.swift:157:21: warning: static property 'keysWithSharps' is not concurrency-safe because non-'Sendable' type '[Key]' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | /// Represents the keys that notes and pitches are based on.
40 | public struct Key: Codable, Equatable, Hashable, ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making struct 'Key' conform to the 'Sendable' protocol
41 | /// Base pitch of the key without accidentals. Accidentals will take account in the parent struct, `Key`. Integer values are based on C = 0 on western chromatic scale.
42 | public enum KeyType: Int, Codable, Equatable, Hashable, ExpressibleByStringLiteral, CustomStringConvertible {
:
155 |
156 | /// All notes in an octave with sharp notes.
157 | public static let keysWithSharps = [
| |- warning: static property 'keysWithSharps' is not concurrency-safe because non-'Sendable' type '[Key]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keysWithSharps' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 | Key(type: .c, accidental: .natural),
159 | Key(type: .c, accidental: .sharp),
/host/spi-builder-workspace/Sources/MusicTheory/Key.swift:173:21: warning: static property 'keysWithFlats' is not concurrency-safe because non-'Sendable' type '[Key]' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | /// Represents the keys that notes and pitches are based on.
40 | public struct Key: Codable, Equatable, Hashable, ExpressibleByStringLiteral, CustomStringConvertible {
| `- note: consider making struct 'Key' conform to the 'Sendable' protocol
41 | /// Base pitch of the key without accidentals. Accidentals will take account in the parent struct, `Key`. Integer values are based on C = 0 on western chromatic scale.
42 | public enum KeyType: Int, Codable, Equatable, Hashable, ExpressibleByStringLiteral, CustomStringConvertible {
:
171 |
172 | /// All notes in an octave with flat notes.
173 | public static let keysWithFlats = [
| |- warning: static property 'keysWithFlats' is not concurrency-safe because non-'Sendable' type '[Key]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keysWithFlats' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | Key(type: .c, accidental: .natural),
175 | Key(type: .d, accidental: .flat),
[13/14] Compiling MusicTheory Tempo.swift
[14/14] Compiling MusicTheory TimeSignature.swift
Build complete! (17.35s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "MusicTheory",
"name" : "MusicTheory",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "MusicTheory",
"targets" : [
"MusicTheory"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MusicTheoryTests",
"module_type" : "SwiftTarget",
"name" : "MusicTheoryTests",
"path" : "Tests/MusicTheoryTests",
"sources" : [
"MusicTheoryTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"MusicTheory"
],
"type" : "test"
},
{
"c99name" : "MusicTheory",
"module_type" : "SwiftTarget",
"name" : "MusicTheory",
"path" : "Sources/MusicTheory",
"product_memberships" : [
"MusicTheory"
],
"sources" : [
"Accidental.swift",
"Chord.swift",
"ChordProgression.swift",
"HarmonicFunctions.swift",
"Interval.swift",
"Key.swift",
"NoteValue.swift",
"Pitch.swift",
"Scale.swift",
"Tempo.swift",
"TimeSignature.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.