Fix issue mapping chords for C# and F#
Lightweight guitar & ukulele chords in SwiftUI.
Supports iOS 13 and MacOS 10.15 upwards.
🎵 Chord positions
🌗 Light / Dark modes
🎸 Guitar & ukulele chords with basic tunings
⏳ More to come
Add https://github.com/itsmeichigo/Fretboard.git as the source and you’re good to go.
Copy contents from Sources folder to your project.
Get your desired instruments:
let guitar = Instrument.guitar let ukulele = Instrument.ukulele
Each instrument comes with their own name, keys, suffixes and chords. Get a list of positions for a chord using key and suffix:
let dAug9Positions = guitar.findChordPositions(key: "D", suffix: "aug9") let cMajorUkuPositions = Instrument.ukulele.findChordPositions(key: "C", suffix: "major")
Display any chord by sending it to FretboardView:
FretboardView
FretboardView(position: dAug9Position) .frame(width: 100, height: 200)
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Fretboard
Lightweight guitar & ukulele chords in SwiftUI.
Supports iOS 13 and MacOS 10.15 upwards.
Features
🎵 Chord positions
🌗 Light / Dark modes
🎸 Guitar & ukulele chords with basic tunings
⏳ More to come
Installation
Swift Package Manager
Add https://github.com/itsmeichigo/Fretboard.git as the source and you’re good to go.
Manual install
Copy contents from Sources folder to your project.
Usage
Get your desired instruments:
Each instrument comes with their own name, keys, suffixes and chords. Get a list of positions for a chord using key and suffix:
Display any chord by sending it to
FretboardView
:Demo app