Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Tonic/Accidental.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Foundation
/// A way to describe modification to a ``Note`` or ``NoteClass``
///
/// A semitone offset applied to a note that does not change the letter of the note, just the pitch.
public enum Accidental: Int8, CaseIterable, Equatable, Hashable, Codable {
public enum Accidental: Int8, Sendable, CaseIterable, Equatable, Hashable, Codable {
static var count: Int { Accidental.allCases.count }
static var naturalIndex: Int { count / 2 }

Expand Down
4 changes: 2 additions & 2 deletions Sources/Tonic/BitSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Foundation

/// Interface to bit sets used to represent sets of pitches and sets of notes.
public protocol BitSet: Hashable, Codable {
public protocol BitSet: Hashable, Codable, Sendable {
init()
func isSet(bit: Int) -> Bool
mutating func add(bit: Int)
Expand Down Expand Up @@ -195,7 +195,7 @@ public protocol IntRepresentable {
var intValue: Int { get }
}

public struct BitSetAdapter<T: IntRepresentable, B: BitSet>: Hashable, Codable {
public struct BitSetAdapter<T: IntRepresentable, B: BitSet>: Sendable, Hashable, Codable {
public var bits: B

public init() {
Expand Down
Loading