MIT License

项目介绍

danielbreves/MusicTheory 是一个托管在 GitHub 上的开源项目,主要使用 Swift 编写,采用 MIT License 许可证,目前获得 156 个 Star、11 次 Fork。

仓库全名
danielbreves/MusicTheory
开源许可证
MIT License
Star 数
156
Fork 数
11

README 摘要

MusicTheory A music theory library for Swift OS X and iOS apps. MusicTheory provides objects to work with musical keys, notes, scales and chords. It can be used to generate a scale from a key or note symbol, or a chord from a key and a chord degree for example. You can also use it to translate a sequence of notes to a sequence of MIDI values. Installation CocoaPods Put this in your Podfile: Usage: For a list of all…

完整内容见 GitHub 原始 README 或本页 。

常见问题

MusicTheory 用什么语言开发?

主要使用 Swift 编写,采用 MIT License 许可证,目前有 156 个 Star。

MusicTheory 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 MusicTheory 的源码?

可以直接克隆仓库:git clone https://github.com/danielbreves/MusicTheory.git,默认分支为 master;安装与运行步骤见仓库 README。

MusicTheory 最近还在维护吗?

仓库最近一次更新为 2018年2月10日,当前没有未关闭的 Issue;Star 数为 156,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A music theory library for Swift OS X and iOS apps.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
185
价值分
97
活跃状态
活跃

语言占比

Objective-C
Ruby
Swift

贡献者

README

MusicTheory

A music theory library for Swift OS X and iOS apps.

MusicTheory provides objects to work with musical keys, notes, scales and chords. It can be used to generate a scale from a key or note symbol, or a chord from a key and a chord degree for example. You can also use it to translate a sequence of notes to a sequence of MIDI values.

Installation

CocoaPods

Put this in your Podfile:

pod "MusicTheory", "~> 1.1"

Usage:

let cFlat = Note(name: "C♭")

let cFlatMinorScale = cFlat.scale("minor")

cFlatMinorScale.names // ["C♭", "D♭", "E♭♭", "F♭", "G♭", "A♭♭", "B♭♭"]
cFlatMinorScale.values // [59, 61, 62, 64, 66, 67, 69]

let cFlatMinChord = Chord(root: cFlat, type: "min") // or cFlat.chord("min")

cFlatMinChord.names // ["C♭", "E♭♭", "G♭"]
cFlatMinChord.values // [59, 62, 66]

let cFlatMajor = Key(note: cFlat, quality: "major")
let cFlatV7 = cFlatMajor.chord("V", type: "7")!

cFlatV7.name // "G♭7"
cFlatV7.notes.map { $0.name } // ["G♭", "B♭", "D♭", "F♭"]

For a list of all supported chord types see: Sources/Music.swift

For more usage examples see: Tests/MusicTheoryTests.swift

Contributing

Improvements are always welcome. Please follow these steps to contribute:

  1. Submit a Pull Request with a detailed explanation of changes and tests
  2. Receive a :+1: from a core team member
  3. Core team will merge your changes

License

See LICENSE.

评论

暂无评论