Song

struct Song

The structure of a song in Chord Provider

Meta-data directives

  • The optional title

    Declaration

    Swift

    var title: String?
  • The optional artist

    Declaration

    Swift

    var artist: String?
  • The optional capo

    Declaration

    Swift

    var capo: String?
  • key

    The optional key

    Declaration

    Swift

    var key: ChordDefinition?
  • The optional tempo

    Declaration

    Swift

    var tempo: String?
  • The optional time

    Declaration

    Swift

    var time: String?
  • The optional year

    Declaration

    Swift

    var year: String?
  • The optional album

    Declaration

    Swift

    var album: String?
  • The optional tuning

    Declaration

    Swift

    var tuning: String?
  • The optional path to the audio file

    Declaration

    Swift

    var musicPath: String?
  • The optional transpose

    Declaration

    Swift

    var transpose: Int
  • The instrument

    Declaration

    Swift

    var instrument: Instrument

Song export

  • The location for the PDF export

    Declaration

    Swift

    var exportURL: URL { get }
  • The default name for the export

    Declaration

    Swift

    var exportName: String { get }

All the sections in the song

  • The sections of the song

    Declaration

    Swift

    var sections: [Song.Section]

All the chords in the song

  • The chords of the song

    Declaration

    Swift

    var chords: [ChordDefinition]
  • Render a Song struct into a SwiftUI View

    See more

    Declaration

    Swift

    struct Render : View
  • A section in the Song

    See more

    Declaration

    Swift

    struct Section : Identifiable
  • The style of the song view

    See more

    Declaration

    Swift

    enum Style