Skip to main content

🎸 Cross-platform python interface for LT25 guitar amplifier

Project description

lt25.py

🎸 A cross-platform Python module for interacting with the LT25 amplifier made by a certain equine-named guitar manufacture that rhymes with "bender".

👋 Introduction

I made this module 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 solutions which used modern languages/technologies I could build upon (.NET doesnt count), I made my own package 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 (not 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 class, refer to the wiki

Demonstration loop:

[!WARNING] On some linux distros, sudo-mode is required for interacting 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
  • 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 copy-left licensing restrictions.

lt25.py is licensed under the permissive MIT license, which means that you may fork, modify, adapt, and redistribute with few restrictions. However, 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.0.tar.gz (21.9 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.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lt25-0.1.0.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for lt25-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10cc1d206abe2f3e2f2ba340a64e754e81ba4b5f767c4bc205e66662bde19b50
MD5 d75e5f39d299cec7c31e63d42bd24893
BLAKE2b-256 ce514126ef506b73e06c3f90566adfd6037cc88d5437f4c1d5679aaa3946524a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lt25-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for lt25-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c94cbe9438e518b034b34ef62c0926d55661a3172a949927197565e403af2e9a
MD5 8ef8d1bb37a9b13ba50b779236b473b5
BLAKE2b-256 36550a7a4b5771f362e966f978288589b859f13b75d51acf40deff35c341baec

See more details on using hashes here.

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