Build Information
Successful build of MusicTheory, reference master (af7d53
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 18:03:25 UTC.
Swift 6 data race errors: 210
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Build Log
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
199 |
200 | /// Auxiliary diminished blues scale.
201 | 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
202 |
203 | /// Major locrian scale.
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:204:23: 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
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
202 |
203 | /// Major locrian scale.
204 | 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
205 |
206 | /// Overtone scale.
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:207:23: 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
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
205 |
206 | /// Overtone scale.
207 | 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
208 |
209 | /// Diminished whole tone scale.
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:210:23: 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
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
208 |
209 | /// Diminished whole tone scale.
210 | 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
211 |
212 | /// Dominant seventh scale.
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:213:23: 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
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
211 |
212 | /// Dominant seventh scale.
213 | 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
214 |
215 | /// Altered scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:216:23: warning: static property 'altered' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
214 |
215 | /// Altered scale
216 | public static let altered = ScaleType(intervals: [.P1, .m2, .m3, .M3, .d5, .m6, .m7], description: "Altered")
| |- warning: static property 'altered' 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 'altered' 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
217 |
218 | /// Arabian scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:219:23: warning: static property 'arabian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
217 |
218 | /// Arabian scale
219 | public static let arabian = ScaleType(intervals: [.P1, .M2, .M3, .P4, .d5, .m6, .m7], description: "Arabian")
| |- warning: static property 'arabian' 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 'arabian' 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
220 |
221 | /// Ionian augmented scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:222:23: warning: static property 'ionianAugmented' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
220 |
221 | /// Ionian augmented scale
222 | public static let ionianAugmented = ScaleType(intervals: [.P1, .M2, .M3, .P4, .m6, .M6, .M7], description: "Ionian Augmented")
| |- warning: static property 'ionianAugmented' 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 'ionianAugmented' 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
223 |
224 | /// Balinese scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:225:23: warning: static property 'balinese' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
223 |
224 | /// Balinese scale
225 | public static let balinese = ScaleType(intervals: [.P1, .m2, .m3, .P5, .m6], description: "Balinese")
| |- warning: static property 'balinese' 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 'balinese' 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
226 |
227 | /// Byzantine scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:228:23: warning: static property 'byzantine' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
226 |
227 | /// Byzantine scale
228 | public static let byzantine = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .M7], description: "Byzantine")
| |- warning: static property 'byzantine' 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 'byzantine' 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
229 |
230 | /// Chinese scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:231:23: warning: static property 'chinese' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
229 |
230 | /// Chinese scale
231 | public static let chinese = ScaleType(intervals: [.P1, .M3, .d5, .P5, .M7], description: "Chinese")
| |- warning: static property 'chinese' 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 'chinese' 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
232 |
233 | /// Dorian #4 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:234:23: warning: static property 'dorianSharp4' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
232 |
233 | /// Dorian #4 scale
234 | public static let dorianSharp4 = ScaleType(intervals: [.P1, .M2, .m3, .d5, .P5, .M6, .m7], description: "Dorian #4")
| |- warning: static property 'dorianSharp4' 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 'dorianSharp4' 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
235 |
236 | /// Dorian b2 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:237:23: warning: static property 'dorianFlat2' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
235 |
236 | /// Dorian b2 scale
237 | public static let dorianFlat2 = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .M6, .m7], description: "Dorian b2")
| |- warning: static property 'dorianFlat2' 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 'dorianFlat2' 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
238 |
239 | /// Hindu scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:240:23: warning: static property 'hindu' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
238 |
239 | /// Hindu scale
240 | public static let hindu = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .m6, .m7], description: "Hindu")
| |- warning: static property 'hindu' 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 'hindu' 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
241 |
242 | /// Hirajoshi scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:243:23: warning: static property 'hirajoshi' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
241 |
242 | /// Hirajoshi scale
243 | public static let hirajoshi = ScaleType(intervals: [.P1, .M2, .m3, .P5, .m6], description: "Hirajoshi")
| |- warning: static property 'hirajoshi' 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 'hirajoshi' 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
244 |
245 | /// Hungarian major scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:246:23: warning: static property 'hungarianMajor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
244 |
245 | /// Hungarian major scale
246 | public static let hungarianMajor = ScaleType(intervals: [.P1, .m3, .M3, .d5, .P5, .M6, .m7], description: "Hungarian Major")
| |- warning: static property 'hungarianMajor' 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 'hungarianMajor' 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
247 |
248 | /// Hungarian minor scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:249:23: warning: static property 'hungarianMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
247 |
248 | /// Hungarian minor scale
249 | public static let hungarianMinor = ScaleType(intervals: [.P1, .M2, .m3, .A4, .P5, .m6, .M7], description: "Hungarian Minor")
| |- warning: static property 'hungarianMinor' 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 'hungarianMinor' 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
250 |
251 | /// Ichikosucho scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:252:23: warning: static property 'ichikosucho' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
250 |
251 | /// Ichikosucho scale
252 | public static let ichikosucho = ScaleType(intervals: [.P1, .M2, .M3, .P4, .d5, .P5, .M6, .M7], description: "Ichikosucho")
| |- warning: static property 'ichikosucho' 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 'ichikosucho' 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
253 |
254 | /// Kumoi scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:255:23: warning: static property 'kumoi' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
253 |
254 | /// Kumoi scale
255 | public static let kumoi = ScaleType(intervals: [.P1, .M2, .m3, .P5, .M6], description: "Kumoi")
| |- warning: static property 'kumoi' 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 'kumoi' 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
256 |
257 | /// Locrian 2 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:258:23: warning: static property 'locrian2' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
256 |
257 | /// Locrian 2 scale
258 | public static let locrian2 = ScaleType(intervals: [.P1, .M2, .m3, .P4, .d5, .m6, .m7], description: "Locrian 2")
| |- warning: static property 'locrian2' 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 'locrian2' 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
259 |
260 | /// Locrian 3 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:261:23: warning: static property 'locrian3' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
259 |
260 | /// Locrian 3 scale
261 | public static let locrian3 = ScaleType(intervals: [.P1, .m2, .M3, .P4, .d5, .m6, .m7], description: "Locrian 3")
| |- warning: static property 'locrian3' 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 'locrian3' 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
262 |
263 | /// Locrian 6 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:264:23: warning: static property 'locrian6' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
262 |
263 | /// Locrian 6 scale
264 | public static let locrian6 = ScaleType(intervals: [.P1, .m2, .m3, .P4, .d5, .M6, .m7], description: "Locrian 6")
| |- warning: static property 'locrian6' 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 'locrian6' 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
265 |
266 | /// Lydian #2 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:267:23: warning: static property 'lydianSharp2' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
265 |
266 | /// Lydian #2 scale
267 | public static let lydianSharp2 = ScaleType(intervals: [.P1, .m3, .M3, .d5, .P5, .M6, .M7], description: "Lydian #2")
| |- warning: static property 'lydianSharp2' 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 'lydianSharp2' 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
268 |
269 | /// Lydian b7 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:270:23: warning: static property 'lydianFlat7' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
268 |
269 | /// Lydian b7 scale
270 | public static let lydianFlat7 = ScaleType(intervals: [.P1, .M2, .M3, .d5, .P5, .M6, .m7], description: "Lydian b7")
| |- warning: static property 'lydianFlat7' 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 'lydianFlat7' 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
271 |
272 | /// Phrygian Major scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:273:23: warning: static property 'phrygianMajor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
271 |
272 | /// Phrygian Major scale
273 | public static let phrygianMajor = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .m7], description: "Phrygian Major")
| |- warning: static property 'phrygianMajor' 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 'phrygianMajor' 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
274 |
275 | /// Mixolydian b6 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:276:23: warning: static property 'mixolydianFlat6' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
274 |
275 | /// Mixolydian b6 scale
276 | public static let mixolydianFlat6 = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .m6, .m7], description: "Mixolydian b6")
| |- warning: static property 'mixolydianFlat6' 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 'mixolydianFlat6' 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
277 |
278 | /// Mohammedan scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:279:23: warning: static property 'mohammedan' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
277 |
278 | /// Mohammedan scale
279 | public static let mohammedan = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .M7], description: "Mohammedan")
| |- warning: static property 'mohammedan' 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 'mohammedan' 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
280 |
281 | /// Mongolian scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:282:23: warning: static property 'mongolian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
280 |
281 | /// Mongolian scale
282 | public static let mongolian = ScaleType(intervals: [.P1, .M2, .M3, .P5, .M6], description: "Mongolian")
| |- warning: static property 'mongolian' 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 'mongolian' 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
283 |
284 | /// Natural minor scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:285:23: warning: static property 'naturalMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
283 |
284 | /// Natural minor scale
285 | public static let naturalMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .m7], description: "Natural Minor")
| |- warning: static property 'naturalMinor' 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 'naturalMinor' 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
286 |
287 | /// Neopolitan scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:288:23: warning: static property 'neopolitan' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
286 |
287 | /// Neopolitan scale
288 | public static let neopolitan = ScaleType(intervals: [.P1, .m2, .m3, .P4, .P5, .m6, .M7], description: "Neopolitan")
| |- warning: static property 'neopolitan' 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 'neopolitan' 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
289 |
290 | /// Persian scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:291:23: warning: static property 'persian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
289 |
290 | /// Persian scale
291 | public static let persian = ScaleType(intervals: [.P1, .m2, .M3, .P4, .d5, .m6, .M7], description: "Persian")
| |- warning: static property 'persian' 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 'persian' 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
292 |
293 | /// Purvi theta scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:294:23: warning: static property 'purviTheta' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
292 |
293 | /// Purvi theta scale
294 | public static let purviTheta = ScaleType(intervals: [.P1, .m2, .M3, .d5, .P5, .m6, .M7], description: "Purvi Theta")
| |- warning: static property 'purviTheta' 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 'purviTheta' 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
295 |
296 | /// Todi theta scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:297:23: warning: static property 'todiTheta' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
295 |
296 | /// Todi theta scale
297 | public static let todiTheta = ScaleType(intervals: [.P1, .m2, .m3, .d5, .P5, .m6, .M7], description: "Todi Theta")
| |- warning: static property 'todiTheta' 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 'todiTheta' 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
298 |
299 | /// Major bebop scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:300:23: warning: static property 'majorBebop' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
298 |
299 | /// Major bebop scale
300 | public static let majorBebop = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .m6, .M6, .M7], description: "Major Bebop")
| |- warning: static property 'majorBebop' 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 'majorBebop' 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
301 |
302 | /// Minor bebop scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:303:23: warning: static property 'minorBebop' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
301 |
302 | /// Minor bebop scale
303 | public static let minorBebop = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .m7, .M7], description: "Minor Bebop")
| |- warning: static property 'minorBebop' 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 'minorBebop' 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
304 |
305 | /// Bebop dominant scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:306:23: warning: static property 'bebopDominant' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
304 |
305 | /// Bebop dominant scale
306 | public static let bebopDominant = ScaleType(intervals: [.P1, .M2, .M3, .P4, .P5, .M6, .m7, .M7], description: "Bebop Dominant")
| |- warning: static property 'bebopDominant' 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 'bebopDominant' 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
307 |
308 | /// Tritone scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:309:23: warning: static property 'tritone' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
307 |
308 | /// Tritone scale
309 | public static let tritone = ScaleType(intervals: [.P1, .m2, .M3, .d5, .P5, .m7], description: "Tritone")
| |- warning: static property 'tritone' 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 'tritone' 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
310 |
311 | /// Insen scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:312:23: warning: static property 'insen' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
310 |
311 | /// Insen scale
312 | public static let insen = ScaleType(intervals: [.P1, .m2, .P4, .P5, .m7], description: "Insen")
| |- warning: static property 'insen' 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 'insen' 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
313 |
314 | /// Istrian scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:315:23: warning: static property 'istrian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
313 |
314 | /// Istrian scale
315 | public static let istrian = ScaleType(intervals: [.P1, .m2, .m3, .d4, .d5, .P5], description: "Istrian")
| |- warning: static property 'istrian' 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 'istrian' 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
316 |
317 | /// Gypsy scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:148:23: warning: static property 'd4' is not concurrency-safe because non-'Sendable' type 'Interval' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
146 | public static let d3 = Interval(quality: .diminished, degree: 3, semitones: 2)
147 | /// Diminished fourth.
148 | public static let d4 = Interval(quality: .diminished, degree: 4, semitones: 4)
| |- warning: static property 'd4' 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 'd4' 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 fifth.
150 | public static let d5 = Interval(quality: .diminished, degree: 5, semitones: 6)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:318:23: warning: static property 'gypsy' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
316 |
317 | /// Gypsy scale
318 | public static let gypsy = ScaleType(intervals: [.P1, .M2, .m3, .A4, .P5, .m6, .m7], description: "Gypsy")
| |- warning: static property 'gypsy' 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 'gypsy' 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
319 |
320 | /// Iwato scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:321:23: warning: static property 'iwato' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
319 |
320 | /// Iwato scale
321 | public static let iwato = ScaleType(intervals: [.P1, .m2, .P4, .d5, .m7], description: "Iwato")
| |- warning: static property 'iwato' 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 'iwato' 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
322 |
323 | /// Pfluke scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:324:23: warning: static property 'pfluke' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
322 |
323 | /// Pfluke scale
324 | public static let pfluke = ScaleType(intervals: [.P1, .M2, .m3, .A4, .P5, .M6, .M7], description: "Pfluke")
| |- warning: static property 'pfluke' 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 'pfluke' 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
325 |
326 | /// Ukrainian dorian scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:327:23: warning: static property 'ukrainianDorian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
325 |
326 | /// Ukrainian dorian scale
327 | public static let ukrainianDorian = ScaleType(intervals: [.P1, .M2, .m3, .A4, .P5, .M6, .m7], description: "Ukrainian Dorian")
| |- warning: static property 'ukrainianDorian' 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 'ukrainianDorian' 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
328 |
329 | /// Yo scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:330:23: warning: static property 'yo' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
328 |
329 | /// Yo scale
330 | public static let yo = ScaleType(intervals: [.P1, .m3, .P4, .P5, .m7], description: "Yo")
| |- warning: static property 'yo' 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 'yo' 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
331 |
332 | /// Algerian scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:333:23: warning: static property 'algerian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
331 |
332 | /// Algerian scale
333 | public static let algerian = ScaleType(intervals: [.P1, .M2, .m3, .A4, .P5, .m6, .M7], description: "Algerian")
| |- warning: static property 'algerian' 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 'algerian' 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
334 |
335 | /// Flamenco scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:336:23: warning: static property 'flamenco' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
334 |
335 | /// Flamenco scale
336 | public static let flamenco = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .M7], description: "Flamenco")
| |- warning: static property 'flamenco' 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 'flamenco' 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
337 |
338 | /// Hawaiian scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:339:23: warning: static property 'hawaiian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
337 |
338 | /// Hawaiian scale
339 | public static let hawaiian = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .M7], description: "Hawaiian")
| |- warning: static property 'hawaiian' 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 'hawaiian' 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
340 |
341 | /// Maqam scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:342:23: warning: static property 'maqam' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
340 |
341 | /// Maqam scale
342 | public static let maqam = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .m6, .M7], description: "Maqam")
| |- warning: static property 'maqam' 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 'maqam' 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
343 |
344 | /// Oriental scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:345:23: warning: static property 'oriental' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
343 |
344 | /// Oriental scale
345 | public static let oriental = ScaleType(intervals: [.P1, .m2, .M3, .P4, .d5, .M6, .m7], description: "Oriental")
| |- warning: static property 'oriental' 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 'oriental' 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
346 |
347 | /// Jazz melodic minor scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:348:23: warning: static property 'jazzMelodicMinor' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
346 |
347 | /// Jazz melodic minor scale
348 | public static let jazzMelodicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .M7], description: "Jazz Melodic Minor")
| |- warning: static property 'jazzMelodicMinor' 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 'jazzMelodicMinor' 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
349 |
350 | /// Lydian augmented #6 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:351:23: warning: static property 'lydianAugmentedSharp6' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
349 |
350 | /// Lydian augmented #6 scale
351 | public static let lydianAugmentedSharp6 = ScaleType(intervals: [.P1, .M2, .M3, .d5, .m6, .m7, .M7], description: "Lydian Augmented #6")
| |- warning: static property 'lydianAugmentedSharp6' 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 'lydianAugmentedSharp6' 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
352 |
353 | /// Lydian augmented #2 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:354:23: warning: static property 'lydianAugmentedSharp2' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
352 |
353 | /// Lydian augmented #2 scale
354 | public static let lydianAugmentedSharp2 = ScaleType(intervals: [.P1, .m3, .M3, .d5, .m6, .M6, .M7], description: "Lydian Augmented #2")
| |- warning: static property 'lydianAugmentedSharp2' 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 'lydianAugmentedSharp2' 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
355 |
356 | /// Dorian b5 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:357:23: warning: static property 'dorianFlat5' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
355 |
356 | /// Dorian b5 scale
357 | public static let dorianFlat5 = ScaleType(intervals: [.P1, .M2, .m3, .P4, .d5, .M6, .m7], description: "Dorian b5")
| |- warning: static property 'dorianFlat5' 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 'dorianFlat5' 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
358 |
359 | /// Phrygian b4 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:360:23: warning: static property 'phrygianFlat4' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
358 |
359 | /// Phrygian b4 scale
360 | public static let phrygianFlat4 = ScaleType(intervals: [.P1, .m2, .m3, .M3, .P5, .m6, .m7], description: "Phrygian b4")
| |- warning: static property 'phrygianFlat4' 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 'phrygianFlat4' 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
361 |
362 | /// Lydian b3 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:363:23: warning: static property 'lydianFlat3' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
361 |
362 | /// Lydian b3 scale
363 | public static let lydianFlat3 = ScaleType(intervals: [.P1, .M2, .m3, .d5, .P5, .M6, .M7], description: "Lydian b3")
| |- warning: static property 'lydianFlat3' 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 'lydianFlat3' 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
364 |
365 | /// Lydian b6 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:366:23: warning: static property 'lydianFlat6' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
364 |
365 | /// Lydian b6 scale
366 | public static let lydianFlat6 = ScaleType(intervals: [.P1, .M2, .M3, .d5, .P5, .m6, .m7], description: "Lydian b6")
| |- warning: static property 'lydianFlat6' 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 'lydianFlat6' 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
367 |
368 | /// Lydian #6 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:369:23: warning: static property 'lydianSharp6' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
367 |
368 | /// Lydian #6 scale
369 | public static let lydianSharp6 = ScaleType(intervals: [.P1, .M2, .M3, .d5, .P5, .m7, .M7], description: "Lydian #6")
| |- warning: static property 'lydianSharp6' 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 'lydianSharp6' 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
370 |
371 | /// Lydian #2 #6 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:372:23: warning: static property 'lydianSharp2Sharp6' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
370 |
371 | /// Lydian #2 #6 scale
372 | public static let lydianSharp2Sharp6 = ScaleType(intervals: [.P1, .m3, .M3, .d5, .P5, .m7, .M7], description: "Lydian #2 #6")
| |- warning: static property 'lydianSharp2Sharp6' 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 'lydianSharp2Sharp6' 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
373 |
374 | /// Mixolydian b2 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:375:23: warning: static property 'mixolydianFlat2' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
373 |
374 | /// Mixolydian b2 scale
375 | public static let mixolydianFlat2 = ScaleType(intervals: [.P1, .m2, .M3, .P4, .P5, .M6, .m7], description: "Mixolydian b2")
| |- warning: static property 'mixolydianFlat2' 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 'mixolydianFlat2' 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
376 |
377 | /// Mixolydian augmented scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:378:23: warning: static property 'mixolydianAugmented' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
376 |
377 | /// Mixolydian augmented scale
378 | public static let mixolydianAugmented = ScaleType(intervals: [.P1, .M2, .M3, .P4, .m6, .M6, .m7], description: "Mixolydian Augmented")
| |- warning: static property 'mixolydianAugmented' 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 'mixolydianAugmented' 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
379 |
380 | /// Locrian diminished scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:381:23: warning: static property 'locrianDiminished' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
379 |
380 | /// Locrian diminished scale
381 | public static let locrianDiminished = ScaleType(intervals: [.P1, .m2, .m3, .P4, .d5, .m6, .M6], description: "Locrian Diminished")
| |- warning: static property 'locrianDiminished' 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 'locrianDiminished' 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
382 |
383 | /// Locrian diminished bb3 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:384:23: warning: static property 'locrianDiminishedFlatFlat3' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
382 |
383 | /// Locrian diminished bb3 scale
384 | public static let locrianDiminishedFlatFlat3 = ScaleType(intervals: [.P1, .m2, .P4, .d5, .m6, .M6], description: "Locrian Diminished bb3")
| |- warning: static property 'locrianDiminishedFlatFlat3' 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 'locrianDiminishedFlatFlat3' 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
385 |
386 | /// Ionian #2 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:387:23: warning: static property 'ionianSharp2' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
385 |
386 | /// Ionian #2 scale
387 | public static let ionianSharp2 = ScaleType(intervals: [.P1, .m3, .M3, .P4, .P5, .M6, .M7], description: "Ionian #2")
| |- warning: static property 'ionianSharp2' 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 'ionianSharp2' 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
388 |
389 | /// Super locrian Diminished bb3 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:390:23: warning: static property 'superLocrianDiminshedFlatFlat3' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
388 |
389 | /// Super locrian Diminished bb3 scale
390 | public static let superLocrianDiminshedFlatFlat3 = ScaleType(intervals: [.P1, .m2, .M2, .M3, .d5, .m6, .M6], description: "Super Locrian Diminished bb3")
| |- warning: static property 'superLocrianDiminshedFlatFlat3' 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 'superLocrianDiminshedFlatFlat3' 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
391 |
392 | /// Ultraphrygian scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:393:23: warning: static property 'ultraphrygian' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
391 |
392 | /// Ultraphrygian scale
393 | public static let ultraphrygian = ScaleType(intervals: [.P1, .m2, .m3, .M3, .P5, .m6, .M6], description: "Ultraphrygian")
| |- warning: static property 'ultraphrygian' 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 'ultraphrygian' 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
394 |
395 | /// Ionian Augmented #2 scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:396:23: warning: static property 'ionianAugmentedSharp2' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
394 |
395 | /// Ionian Augmented #2 scale
396 | public static let ionianAugmentedSharp2 = ScaleType(intervals: [.P1, .m3, .M3, .P4, .m6, .M6, .M7], description: "Ionian Augmented #2")
| |- warning: static property 'ionianAugmentedSharp2' 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 'ionianAugmentedSharp2' 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
397 |
398 | /// Major blues hexatonic scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:399:23: warning: static property 'majorBluesHexatonic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
397 |
398 | /// Major blues hexatonic scale
399 | public static let majorBluesHexatonic = ScaleType(intervals: [.P1, .M2, .m3, .M3, .P5, .M6], description: "Major Blues Hexatonic")
| |- warning: static property 'majorBluesHexatonic' 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 'majorBluesHexatonic' 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
400 |
401 | /// Minor blues hexatonic scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:402:23: warning: static property 'minorBluesHexatonic' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
400 |
401 | /// Minor blues hexatonic scale
402 | public static let minorBluesHexatonic = ScaleType(intervals: [.P1, .m3, .P4, .d5, .P5, .m7], description: "Minor Blues Hexatonic")
| |- warning: static property 'minorBluesHexatonic' 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 'minorBluesHexatonic' 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
403 |
404 | /// Man gong scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:405:23: warning: static property 'manGong' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
403 |
404 | /// Man gong scale
405 | public static let manGong = ScaleType(intervals: [.P1, .m3, .P4, .m6, .m7], description: "Man Gong")
| |- warning: static property 'manGong' 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 'manGong' 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
406 |
407 | /// Ritsusen scale
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:408:23: warning: static property 'ritsusen' is not concurrency-safe because non-'Sendable' type 'ScaleType' may have shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
406 |
407 | /// Ritsusen scale
408 | public static let ritsusen = ScaleType(intervals: [.P1, .M2, .P4, .P5, .M6], description: "Ritsusen")
| |- warning: static property 'ritsusen' 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 'ritsusen' 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
409 |
410 | /// An array of all `ScaleType` values.
[8/15] Compiling MusicTheory Scale.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Scale.swift:98:27: 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
83 | extension Scale {
84 | /// Stack of notes to generate chords for each note in the scale.
85 | public enum HarmonicField: Int, Codable {
| `- note: consider making enum 'HarmonicField' conform to the 'Sendable' protocol
86 | /// First, third and fifth degree notes builds a triad chord.
87 | case triad
:
96 |
97 | /// All possible harmonic fields constructed from.
98 | 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
99 | }
100 |
[9/15] Compiling MusicTheory NoteValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:33:23: warning: static property 'sixteenBars' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
31 |
32 | /// Sixteen bar notes.
33 | public static let sixteenBars = NoteValueType(rate: 16.0, description: "16 Bars")
| |- warning: static property 'sixteenBars' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sixteenBars' 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
34 | /// Eigth bar notes.
35 | public static let eigthBars = NoteValueType(rate: 8.0, description: "8 Bars")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:35:23: warning: static property 'eigthBars' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
33 | public static let sixteenBars = NoteValueType(rate: 16.0, description: "16 Bars")
34 | /// Eigth bar notes.
35 | public static let eigthBars = NoteValueType(rate: 8.0, description: "8 Bars")
| |- warning: static property 'eigthBars' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eigthBars' 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 | /// Four bar notes.
37 | public static let fourBars = NoteValueType(rate: 4.0, description: "4 Bars")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:37:23: warning: static property 'fourBars' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
35 | public static let eigthBars = NoteValueType(rate: 8.0, description: "8 Bars")
36 | /// Four bar notes.
37 | public static let fourBars = NoteValueType(rate: 4.0, description: "4 Bars")
| |- warning: static property 'fourBars' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fourBars' 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
38 | /// Two bar notes.
39 | public static let twoBars = NoteValueType(rate: 2.0, description: "2 Bars")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:39:23: warning: static property 'twoBars' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
37 | public static let fourBars = NoteValueType(rate: 4.0, description: "4 Bars")
38 | /// Two bar notes.
39 | public static let twoBars = NoteValueType(rate: 2.0, description: "2 Bars")
| |- warning: static property 'twoBars' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'twoBars' 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
40 | /// One bar note.
41 | public static let oneBar = NoteValueType(rate: 1.0, description: "1 Bar")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:41:23: warning: static property 'oneBar' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
39 | public static let twoBars = NoteValueType(rate: 2.0, description: "2 Bars")
40 | /// One bar note.
41 | public static let oneBar = NoteValueType(rate: 1.0, description: "1 Bar")
| |- warning: static property 'oneBar' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'oneBar' 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
42 | /// Two whole notes.
43 | public static let doubleWhole = NoteValueType(rate: 2.0 / 1.0, description: "2/1")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:43:23: warning: static property 'doubleWhole' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
41 | public static let oneBar = NoteValueType(rate: 1.0, description: "1 Bar")
42 | /// Two whole notes.
43 | public static let doubleWhole = NoteValueType(rate: 2.0 / 1.0, description: "2/1")
| |- warning: static property 'doubleWhole' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'doubleWhole' 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
44 | /// Whole note.
45 | public static let whole = NoteValueType(rate: 1.0 / 1.0, description: "1/1")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:45:23: warning: static property 'whole' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
43 | public static let doubleWhole = NoteValueType(rate: 2.0 / 1.0, description: "2/1")
44 | /// Whole note.
45 | public static let whole = NoteValueType(rate: 1.0 / 1.0, description: "1/1")
| |- warning: static property 'whole' is not concurrency-safe because non-'Sendable' type 'NoteValueType' 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
46 | /// Half note.
47 | public static let half = NoteValueType(rate: 1.0 / 2.0, description: "1/2")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:47:23: warning: static property 'half' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
45 | public static let whole = NoteValueType(rate: 1.0 / 1.0, description: "1/1")
46 | /// Half note.
47 | public static let half = NoteValueType(rate: 1.0 / 2.0, description: "1/2")
| |- warning: static property 'half' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'half' 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
48 | /// Quarter note.
49 | public static let quarter = NoteValueType(rate: 1.0 / 4.0, description: "1/4")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:49:23: warning: static property 'quarter' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
47 | public static let half = NoteValueType(rate: 1.0 / 2.0, description: "1/2")
48 | /// Quarter note.
49 | public static let quarter = NoteValueType(rate: 1.0 / 4.0, description: "1/4")
| |- warning: static property 'quarter' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quarter' 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
50 | /// Eighth note.
51 | public static let eighth = NoteValueType(rate: 1.0 / 8.0, description: "1/8")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:51:23: warning: static property 'eighth' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
49 | public static let quarter = NoteValueType(rate: 1.0 / 4.0, description: "1/4")
50 | /// Eighth note.
51 | public static let eighth = NoteValueType(rate: 1.0 / 8.0, description: "1/8")
| |- warning: static property 'eighth' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'eighth' 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
52 | /// Sixteenth note.
53 | public static let sixteenth = NoteValueType(rate: 1.0 / 16.0, description: "1/16")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:53:23: warning: static property 'sixteenth' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
51 | public static let eighth = NoteValueType(rate: 1.0 / 8.0, description: "1/8")
52 | /// Sixteenth note.
53 | public static let sixteenth = NoteValueType(rate: 1.0 / 16.0, description: "1/16")
| |- warning: static property 'sixteenth' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sixteenth' 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
54 | /// Thirtysecond note.
55 | public static let thirtysecond = NoteValueType(rate: 1.0 / 32.0, description: "1/32")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:55:23: warning: static property 'thirtysecond' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
53 | public static let sixteenth = NoteValueType(rate: 1.0 / 16.0, description: "1/16")
54 | /// Thirtysecond note.
55 | public static let thirtysecond = NoteValueType(rate: 1.0 / 32.0, description: "1/32")
| |- warning: static property 'thirtysecond' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'thirtysecond' 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
56 | /// Sixtyfourth note.
57 | public static let sixtyfourth = NoteValueType(rate: 1.0 / 64.0, description: "1/64")
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:57:23: warning: static property 'sixtyfourth' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
55 | public static let thirtysecond = NoteValueType(rate: 1.0 / 32.0, description: "1/32")
56 | /// Sixtyfourth note.
57 | public static let sixtyfourth = NoteValueType(rate: 1.0 / 64.0, description: "1/64")
| |- warning: static property 'sixtyfourth' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sixtyfourth' 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
58 |
59 | public static let all: [NoteValueType] = [
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:59:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NoteValueType]' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
57 | public static let sixtyfourth = NoteValueType(rate: 1.0 / 64.0, description: "1/64")
58 |
59 | public static let all: [NoteValueType] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[NoteValueType]' 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 | .sixteenBars, .eigthBars, .fourBars, .twoBars, .oneBar,
61 | .half, .quarter, .eighth, .sixteenth, .thirtysecond, .sixtyfourth
[10/15] Compiling MusicTheory Pitch.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Key.swift:59:27: 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.
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/ScaleType.swift:81:23: 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
11 |
12 | /// Represents scale by the intervals between note sequences.
13 | public struct ScaleType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'ScaleType' conform to the 'Sendable' protocol
14 | /// Intervals of the scale.
15 | public let intervals: [Interval]
:
79 | extension ScaleType {
80 | /// Major scale.
81 | 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
82 |
83 | /// Minor scale.
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Key.swift:157:23: 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),
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Key.swift:173:23: 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),
[11/15] Compiling MusicTheory Key.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Key.swift:59:27: 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.
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Key.swift:157:23: 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),
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:114:23: 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)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Key.swift:173:23: 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),
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:112:23: 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)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Key.swift:189:23: warning: static property 'allKeys' 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 {
:
187 |
188 | /// All notes in an octave with both flat and sharp notes.
189 | public static let allKeys = [
| |- warning: static property 'allKeys' 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 'allKeys' 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
190 | Key(type: .c, accidental: .natural),
191 | Key(type: .c, accidental: .sharp),
[12/15] Compiling MusicTheory Tempo.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:49:23: warning: static property 'quarter' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
47 | public static let half = NoteValueType(rate: 1.0 / 2.0, description: "1/2")
48 | /// Quarter note.
49 | public static let quarter = NoteValueType(rate: 1.0 / 4.0, description: "1/4")
| |- warning: static property 'quarter' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quarter' 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
50 | /// Eighth note.
51 | public static let eighth = NoteValueType(rate: 1.0 / 8.0, description: "1/8")
[13/15] Compiling MusicTheory Accidental.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:112:23: 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)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:114:23: 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)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:116:23: 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)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:118:23: 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.
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:122:23: 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
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:127:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
125 | public static let M2 = Interval(quality: .major, degree: 2, semitones: 2)
126 | /// Major third.
127 | 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
128 | /// Major sixth.
129 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:110:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
108 | public static let m2 = Interval(quality: .minor, degree: 2, semitones: 1)
109 | /// Minor third.
110 | 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
111 | /// Minor sixth.
112 | public static let m6 = Interval(quality: .minor, degree: 6, semitones: 8)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:97:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
95 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
96 | /// Perfect fifth.
97 | 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
98 | /// Octave.
99 | public static let P8 = Interval(quality: .perfect, degree: 8, semitones: 12)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:150:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
148 | public static let d4 = Interval(quality: .diminished, degree: 4, semitones: 4)
149 | /// Diminished fifth.
150 | 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
151 | /// Diminished sixth.
152 | public static let d6 = Interval(quality: .diminished, degree: 6, semitones: 7)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:181:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
179 | public static let A4 = Interval(quality: .augmented, degree: 4, semitones: 6)
180 | /// Augmented fifth.
181 | 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
182 | /// Augmented sixth.
183 | public static let A6 = Interval(quality: .augmented, degree: 6, semitones: 10)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:129:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
127 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
128 | /// Major sixth.
129 | 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
130 | /// Major seventh.
131 | public static let M7 = Interval(quality: .major, degree: 7, semitones: 11)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:131:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
129 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
130 | /// Major seventh.
131 | 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
132 | /// Major ninth.
133 | public static let M9 = Interval(quality: .major, degree: 9, semitones: 14)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:114:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
112 | public static let m6 = Interval(quality: .minor, degree: 6, semitones: 8)
113 | /// Minor seventh.
114 | 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
115 | /// Minor ninth.
116 | public static let m9 = Interval(quality: .minor, degree: 9, semitones: 13)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:125:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
123 |
124 | /// Major second.
125 | 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
126 | /// Major third.
127 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:95:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
93 | public static let P1 = Interval(quality: .perfect, degree: 1, semitones: 0)
94 | /// Perfect fourth.
95 | 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
96 | /// Perfect fifth.
97 | public static let P5 = Interval(quality: .perfect, degree: 5, semitones: 7)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:133:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
131 | public static let M7 = Interval(quality: .major, degree: 7, semitones: 11)
132 | /// Major ninth.
133 | 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
134 | /// Major tenth.
135 | public static let M10 = Interval(quality: .major, degree: 10, semitones: 16)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:101:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
99 | public static let P8 = Interval(quality: .perfect, degree: 8, semitones: 12)
100 | /// Perfect eleventh.
101 | 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
102 | /// Perfect twelfth.
103 | public static let P12 = Interval(quality: .perfect, degree: 12, semitones: 19)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:137:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
135 | public static let M10 = Interval(quality: .major, degree: 10, semitones: 16)
136 | /// Major thirteenth.
137 | 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
138 | /// Major fourteenth.
139 | public static let M14 = Interval(quality: .major, degree: 14, semitones: 23)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:116:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
114 | public static let m7 = Interval(quality: .minor, degree: 7, semitones: 10)
115 | /// Minor ninth.
116 | 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
117 | /// Minor tenth.
118 | public static let m10 = Interval(quality: .minor, degree: 10, semitones: 15)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:189:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
187 | public static let A8 = Interval(quality: .augmented, degree: 8, semitones: 13)
188 | /// Augmented ninth.
189 | 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
190 | /// Augmented tenth.
191 | public static let A10 = Interval(quality: .augmented, degree: 10, semitones: 17)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:193:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
191 | public static let A10 = Interval(quality: .augmented, degree: 10, semitones: 17)
192 | /// Augmented eleventh.
193 | 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
194 | /// Augmented twelfth.
195 | public static let A12 = Interval(quality: .augmented, degree: 12, semitones: 20)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:120:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
118 | public static let m10 = Interval(quality: .minor, degree: 10, semitones: 15)
119 | /// Minor thirteenth.
120 | 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
121 | /// Minor fourteenth.
122 | public static let m14 = Interval(quality: .minor, degree: 14, semitones: 22)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:197:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
195 | public static let A12 = Interval(quality: .augmented, degree: 12, semitones: 20)
196 | /// Augmented thirteenth.
197 | 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
198 | /// Augmented fourteenth.
199 | public static let A14 = Interval(quality: .augmented, degree: 14, semitones: 24)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:93:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
91 |
92 | /// Unison.
93 | 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
94 | /// Perfect fourth.
95 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
[14/15] Compiling MusicTheory Chord.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:112:23: 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)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:114:23: 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)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:116:23: 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)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:118:23: 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.
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Accidental.swift:122:23: 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
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:127:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
125 | public static let M2 = Interval(quality: .major, degree: 2, semitones: 2)
126 | /// Major third.
127 | 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
128 | /// Major sixth.
129 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:110:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
108 | public static let m2 = Interval(quality: .minor, degree: 2, semitones: 1)
109 | /// Minor third.
110 | 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
111 | /// Minor sixth.
112 | public static let m6 = Interval(quality: .minor, degree: 6, semitones: 8)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:97:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
95 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
96 | /// Perfect fifth.
97 | 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
98 | /// Octave.
99 | public static let P8 = Interval(quality: .perfect, degree: 8, semitones: 12)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:150:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
148 | public static let d4 = Interval(quality: .diminished, degree: 4, semitones: 4)
149 | /// Diminished fifth.
150 | 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
151 | /// Diminished sixth.
152 | public static let d6 = Interval(quality: .diminished, degree: 6, semitones: 7)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:181:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
179 | public static let A4 = Interval(quality: .augmented, degree: 4, semitones: 6)
180 | /// Augmented fifth.
181 | 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
182 | /// Augmented sixth.
183 | public static let A6 = Interval(quality: .augmented, degree: 6, semitones: 10)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:129:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
127 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
128 | /// Major sixth.
129 | 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
130 | /// Major seventh.
131 | public static let M7 = Interval(quality: .major, degree: 7, semitones: 11)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:131:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
129 | public static let M6 = Interval(quality: .major, degree: 6, semitones: 9)
130 | /// Major seventh.
131 | 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
132 | /// Major ninth.
133 | public static let M9 = Interval(quality: .major, degree: 9, semitones: 14)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:114:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
112 | public static let m6 = Interval(quality: .minor, degree: 6, semitones: 8)
113 | /// Minor seventh.
114 | 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
115 | /// Minor ninth.
116 | public static let m9 = Interval(quality: .minor, degree: 9, semitones: 13)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:125:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
123 |
124 | /// Major second.
125 | 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
126 | /// Major third.
127 | public static let M3 = Interval(quality: .major, degree: 3, semitones: 4)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:95:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
93 | public static let P1 = Interval(quality: .perfect, degree: 1, semitones: 0)
94 | /// Perfect fourth.
95 | 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
96 | /// Perfect fifth.
97 | public static let P5 = Interval(quality: .perfect, degree: 5, semitones: 7)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:133:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
131 | public static let M7 = Interval(quality: .major, degree: 7, semitones: 11)
132 | /// Major ninth.
133 | 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
134 | /// Major tenth.
135 | public static let M10 = Interval(quality: .major, degree: 10, semitones: 16)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:101:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
99 | public static let P8 = Interval(quality: .perfect, degree: 8, semitones: 12)
100 | /// Perfect eleventh.
101 | 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
102 | /// Perfect twelfth.
103 | public static let P12 = Interval(quality: .perfect, degree: 12, semitones: 19)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:137:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
135 | public static let M10 = Interval(quality: .major, degree: 10, semitones: 16)
136 | /// Major thirteenth.
137 | 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
138 | /// Major fourteenth.
139 | public static let M14 = Interval(quality: .major, degree: 14, semitones: 23)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:116:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
114 | public static let m7 = Interval(quality: .minor, degree: 7, semitones: 10)
115 | /// Minor ninth.
116 | 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
117 | /// Minor tenth.
118 | public static let m10 = Interval(quality: .minor, degree: 10, semitones: 15)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:189:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
187 | public static let A8 = Interval(quality: .augmented, degree: 8, semitones: 13)
188 | /// Augmented ninth.
189 | 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
190 | /// Augmented tenth.
191 | public static let A10 = Interval(quality: .augmented, degree: 10, semitones: 17)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:193:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
191 | public static let A10 = Interval(quality: .augmented, degree: 10, semitones: 17)
192 | /// Augmented eleventh.
193 | 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
194 | /// Augmented twelfth.
195 | public static let A12 = Interval(quality: .augmented, degree: 12, semitones: 20)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:120:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
118 | public static let m10 = Interval(quality: .minor, degree: 10, semitones: 15)
119 | /// Minor thirteenth.
120 | 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
121 | /// Minor fourteenth.
122 | public static let m14 = Interval(quality: .minor, degree: 14, semitones: 22)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:197:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
195 | public static let A12 = Interval(quality: .augmented, degree: 12, semitones: 20)
196 | /// Augmented thirteenth.
197 | 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
198 | /// Augmented fourteenth.
199 | public static let A14 = Interval(quality: .augmented, degree: 14, semitones: 24)
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/Interval.swift:93:23: 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
32 |
33 | /// Defines the interval between `Pitch`es in semitones.
34 | public struct Interval: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Interval' conform to the 'Sendable' protocol
35 | /// Quality type of the interval.
36 | public enum Quality: Int, Codable, Hashable, CaseIterable, CustomStringConvertible {
:
91 |
92 | /// Unison.
93 | 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
94 | /// Perfect fourth.
95 | public static let P4 = Interval(quality: .perfect, degree: 4, semitones: 5)
[15/15] Compiling MusicTheory TimeSignature.swift
/Users/admin/builder/spi-builder-workspace/Sources/MusicTheory/NoteValue.swift:49:23: warning: static property 'quarter' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Defines the types of note values.
16 | public struct NoteValueType: Codable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'NoteValueType' conform to the 'Sendable' protocol
17 | /// The note value's duration in beats.
18 | public var rate: Double
:
47 | public static let half = NoteValueType(rate: 1.0 / 2.0, description: "1/2")
48 | /// Quarter note.
49 | public static let quarter = NoteValueType(rate: 1.0 / 4.0, description: "1/4")
| |- warning: static property 'quarter' is not concurrency-safe because non-'Sendable' type 'NoteValueType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quarter' 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
50 | /// Eighth note.
51 | public static let eighth = NoteValueType(rate: 1.0 / 8.0, description: "1/8")
Build complete! (15.85s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "MusicTheory",
"name" : "MusicTheory",
"path" : "/Users/admin/builder/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",
"ScaleType.swift",
"Tempo.swift",
"TimeSignature.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.