https://github.com/cemolcay/circleoffifths
Fully customisable IBDesignable circle of fifths implementation in swift.
https://github.com/cemolcay/circleoffifths
core-graphics coregraphics ibdesignable ios mac music music-theory swift
Last synced: about 1 year ago
JSON representation
Fully customisable IBDesignable circle of fifths implementation in swift.
- Host: GitHub
- URL: https://github.com/cemolcay/circleoffifths
- Owner: cemolcay
- License: mit
- Created: 2017-01-19T06:15:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T08:08:17.000Z (over 7 years ago)
- Last Synced: 2025-05-05T04:41:02.394Z (about 1 year ago)
- Topics: core-graphics, coregraphics, ibdesignable, ios, mac, music, music-theory, swift
- Language: Swift
- Size: 714 KB
- Stars: 50
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CircleOfFifths
===
Fully customisable IBDesignable circle of fifths implementation.

Requirements
----
* Swift 3+
* iOS 8.0+
* tvOS 9.0+
* macOS 10.11+
Install
----
```
pod 'CircleOfFifths'
```
You need to add this post installer script to your podfile in order to use @IBDesignable libraries with pods.
More information on this [cocoapods issue](https://github.com/CocoaPods/CocoaPods/issues/5334)
```
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = ['$(FRAMEWORK_SEARCH_PATHS)']
end
end
```
Usage
----
* CircleOfFifths just a regular `UIView` subclass with custom `CALayer` drawing with customisable `@IBInspectable` properties.
* It can render any `Scale` type in any key of this [music theory library](https://github.com/cemolcay/MusicTheory).
* Just set the `scale` parameter in order to change scale and/or key of circle.
* Also draws another customisable circle below to show related major, minor and diminished chords of the scale in circle.
Credits
----
* Thanks to http://randscullard.com/CircleOfFifths/