Skip to main content

PyGuitar: Chord book generator

PyGuitar

PyPI version GitHub version license

PyGuitar generates an easy-to-practice chord book.

Installation

There are two ways to install PyGuitar:

  • Install PyGuitar from PyPI (recommended):
    $ sudo pip install PyGuitar
    
  • Alternatively: install PyGuitar from the GitHub source:
    $ git clone https://github.com/iwasakishuto/PyGuitar.git
    $ cd PyGuitar
    $ sudo python setup.py install
    

How to use

  • Create Guitar Instance
    from guitar import Guitar
    guitar = Guitar(key="C", scale="major")
    
  • plot guitar layout
    guitar.plot_chord_layout()
    
    Output chord layout
  • plot guitar strings
    guitar.plot_strings()
    
    Output guitar strings
  • plot chord
    guitar.plot_chord(chode="G#", string=6, mode="minor")
    
    Output chord-G#.png
  • export chordbook
    guitar = Guitar(key="B", scale="major", dark_mode=False)
    guitar.set_chord(chode="D#", string=5, mode="minor")
    guitar.set_chord(chode="G#", string=6, mode="minor")
    guitar.set_chord(chode="E",  string=6, mode="major")
    guitar.set_chord(chode="B",  string=5, mode="major")
    guitar.set_chord(chode="F#", string=6, mode="minor")
    guitar.set_chord(chode="C#", string=5, mode="major")
    guitar.set_chord(chode="F#", string=6, mode="sus4")
    guitar.set_chord(chode="C#", string=5, mode="7th")
    guitar.set_chord(chode="D#", string=5, mode="7th")
    guitar.export_chord_book(fmt="pdf")
    
    Output Whole-notes.png
  • scraping -> chordbook
    title, key, data = get_ufret_chords_with_driver(url)
    guitar = Guitar()
    guitar.create_chord_book(data)
    
    Output chordbook.png
  • scraping -> chordbook (docker oneline)
    pwd
    path/to/PyGuitar/docker
    make ufret URL="https://www.ufret.jp/song.php?data=5012"
    :
    Save data at /data/'欲望に満ちた青年団 | ONE OK ROCK'-key_B-major_scale.pdf
    

Reference

Metadata

Release files for PyGuitar 0.3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyGuitar 0.3.7
File Size Uploaded
PyGuitar-0.3.7.tar.gz 4.5 MB Details

Release files / PyGuitar-0.3.7.tar.gz

Download URL PyGuitar-0.3.7.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
5bfa7db5f2fc99916c346e9bfa4c2cd3136b8513a0da92896d68ddf40eadc7d3
BLAKE2b-256 checksum
How to use checksums
c453fc011b6fc2f4cf306a5f0f376ccf0fbe326b0a1a838dc77dc9bbecd698a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.3.7 This release

1 release file

0.3.1

1 release file

0.2.1

1 release file

0.1.0

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page