pygt1000
pygt1000 is a Python library for interacting with the BOSS GT-1000 and GT-1000CORE guitar/bass effects processors over MIDI. This library provides an easy-to-use API for controlling and managing the settings of your GT-1000/GT-1000CORE, enabling both real-time interaction and more complex automation tasks.
Features
- Send and receive MIDI messages to/from GT-1000/GT-1000CORE
- Manage and modify effect parameters
- Automate complex sequences of commands
- Retrieve and process device states and data
- Construct MIDI messages using option names instead of hexadecimal codes
Installation
To install the pygt1000 library, you can use pip:
pip install pygt1000
Or for local development, use poetry:
git clone https://github.com/jdesfossez/pygt1000.git
cd pygt1000
poetry install
Usage
Here’s a basic example of how to use the pygt1000 library to interact with your GT-1000:
from pygt1000 import GT1000
# Initialize the GT1000 object
gt1000 = GT1000()
# Open the MIDI ports
gt1000.open_ports()
# By default it looks for a MIDI port starting with "GT-1000:GT-1000 MIDI 1"
# But you can override the portname option here
# Send a command to the GT-1000
gt1000.send_command(...)
# Close the MIDI ports when done
gt1000.close_ports()
Crafting messages
Most of the MIDI specifications from BOSS have been imported as JSON files in the specs/ directory. This allows the user to construct MIDI messages using option names rather than manually crafting hexadecimal messages. For example:
gt = GT1000()
start_section = gt._get_start_section("fx", "1")
message = gt.build_dt_message(start_section, "fx1", "SW", "ON")
gt1000.send_message(message)
The JSON files are created by parsing the text from the specification (one text file by table). Some consistency fixes are performed by the parsing scripts. There are still some unhandled cases like messages options with a very wide range requiring multiple bytes to set the value, but most features work with a single byte operation.
Metadata
Release files for pygt1000 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygt1000-0.2.0.tar.gz | 43.6 kB | Without provenance | Details for pygt1000-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygt1000-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pygt1000-0.2.0-py3-none-any.whl |
Total release size: 118.9 kB
Release files / pygt1000-0.2.0.tar.gz
| Download URL | pygt1000-0.2.0.tar.gz |
|---|---|
| Size | 43.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d33766142837c97821b38fa12876bc817fc45f51859afc3060ba048fc755bd0
|
|
BLAKE2b-256 checksum How to use checksums |
af84e23e9515ae5bb94a5cdda60d78e362b08274af90cde5f42da363c4acd45e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0
|
Release files / pygt1000-0.2.0-py3-none-any.whl
| Download URL | pygt1000-0.2.0-py3-none-any.whl |
|---|---|
| Size | 75.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d839422dec516f4b42db8a9b0451d95b1e298b1721cc2e0106cfebb670bd76d9
|
|
BLAKE2b-256 checksum How to use checksums |
61af23320bf6ca30167e79a0af6efd7f3374a7c71535148437dfae319d8ae0ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0
|
Security for pygt1000 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.