Read, write, and manipulate GP3, GP4 and GP5 files.
Project description
Introduction
PyGuitarPro is a package to read, write and manipulate GP3, GP4 and GP5 files. Initially PyGuitarPro is a Python port of AlphaTab which is a Haxe port of TuxGuitar.
This package helps you achieve several goals you might find yourself yearning to do in a day-to-day tabber life:
transpose a track without messing the fingering.
add first string to the track without messing the fingering.
map percussion notes to different values.
Reading .gp* files is as easy as:
import guitarpro
curl = guitarpro.parse('Mastodon - Curl of the Burl.gp5')
Writing .gp* files isn’t that hard as well:
guitarpro.write(curl, 'Mastodon - Curl of the Burl 2.gp5')
All objects representing GP entities are hashable, so they can be easily stored in a dict and compared. This gives us the great opportunity to apply diff algorithm to tabs, or even diff3 algorithm to merge tablatures.
To anyone wanting to create their the best guitar tablature editor in Python this package will be the good thing to start with.
Examples
Several usage examples are included in the /examples folder. Please feel free to add your own examples, or improve on some of the existing ones, and then submit them via Bitbucket as a pull-request.
To run one of the examples in your local environment, simply:
$ cd pyguitarpro
$ python examples/transpose.py --help
Installation
To install PyGuitarPro download the repository and install manually by doing:
$ hg clone ssh://hg@bitbucket.org/Perlence/pyguitarpro
$ cd pyguitarpro
$ python setup.py install
Documentation
Package documentation is located at Read the Docs.
Licensing
Please see the file called LICENSE.
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
Hashes for PyGuitarPro-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6674f9011b98edb88c8994caed82cae4cc7e5b5db66f2760f7775f2aaeb715aa |
|
MD5 | ffceb523b13f60d7f2ef738b64f62906 |
|
BLAKE2b-256 | d995a1730d2bc933ffc8331e87656a2d512d377a4218c302ad9302aec1ba388b |