Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork80
Music Theory for Humans.
NotificationsYou must be signed in to change notification settings
kennethreitz/pytheory
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This (work in progress) library attempts to make exploring music theory approachable to humans.
>>>from pytheoryimport TonedScale>>> c_minor= TonedScale(tonic='C4')['minor']>>> c_minor<Scale I=C4 II=D4 III=Eb4 IV=F4 V=G4 VI=Ab4 VII=Bb5 VIII=C5>>>> c_minor[0].pitch()523.251130601197>>> c_minor["I"].pitch(symbolic=True)440*2**(1/4)>>> c_minor["tonic"].pitch(temperament='pythagorean',symbolic=True)14080/27
>>> from pytheory import playplay(c_minor[0], t=1_000)>>>from pytheoryimport 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)
It can alsogenerate charts for all known chords for any instrument (accuracy to be determined!).
✨🍰✨
About
Music Theory for Humans.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors12
Uh oh!
There was an error while loading.Please reload this page.
