Skip to main content

Control an M-Vave Tank-G multi-effects guitar pedal over Bluetooth LE

Project description

M-Vave / Cuvave

mvave-tankg-ble

CI PyPI Python License: MIT

Control an M-Vave Tank-G multi-effects guitar pedal over Bluetooth LE.

The pedal speaks BLE-MIDI: presets are switched with a MIDI Program Change on channel 0, over the standard BLE-MIDI characteristic. This library is the pure Bluetooth layer — discovery, the command frames, and an async device class — with no Home Assistant dependency. It powers the Home Assistant integration.

Install

pip install mvave-tankg-ble

Usage

import asyncio
from mvave_tankg_ble import TankG, discover


async def main():
    devices = await discover(timeout=5.0)
    if not devices:
        print("No Tank-G found.")
        return
    async with TankG(devices[0]) as pedal:
        await pedal.set_preset(12)   # UI preset 1-36


asyncio.run(main())

TankG accepts a bleak BLEDevice (preferred — e.g. from Home Assistant's shared scanner or a Bluetooth proxy) or a string MAC/UUID address.

API

Symbol Description
TankG(device) Async device wrapper. Use as an async context manager.
await pedal.set_preset(n) Switch to UI preset n (1–36).
await pedal.send_program_change(program, channel=0) Raw MIDI Program Change.
await discover(timeout=5.0) List nearby Tank-G pedals (list[BLEDevice]).
program_change_frame(program, channel=0) Build the raw BLE-MIDI frame.
preset_to_program(preset) UI preset (1–36) → MIDI program (0–35).
program_to_bank_position(program) Program → (bank, "A"/"B"/"C"/"D").

CLI

mvave-tankg scan              # list nearby pedals
mvave-tankg preset 12         # switch to preset 12 (scans first)
mvave-tankg preset 12 --address AA:BB:CC:DD:EE:FF

Scope & limitations

  • Presets only. The pedal exposes a proprietary Cuvave service (0xAE40) the official app uses for LED colour and other settings; that protocol is not reverse-engineered, so it isn't supported here.
  • No battery. The Tank-G doesn't report battery over BLE (the official app shows none) — only the physical "L"/"LO" display warning and the charge LED.
  • Presets are one-way. The pedal doesn't report its current preset, so there's no read-back.

License

MIT © Hudson Brendon

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

mvave_tankg_ble-0.1.0.tar.gz (123.8 kB view details)

Uploaded Source

Built Distribution

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

mvave_tankg_ble-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mvave_tankg_ble-0.1.0.tar.gz
  • Upload date:
  • Size: 123.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mvave_tankg_ble-0.1.0.tar.gz
Algorithm Hash digest
SHA256 09e72417113d374850faca091acaed07f5a4021ee4af970f69077f70aaf475df
MD5 d147f39ac21fe3a524b7fbafb7d5e772
BLAKE2b-256 0bdabb79753cb32895f2d7c2f52168ee742801600a19b0dacf25aa4a971264d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mvave_tankg_ble-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a71bb0958d641541c722749410da173b66aee7068cb374a392c3e3933e6075d
MD5 33a1437055d9c6dcc0dac9907f036380
BLAKE2b-256 b27dba71de8990ebd39c163ffe40f2f1d4d42e88b9537227f357c39f610c0fd4

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