Latest 0.2.0
Homepage https://github.com/muukii/MusicalScaleKit
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

Create from ScaleDegree

public struct Scale {

    public let degrees: [Degree]

    public let key: Note

    public init(key: Note, degrees: [Degree])    

    public var notes: [Note] { get }
}

Get IonianScale(MajorScale)

let ionianScale = Scale(
    key: .C(.natural),
    degrees: [
        .one(.natural),
        .two(.natural),
        .three(.natural),
        .four(.natural),
        .five(.natural),
        .six(.natural),
        .seven(.natural),
    ]
)

print(ionianScale)
key: C
degrees: [1, 2, 3, 4, 5, 6, 7]
notes: [C, D, E, F, G, A, B]

Get DorianScale

let dorianScale = Scale(
    key: .C(.natural),
    degrees: [
        .one(.natural),
        .two(.natural),
        .three(.flat),
        .four(.natural),
        .five(.natural),
        .six(.natural),
        .seven(.flat),
    ]
)

print(dorianScale)
key: C
degrees: [1, 2, ♭3, 4, 5, 6, ♭7]
notes: [C, D, D#, F, G, A, A#]

Create Note

let a = Note.a(.natural)
let a_flat = Note.a(.flat)
let a_sharp = Note.a(.sharp)

or

let a = Note.a(.natural)
let a_flat = a.flat()
let a_sharp = a.sharp()

Requirements

Installation

MusicalScaleKit is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MusicalScaleKit"

Author

muukii, [email protected]

License

MusicalScaleKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MusicalScaleKit",
    "version": "0.2.0",
    "summary": "Generate notes on Musical Scale",
    "description": "Generate notes on Musical Scale.nYou can get notes. (Set ScaleDegree and Key)",
    "homepage": "https://github.com/muukii/MusicalScaleKit",
    "license": "MIT",
    "authors": {
        "muukii": "[email protected]"
    },
    "source": {
        "git": "https://github.com/muukii/MusicalScaleKit.git",
        "tag": "0.2.0"
    },
    "social_media_url": "https://twitter.com/muukii0803",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MusicalScaleKit/**/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This