Instrument
public enum Instrument : String, CaseIterable, Codable, Sendable
The instruments we know about
-
Guitar Standard E tuning
Declaration
Swift
case guitarStandardETuning
-
Guitalele
Declaration
Swift
case guitaleleStandardATuning
-
Ukulele Standard G tuning
Declaration
Swift
case ukuleleStandardGTuning
-
The label of the instrument
Declaration
Swift
var label: String { get }
-
The strings of the instrument
Declaration
Swift
var strings: [Int] { get }
-
The name of the strings
Declaration
Swift
var stringName: [Chord.Root] { get }
-
The offset for each string from the base ‘E’
Note
Start with -1, because of the BaseFret value inChordDefinition
Declaration
Swift
var offset: [Int] { get }
-
The databases for the instruments
Declaration
Swift
var database: String { get }