mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-06-05 23:00:20 +00:00
4fe7771d83
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
"""PyTheory: Music Theory for Humans."""
|
|
|
|
__version__ = "0.33.0"
|
|
|
|
from .tones import Tone, Interval
|
|
from .systems import System, SYSTEMS, TET
|
|
from .scales import TonedScale, Key, PROGRESSIONS
|
|
from .chords import Chord, Fretboard, analyze_progression
|
|
from .charts import CHARTS, Fingering, charts_for_fretboard
|
|
|
|
from .rhythm import Duration, TimeSignature, Rest, Score, Part, Section, DrumSound, Pattern, INSTRUMENTS
|
|
from .rhythm import Note as RhythmNote # rhythm.Note (tone + duration pairing)
|
|
|
|
from .play import (play, save, save_midi, play_progression, play_pattern,
|
|
play_score, render_score, Synth, Envelope)
|
|
|
|
# Aliases for discoverability.
|
|
Note = Tone
|
|
Scale = TonedScale
|
|
|
|
__all__ = [
|
|
"Tone", "Note", "Interval", "Scale", "TonedScale", "Key",
|
|
"PROGRESSIONS", "Chord", "Fretboard", "Fingering", "analyze_progression",
|
|
"System", "SYSTEMS", "TET", "CHARTS", "charts_for_fretboard",
|
|
"play", "save", "save_midi", "play_progression", "play_pattern",
|
|
"play_score", "Synth", "Envelope",
|
|
"Duration", "TimeSignature", "RhythmNote", "Rest", "Score", "Part",
|
|
"DrumSound", "Pattern", "Section", "INSTRUMENTS",
|
|
]
|