Array
extension Array
extension Array where Element == ChordDefinition
-
Get all combinations of an array
Note
Used to get all chord notes combinations ingetChordComponents
Declaration
Swift
var combinationsWithoutRepetition: [[Element]]
-
Get all roots
Declaration
Swift
func roots() -> [Chord.Root]
Return Value
All the roots
-
Get all qualities
Declaration
Swift
func qualities() -> [Chord.Quality]
Return Value
All the qualities
-
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
-
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
-
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
-
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
-
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