danielpietzsch / loopertrx Goto Github PK
View Code? Open in Web Editor NEWThis project forked from reinerh/loopertrx
import/export audio data from some looper pedals
License: GNU General Public License v2.0
This project forked from reinerh/loopertrx
import/export audio data from some looper pedals
License: GNU General Public License v2.0
LooperTRX ========= This tool allows transferring recorded audio data from/to some China-made looper pedals (see also: https://en.wikipedia.org/wiki/Looper_pedal) over USB. Unfortunately they are officially only supported by a Windows tool. To be able to use them with Linux, I analyzed and replicated their USB protocol in this small script. Though I only tested it with Linux, it should work on all platforms supported by pyusb (e.g. MacOSX, *BSD). I primarily wrote the tool to get support for my "Harley Benton Mini Looper", but I found that several other brands use the same OEM product; even the transfer software binaries are almost identical (with minor differences because of varying company logos). The compatible loopers that I found so far are: * Harley Benton Mini Looper * FAME Looper * Rowin LEF-332 * Donner Looper * ammoon AP-09 nano looper Note: The Harley Benton looper has the USB ID 0483:572a, so the software is looking for these devices. Please let me know if other devices are using different IDs. Usage ----- Call it without any parameters to start the graphical interface (if tkinter is available). For command line usage: $ loopertrx.py rx audio.wav Receiving..... Done. $ loopertrx.py tx audio.wav Transmitting..... Done. Data format ----------- The looper stores files as mono PCM WAV files with 24 bits per sample and a sample rate of 48000 Hz. To convert arbitrary audio files to this format, the swiss army knife of sound processing (sox) can be used: $ sox input.mp3 -c1 -r 48000 -b 24 -t wavpcm output.wav External dependencies --------------------- * pyusb (https://walac.github.io/pyusb/) (On Debian systems: # apt install python3-usb) * tkinter [optional] (installed by default on most systems) (On Debian systems: # apt install python3-tk) Linux notes ----------- To allow unprivileged users access to the devices, a udev rule can be created. Create the file /etc/udev/rules.d/99-looperpedal.rules with the following content: SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="572a", GROUP="plugdev", MODE="0660" Users in the 'plugdev' group will then be allowed to send/receive data. Current limitations ------------------- The official Windows transfer tool does additional audio processing of the received/sent data (what they store is not the same data that is transferred over USB). The files are slightly larger in size, perhaps because of some speed adjustments for local playback. LooperTRX curently only stores/restores the raw data from the looper devices, without any modifications. Because of this the audio sounds slightly different when played back on a computer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.