项目作者: itsmeichigo

项目描述 :
Guitar & Ukulele chords with SwiftUI 🎸🎵🎶
高级语言: Swift
项目地址: git://github.com/itsmeichigo/Fretboard.git
创建时间: 2021-01-23T15:12:32Z
项目社区:https://github.com/itsmeichigo/Fretboard

开源协议:MIT License

下载


Fretboard

Logo

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:

  1. let guitar = Instrument.guitar
  2. 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:

  1. let dAug9Positions = guitar.findChordPositions(key: "D", suffix: "aug9")
  2. let cMajorUkuPositions = Instrument.ukulele.findChordPositions(key: "C", suffix: "major")

Display any chord by sending it to FretboardView:

  1. FretboardView(position: dAug9Position)
  2. .frame(width: 100, height: 200)

Demo app

screenshot