scales
A tool to generate stringed instrument visual aids
Installation
Install using:
pip install scales.py
Then import it like so:
from scales import Scales
Usage
Scales objects take at least the scale parameter, which should be a list of notes (the first note is treated as the root). They can be drawn using the draw function, where start and stop are the range of frets to show (defaults to showing 15 frets if not specified).
For example:
a_mixo = ['A', 'B', 'C#', 'D', 'E', 'F#', 'G']
six_string = Scales(title='A Mixolydian', scale=a_mixo)
six_string.draw(start=11, stop=15)
By default, it will assume a 6 string guitar in standard tuning, but you can specify other tunings like:
c_major = ['C', 'D', 'E', 'F', 'G', 'A', 'B']
ukulele = Scales(title='C Major on Ukulele', strings=['G', 'C', 'E', 'A'], scale=c_major)
ukulele.draw()
Scales can be drawn without making it an object:
g_chord = ['G', 'B', 'D']
Scales(title='Open G', scale=g_chord).draw(stop=3)
Other helpful uses
Scales can be used to generate blank visuals to print out. Heres a blank 6 string fretboard:
Scales([]).draw()
Or a blank open chord chart:
Scales([]).draw(stop=3)
Dependencies
| Library | Description |
|---|---|
| matplotlib | 2D plotting library |
| numpy | Fundamental package for scientific computing |
Metadata
Release files for scales.py 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scales.py-0.1.4.tar.gz | 4.9 kB | Without provenance | Details for scales.py-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scales.py-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for scales.py-0.1.4-py3-none-any.whl |
Total release size: 9.7 kB
Release files / scales.py-0.1.4.tar.gz
| Download URL | scales.py-0.1.4.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfe4bb8815e0e1bf71debede5ca5d4705bbca7ae2855f65b85134e1b092e049a
|
|
BLAKE2b-256 checksum How to use checksums |
ab53fd16de0c903af6db4d979daa0f11c8b9dc19c307bddd0c9abc1b6d5a1dd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1
|
Release files / scales.py-0.1.4-py3-none-any.whl
| Download URL | scales.py-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c01b7c1d27b9ea1f927ec40bb2d5223fff3fabe6288a921a5625554479b6cad4
|
|
BLAKE2b-256 checksum How to use checksums |
c251f86ae6c27ce56da265528ed525d891a5bacceca404a8e2ac3ce81d85d18c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1
|
Security for scales.py 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.