music-theory

Go models of Note, Scale, Chord and Key

  • 所有者: go-music-theory/music-theory
  • 平台:
  • 許可證: GNU General Public License v3.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Build Status GoDoc Go Report Card codebeat badge

https://github.com/go-music-theory/music-theory

Music theory models in Go

There's an example command-line utility music-theory.go to demo the libraries, with a bin/ wrapper.

To build and install music-theory to your machine:

make install

Then, to calculate the note pitch classes for a specified Chord:

$ music-theory chord "Cm nondominant -5 679"

root: C
tones:
  3: D#
  6: A
  7: A#
  9: D

To list the names of all the known chord-building rules:

$ music-theory chords

- Basic
- Nondominant
- Major Triad
- Minor Triad
- Augmented Triad
- Diminished Triad
- Suspended Triad
- Omit Fifth
- Flat Fifth
- Add Sixth
- Augmented Sixth
- Omit Sixth
- Add Seventh
- Dominant Seventh
- Major Seventh
- Minor Seventh
- Diminished Seventh
- Half Diminished Seventh
- Diminished Major Seventh
- Augmented Major Seventh
- Augmented Minor Seventh
- Harmonic Seventh
- Omit Seventh
- Add Ninth
- Dominant Ninth
- Major Ninth
- Minor Ninth
- Sharp Ninth
- Omit Ninth
- Add Eleventh
- Dominant Eleventh
- Major Eleventh
- Minor Eleventh
- Omit Eleventh
- Add Thirteenth
- Dominant Thirteenth
- Major Thirteenth
- Minor Thirteenth

To calculate the note pitch classes for a specified Scale:

$ music-theory scale "C aug"

root: C
tones:
  1: C
  2: D#
  3: E
  4: G
  5: G#
  6: B

To list the names of all the known scale-building rules:

$ music-theory scales

- Default (Major)
- Minor
- Major
- Natural Minor
- Diminished
- Augmented
- Melodic Minor Ascend
- Melodic Minor Descend
- Harmonic Minor
- Ionian
- Dorian
- Phrygian
- Lydian
- Mixolydian
- Aeolian
- Locrian

To determine a key:

$ music-theory key Db

root: Db
mode: Major
relative:
  root: Bb
  mode: Minor
Credit

Charney Kaye

Outright Mental

Note

A Note is used to represent the relative duration and pitch of a sound.

GoDoc Coverage

Key

The key of a piece is a group of pitches, or scale upon which a music composition is created in classical, Western art, and Western pop music.

GoDoc Coverage

Chord

In music theory, a chord is any harmonic set of three or more notes that is heard as if sounding simultaneously.

GoDoc Coverage

Scale

In music theory, a scale is any set of musical notes ordered by fundamental frequency or pitch.

GoDoc Coverage

主要指標

概覽
名稱與所有者go-music-theory/music-theory
主編程語言Go
編程語言Makefile (語言數: 3)
平台
許可證GNU General Public License v3.0
所有者活动
創建於2016-03-17 03:50:17
推送於2020-07-22 22:26:52
最后一次提交2020-07-22 15:26:51
發布數4
最新版本名稱v0.0.4 (發布於 )
第一版名稱v0.0.1 (發布於 2016-03-27 13:57:38)
用户参与
星數447
關注者數19
派生數44
提交數95
已啟用問題?
問題數19
打開的問題數8
拉請求數20
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?