Music theory tools
Project description
Install
pip install pianum
Use
import pianum as pn
from pianum.struct import Interval, Scale, Chord
root = 3
interval = pn.interval(root, Interval.M3)
print(interval)
scale = pn.scale(root, Scale.Major)
print(scale)
chord = pn.chord(root, Chord.Major7)
print(chord)
inversion = pn.invert_up(chord)
print(inversion)
notes = pn.ints_to_notes(inversion)
print(notes)
[3, 7]
[3, 5, 7, 8, 10, 12, 14]
[3, 7, 10, 14]
[7, 10, 14, 15]
['E', 'G', 'B', 'C']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pianum-0.0.1.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pianum-0.0.1.tar.gz.
File metadata
- Download URL: pianum-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
902944470548aa866a4792247808eacfca31c5d49c656fe06a8e459fa59bc860
|
|
| MD5 |
9bc40e803e5cee0150892ee8aa11238c
|
|
| BLAKE2b-256 |
8806d8bacb2ca18763d07391f5eca35a549aebb53ba0613bca641077102c7905
|
File details
Details for the file pianum-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pianum-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1735391a5c2e651dec02cfdceb7da428993a194b8f2da273067c7911de6a367f
|
|
| MD5 |
40eb89af12d5ac523f0d8c9588ffa92d
|
|
| BLAKE2b-256 |
f0f3ddd375bf1d6b31af6f5698bfc85d08c92decb21ba6f57bdcb19bd6948bc6
|