

GitHub - kennethreitz/pytheory: Music Theory for Humans.
source link: https://github.com/kennethreitz/pytheory
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
PyTheory: Music Theory for Humans
This (work in progress) library attempt to make exploring music theory approachable to humans.
Usage Example
>>> from pytheory import TonedScale
>>> c_major = TonedScale(tonic='C4').scales['major']
>>> c_major
(<Tone C4>, <Tone D4>, <Tone E4>, <Tone F4>, <Tone G4>, <Tone A5>, <Tone B5>, <Tone C5>)
>>> c_major[0].pitch()
523.251130601197
>>> c_major[0].pitch(symbolic=True)
440*2**(1/4)
>>> c_major[0].pitch(temprament='pythagorean', symbolic=True)
14080/27
✨?✨
Recommend
-
182
Pipenv: Python Development Workflow for Humans [ ~ Dependency Scanning by PyUp.io ~ ] Pipenv is a tool that aims to bring the best of all packaging worlds (bund...
-
74
PipenvLib: A library for manipulating Pipenv projects. This library exists to make it easy to programmatically interact with / introspect / manipulate Pipenv projects.
-
106
s3monkey - A Python library that allows you to interact with Amazon S3 Buckets as if they are your local filesystem.
-
128
twitter-scraper - Scrape the Twitter Frontend API without authentication.
-
140
requests-html - HTML Parsing for Humans™
-
157
Python 程序员,特别是做爬虫的同学都知道 HTTP 请求库 Requests,Requests 完美体现了 “for Humans” 这个词要表达的意思。 它的作者是高颜值的摄影爱好者 kennethreitz ,kennethreitz 写过很多的库,
-
68
README.rst Requests-Core Experimental lower-level async HTTP client for Requests 3.0 Goals: take urllib3 codebase add async s...
-
44
README.md Requests: HTTP for Humans™
-
57
README.md bash.py An inline Bash script runner, for Python. Example Usage >>> import bash >>>...
-
60
README.md
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK