mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-06-05 23:00:20 +00:00
readme
This commit is contained in:
@@ -4,9 +4,9 @@ This (work in progress) library attempt to make exploring music theory approacha
|
||||
|
||||

|
||||
|
||||
## Usage Example
|
||||
## True Scale -> Pitch Evaluation
|
||||
|
||||
``` {.pycon}
|
||||
```pycon
|
||||
>>> from pytheory import TonedScale
|
||||
|
||||
>>> c_minor = TonedScale(tonic='C4')['minor']
|
||||
@@ -24,4 +24,27 @@ This (work in progress) library attempt to make exploring music theory approacha
|
||||
14080/27
|
||||
```
|
||||
|
||||
|
||||
## Chord Fingerings for Custom Tunings
|
||||
|
||||
```pycon
|
||||
>>> from pytheory import Tone, Fretboard, CHARTS
|
||||
|
||||
>>> tones = (
|
||||
... Tone.from_string("F2"),
|
||||
... Tone.from_string("C3"),
|
||||
... Tone.from_string("G3"),
|
||||
... Tone.from_string("D4"),
|
||||
... Tone.from_string("A5"),
|
||||
... Tone.from_string("E5")
|
||||
... )
|
||||
|
||||
>>> fretboard = Fretboard(tones=tones)
|
||||
>>>
|
||||
>>> c_chord = CHARTS['western']["C"]
|
||||
|
||||
>>> print(c_chord.fingering(fretboard=fretboard))
|
||||
(0, 0, 0, 3, 3, 3)
|
||||
```
|
||||
|
||||
✨🍰✨
|
||||
|
||||
Reference in New Issue
Block a user