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 and comparable. This gives 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 pull request.
To run one of the examples in your local environment, simply:
cd pyguitarpro
python examples/transpose.py --help
Installation
Install PyGuitarPro from PyPI:
pip install PyGuitarPro
To install development version of PyGuitarPro:
git clone https://github.com/Perlence/PyGuitarPro.git
cd pyguitarpro
pip install -e .
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
File details
Details for the file PyGuitarPro-0.9.3.tar.gz
.
File metadata
- Download URL: PyGuitarPro-0.9.3.tar.gz
- Upload date:
- Size: 62.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ba33eabc46d42d70273bb52e7050f2a937ec4e576c900cafed0b9c131524dba |
|
MD5 | 09c0f0968fa7a3254df043ebe42fa621 |
|
BLAKE2b-256 | b8f34b7f86fdbd16fd6caa439539f97089147ebc056e56018db1b746340a15a6 |
File details
Details for the file PyGuitarPro-0.9.3-py3-none-any.whl
.
File metadata
- Download URL: PyGuitarPro-0.9.3-py3-none-any.whl
- Upload date:
- Size: 45.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51eed875a65623686443f5546deb71b8ed64e0887dc2e273ca9a493620241a15 |
|
MD5 | 25c746134698d906da78348f022c790a |
|
BLAKE2b-256 | 7be8b3bae6026dc60d24e73cb5a41f5868cd5097859048498da62353129e2052 |