mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-06-21 15:00:57 +00:00
426ceafe19
Key.detect and Scale.detect compared note spellings, so "A#" never matched a scale spelled "Bb", and keys whose scales render with mixed spellings (A# major contains both "A#" and "Bb") got inflated match counts and won far too often. Both now compare pitch classes. Key.detect breaks ties by tonic-then-fifth presence (A-C-E → A minor) and reports conventional spellings (Bb major, never A# major). Transcription feeds full chord tones, not just roots, into detection. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
55 lines
1.4 KiB
TOML
55 lines
1.4 KiB
TOML
[project]
|
|
name = "pytheory"
|
|
version = "0.49.1"
|
|
description = "Music Theory for Humans"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
requires-python = ">=3.10"
|
|
authors = [
|
|
{ name = "Kenneth Reitz", email = "me@kennethreitz.org" },
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"Intended Audience :: Education",
|
|
"Topic :: Multimedia :: Sound/Audio",
|
|
"Topic :: Multimedia :: Sound/Audio :: Analysis",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
]
|
|
dependencies = [
|
|
"sounddevice",
|
|
"scipy",
|
|
"rich>=14.3.3",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
live = ["python-rtmidi"]
|
|
link = ["LinkPython-extern"]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/kennethreitz/pytheory"
|
|
Documentation = "https://pytheory.org"
|
|
Repository = "https://github.com/kennethreitz/pytheory"
|
|
Issues = "https://github.com/kennethreitz/pytheory/issues"
|
|
|
|
[project.scripts]
|
|
pytheory = "pytheory.cli:main"
|
|
|
|
[dependency-groups]
|
|
dev = ["pytest", "LinkPython-extern"]
|
|
docs = ["sphinx", "myst-parser"]
|
|
|
|
[build-system]
|
|
requires = ["setuptools"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.pytest.ini_options]
|
|
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]
|
|
|
|
[tool.setuptools]
|
|
packages = ["pytheory"]
|