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
  • 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 in ChordDefinition

    Declaration

    Swift

    var offset: [Int]
  • The databases for the instruments

    Declaration

    Swift

    var database: String