Instrument
enum Instrument: String, CaseIterable, Codable, Identifiable, Sendable
The instruments we know about
-
Make
Instrument
identifiableDeclaration
Swift
var id: String
-
Guitar Standard E tuning
Declaration
Swift
case guitar
-
Guitalele
Declaration
Swift
case guitalele
-
Ukulele Standard G tuning
Declaration
Swift
case ukulele
-
The label of the instrument
Declaration
Swift
var label: String
-
The description of the instrument
Declaration
Swift
var description: String
-
The tuning of the instrument
Declaration
Swift
var tuning: [String]
-
The strings of the instrument
Declaration
Swift
var strings: [Int]
-
The name of the strings
Declaration
Swift
var stringName: [Chord.Root]
-
The offset for each string from the base ‘E’
Note
Start with -1, because of the BaseFret value inChordDefinition
Declaration
Swift
var offset: [Int]
-
The databases for the instruments
Declaration
Swift
var database: String