Skip to main content

🎸 Cross-platform python interface for LT25 guitar amplifier

Project description

lt25.py

PyPI Latest Release wakatime MIT License

🎸 A cross-platform Python module for interacting with the LT25 amplifier from a certain guitar company that rhymes with "bender" and names products after horses.

👋 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 library 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 lt25

[!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 LT25 and LT25Async classes, refer to the wiki.

Demonstration loop:

[!WARNING] On some linux distros, sudo-mode is required for running python files which interact with USB devices.

import time
import lt25

amp = lt25.LT25()
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()

🗺️ Roadmap

Compatibility with LtAmp protocol:

  • Audio Status
  • Audition Preset (status, start, exit)
  • Clear/rename/shift/swap/save (to/as) preset
  • Connection Status
  • Current Preset (request/load)
  • DSP Unit Parameter
  • Firmware Version
  • Heartbeat
  • ⭐ LT4 Footswitch Mode
  • Loopback
  • Memory usage
  • Processor Utilization
  • QA Slots
  • Sync (Modal Status)
  • USB Gain

Other TODOs:

  • Publish to Pypi
  • Continuous Deployment
  • LT25Async/Base Classes
  • Unit Testing
  • Complete Protocol
  • Other Amps

🛠️ 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.

lt25.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.

🙌 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

lt25-0.1.2.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lt25-0.1.2-py3-none-any.whl (60.5 kB view details)

Uploaded Python 3

File details

Details for the file lt25-0.1.2.tar.gz.

File metadata

  • Download URL: lt25-0.1.2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lt25-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e9927f7557e0f02bc1018847e797329f8c4962c9b2ff38ac3e22ad146ae0e38c
MD5 fc4ef3ac5426e390241910a88c852a5b
BLAKE2b-256 4d3ba1c00acbde5fd5eb2b0349b9c39191a971474f622fc5b6c7ad6dc7259a3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lt25-0.1.2.tar.gz:

Publisher: python-publish.yml on bendertools/lt25.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lt25-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: lt25-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 60.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lt25-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3254d2ceb77b05e3c5288d362f1e49256c12b98ebc8317ebf764c0b48b32997d
MD5 cfdcb349023bc3ed727907e294eb01b7
BLAKE2b-256 88617d5f147208065105f380f5af2d82ddc743be41c0fed8f2232edf23c726e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for lt25-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on bendertools/lt25.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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