Skip to main content

PyGuitar generates an easy-to-practice chord book.

Project description

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()
    
    chord layout
  • plot guitar strings
    guitar.plot_strings()
    
    guitar strings
  • plot chord
    guitar.plot_chord(chode="G#", string=6, mode="minor")
    
    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")
    
    chord-G#.png
  • scraping -> chordbook
    title, key, data = get_ufret_chords_with_driver(url)
    guitar = Guitar()
    guitar.create_chord_book(data)
    
    chord-G#.png

Reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyGuitar-0.2.1.tar.gz (4.1 MB view details)

Uploaded Source

File details

Details for the file PyGuitar-0.2.1.tar.gz.

File metadata

  • Download URL: PyGuitar-0.2.1.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for PyGuitar-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ae8a33fbb70794d4a2cb0caf857528f61c252ef9b7fa34b24585eee731ebcf84
MD5 48bea30cf958feb590501f3ed73e01c7
BLAKE2b-256 7f79ea1cd65bc29469991ab6449bc21ea3aced13ac233f2765af5476a108d255

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page