DisplayOptions
public struct DisplayOptions: Codable, Equatable, Sendable
The structure for display options passed to the ChordDefinitionView
-
init(showName:
showNotes: showPlayButton: rootDisplay: qualityDisplay: showFingers: mirrorDiagram: instrument: midiInstrument: ) Init the structure with default values
Declaration
Swift
public init( showName: Bool = true, showNotes: Bool = false, showPlayButton: Bool = false, rootDisplay: Display.Root = .symbol, qualityDisplay: Display.Quality = .symbolized, showFingers: Bool = true, mirrorDiagram: Bool = false, instrument: Instrument = .guitarStandardETuning, midiInstrument: Midi.Instrument = .acousticSteelGuitar )
-
Show the name in the chord shape
Declaration
Swift
public var showName: Bool
-
Show the notes of the chord
Declaration
Swift
public var showNotes: Bool
-
Show a button to play the chord with MIDI
Declaration
Swift
public var showPlayButton: Bool
-
Display of the root value
Declaration
Swift
public var rootDisplay: Display.Root
-
Display of the quality value
Declaration
Swift
public var qualityDisplay: Display.Quality
-
Show the finger position on the diagram
Declaration
Swift
public var showFingers: Bool
-
Mirror the chord diagram for lefthanded users
Declaration
Swift
public var mirrorDiagram: Bool
-
The instrument
Declaration
Swift
public var instrument: Instrument
-
The instrument to use for playing the chord with MIDI
Declaration
Swift
public var midiInstrument: Midi.Instrument
-
Display options for the chord name
See moreDeclaration
Swift
public enum Display