Fretboard is a python library for generating SVG fretboard images and chord charts in Python.
Project description
Fretboard is a python library for generating SVG fretboard images and chord charts in Python.
Install
pip install fretboard
Usage
Basic Examples
chord = fretboard.Chord(positions='xx0232', fingers='---132')
chord.save('svg/D.svg')
chord = fretboard.BassChord(positions='x221', fingers='-321')
chord.save('svg/bass-E.svg')
chord = fretboard.UkuleleChord(positions='x232', fingers='-132')
chord.save('svg/ukulele-G.svg')
fb = fretboard.Fretboard(frets=(5, 8), style={'marker': {'color': 'dodgerblue'}})
fb.add_marker(string=0, fret=5, label='A', color='chocolate')
fb.add_marker(string=1, fret=5, label='D')
fb.add_marker(string=2, fret=5, label='G')
fb.add_marker(string=3, fret=5, label='C')
fb.add_marker(string=4, fret=5, label='E')
fb.add_marker(string=5, fret=5, label='A', color='chocolate')
fb.add_marker(string=0, fret=8, label='C')
fb.add_marker(string=1, fret=7, label='E')
fb.add_marker(string=2, fret=7, label='A', color='chocolate')
fb.add_marker(string=3, fret=7, label='D')
fb.add_marker(string=4, fret=8, label='G')
fb.add_marker(string=5, fret=8, label='C')
fb.save('svg/pentatonic-shape.svg')
Demo
The demo/ directory contains runnable examples that are served up in a web page.
python-fretboard/demo $ pip install -r requirements.txt python-fretboard/demo $ invoke serve
Point your browser to http://localhost:8080 and check out the freshly rendered fretboards!
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
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 fretboard-1.0.0.tar.gz.
File metadata
- Download URL: fretboard-1.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf5bef92db7bb1d7cde2ec435232b2033f0855737776b606506091fe8fe584ee
|
|
| MD5 |
2123048563a6ebf4d513caf317b15b0e
|
|
| BLAKE2b-256 |
0f62ccd9d2d34e767e62505ec3319f3a3b373087296c24012d4bc15ecdeda576
|
File details
Details for the file fretboard-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: fretboard-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1836ee4ad9c709c07c35fe0606584daf643a7388904a0a3a4560c596f3fc74b6
|
|
| MD5 |
69816d7c86ee8cbf9d7c1acf0ab888f0
|
|
| BLAKE2b-256 |
4787d557cb2018c39e82992e28fda6fc3c94630e100dc8c6356921250eb72531
|