🎸 Cross-platform python interface for LT guitar/bass amplifiers
Project description
LtAmp.py
🎸 A cross-platform Python module for interacting with the LT amplifiers from a certain guitar company that rhymes with "bender" and names products after horses.
[!NOTE] At the moment, only LT25 amps are fully tested and have been tested/verified for protocol support.
👋 Introduction
I made this libray because I was disappointed by the lack of certain features in both my amp itself as well as the associated desktop app provided by its manufacturer. Failing to find a starting point which used modern languages/technologies I could build upon (.NET doesnt count), I developed this little module based on the reverse-engineering work others initiated.
⚙️ Specifications
This package requires Python 3.8+ to be installed on your system (due to demands of the protobuf 5 module). Additionally, the library only supports HID USB operations (no MIDI).
🚀 Quickstart
pip install ltamp
python
>>> from ltamp import LtAmp
>>> LtAmp().connect()
[!IMPORTANT] On linux, hidapi relies on libusb:
sudo apt install libusb-1.0-0-dev libudev-dev pkg-config
💾 Usage
For full documentation of the LtAmp and LtAmpAsync classes, refer to the wiki.
Demonstration loop:
import time
import ltamp
amp = ltamp.LtAmp()
amp.connect()
amp.send_sync_begin()
amp.send_sync_end()
amp.set_preset(5)
amp.set_qa_slots([1,2])
amp.request_firmware_version()
for i in range(5):
amp.send_heartbeat()
print(amp.request_qa_slots())
time.sleep(1)
amp.disconnect()
[!WARNING] On some linux distros,
sudo-mode is required for running python files which interact with USB devices.
🗺️ Roadmap
Compatibility with LtAmp protocol:
- Audio Status
- Audition Preset (status, start, exit)
- Clear/rename/shift/swap/save (to/as) preset
- Retrieve preset
- Connection Status
- Current Preset (request/load)
- DSP Unit Parameter
- Firmware Version
- Heartbeat
- LT4 Footswitch Mode
- Loopback
- Memory usage
- Product Identification
- Processor Utilization
- QA Slots
- Sync (Modal Status)
- USB Gain
Other TODOs:
- Publish to Pypi
- Continuous Deployment
- LtAmpAsync/Base Classes
- Document classes in Wiki
- Unit Testing
- Customize timeout
- Complete Protocol
- Other LT Amps
- Multiple Connected Devices
Fully-tested LT-series amps:
- LT25
- LT40S
- LT50
- LTX100?
- LTX50?
- R15-R100?
🛠️ Contributing
[!NOTE] If you need to contribute in a way which updates protocol classes, you can find the original .proto files in Brent Maxwell's repository. I unfortunately cannot include these files in this module due to copyleft licensing restrictions.
LtAmp.py is licensed under the permissive MIT license, which means that you may fork, modify, adapt, and redistribute with few restrictions. If you wish to contribute your changes back to the base module, please open a pull request. To report bugs, request features, or discuss the project, open an issue or discussion.
🧪 Testing
To run unit tests, use the command:
python -m unittest discover tests
🙌 Acknowledgements
- Brent Maxwell (@brentmaxwell) and his LtAmp .NET libray: his published reverse engineering docs, schemas, proto files, etc. were instrumental in the creation of this Python module.
- Additionally, some of the goals of his work greatly inspired those of this project.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ltamp-0.2.7.tar.gz.
File metadata
- Download URL: ltamp-0.2.7.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff6070dde30b9dd54501a4566d02985fd6808fb412b6ec51b017ee50b7199cb2
|
|
| MD5 |
1b091c4f609c1f3da80595c98a355955
|
|
| BLAKE2b-256 |
4fe2613dd6ee0da82c06f04e889741593c2c6864496b32bdb7616e12ab5936cf
|
Provenance
The following attestation bundles were made for ltamp-0.2.7.tar.gz:
Publisher:
python-publish.yml on bendertools/LtAmp.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ltamp-0.2.7.tar.gz -
Subject digest:
ff6070dde30b9dd54501a4566d02985fd6808fb412b6ec51b017ee50b7199cb2 - Sigstore transparency entry: 357341314
- Sigstore integration time:
-
Permalink:
bendertools/LtAmp.py@e3043ec85ca0ffefa5782d5a18ab5d5eb32a0b53 -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/bendertools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e3043ec85ca0ffefa5782d5a18ab5d5eb32a0b53 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ltamp-0.2.7-py3-none-any.whl.
File metadata
- Download URL: ltamp-0.2.7-py3-none-any.whl
- Upload date:
- Size: 68.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1587e549a44dc9faa22c2a483c381e2c8224dd2d65b734ca8e31f92b79bab52
|
|
| MD5 |
68e4dea663320dd0581d4ae75ca0416f
|
|
| BLAKE2b-256 |
7c46e1c8f5026ee002bf692d8374321e2e5794606622be1591046e427a8565ec
|
Provenance
The following attestation bundles were made for ltamp-0.2.7-py3-none-any.whl:
Publisher:
python-publish.yml on bendertools/LtAmp.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ltamp-0.2.7-py3-none-any.whl -
Subject digest:
f1587e549a44dc9faa22c2a483c381e2c8224dd2d65b734ca8e31f92b79bab52 - Sigstore transparency entry: 357341340
- Sigstore integration time:
-
Permalink:
bendertools/LtAmp.py@e3043ec85ca0ffefa5782d5a18ab5d5eb32a0b53 -
Branch / Tag:
refs/tags/v0.2.7 - Owner: https://github.com/bendertools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e3043ec85ca0ffefa5782d5a18ab5d5eb32a0b53 -
Trigger Event:
release
-
Statement type: