Skip to content

bendertools/LtAmp.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

LtAmp.py

PyPI Latest Release wakatime MIT License

๐ŸŽธ 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
  • 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.

๐Ÿ™Œ 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.

About

๐ŸŽธ Python module for interfacing with LT guitar/bass amplifiers

Topics

Resources

License

Stars

Watchers

Forks

Languages