Array

extension Array
public extension Array where Element == ChordDefinition
  • combinationsWithoutRepetition From SwiftlyChordUtilities

    Get all combinations of an array

    Note

    Used to get all chord notes combinations in getChordComponents

    Declaration

    Swift

    var combinationsWithoutRepetition: [[Element]]

Available where Element == ChordDefinition

  • roots() From SwiftlyChordUtilities

    Get all roots

    Declaration

    Swift

    func roots() -> [Chord.Root]

    Return Value

    All the roots

  • qualities() From SwiftlyChordUtilities

    Get all qualities

    Declaration

    Swift

    func qualities() -> [Chord.Quality]

    Return Value

    All the qualities

  • matching(root:) From SwiftlyChordUtilities

    Find all chord definitions matching a root note

    Declaration

    Swift

    func matching(root: Chord.Root) -> [ChordDefinition]

    Parameters

    root

    The root note

    Return Value

    All matching chord definitions

  • matching(quality:) From SwiftlyChordUtilities

    Find all chord definitions matching a quality

    Declaration

    Swift

    func matching(quality: Chord.Quality) -> [ChordDefinition]

    Parameters

    quality

    The quality

    Return Value

    All matching chord definitions

  • matching(bass:) From SwiftlyChordUtilities

    Find all chord definitions matching a bass note

    Declaration

    Swift

    func matching(bass: Chord.Root?) -> [ChordDefinition]

    Parameters

    bass

    Te bass note

    Return Value

    All matching chord definitions

  • matching(baseFret:) From SwiftlyChordUtilities

    Find all chord definitions matching a base fret

    Declaration

    Swift

    func matching(baseFret: Int) -> [ChordDefinition]

    Parameters

    baseFret

    The base fret

    Return Value

    All matching chord definitions

  • matching(group:) From SwiftlyChordUtilities

    Find all chord definitions matching a chord group

    Declaration

    Swift

    func matching(group: Chord.Group) -> [ChordDefinition]

    Parameters

    group

    The group

    Return Value

    All matching chord definitions